@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&display=swap");

:root {
    --bg: #eef5f9;
    --bg-strong: #dbeafe;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --surface-alt: #e0f2fe;
    --surface-nested: rgba(255, 255, 255, 0.82);
    --text: #0d2137;
    --text-soft: #4a6070;
    --text-inverse: #f5f7fa;
    --line: rgba(13, 33, 55, 0.1);
    --line-strong: rgba(13, 33, 55, 0.2);
    --accent: #0284c7;
    --accent-dark: #075985;
    --accent-soft: rgba(2, 132, 199, 0.1);
    --accent-secondary: #0f766e;
    --shadow: 0 18px 42px rgba(13, 33, 55, 0.1);
    --shadow-soft: 0 8px 24px rgba(13, 33, 55, 0.07);
    --shadow-xs: 0 1px 3px rgba(13, 33, 55, 0.08), 0 6px 14px rgba(13, 33, 55, 0.04);
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --max-width: 1180px;
    --shell-gutter-left: 26px;
    --shell-gutter-right: 122px;
    --nav-height: 88px;
    --drawer-width: min(360px, calc(100vw - 28px));
    --font-display: "Montserrat", "Aptos Display", "Segoe UI Semibold", "Segoe UI", sans-serif;
    --font-body: "Aptos", "Segoe UI", sans-serif;
    --heading: #0d2137;
    --heading-soft: #075985;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: clip;
    font-family: var(--font-body);
    color: var(--text);
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at top left, rgba(2, 132, 199, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.12), transparent 32%),
        linear-gradient(180deg, #eef5f9 0%, #e0f2fe 48%, #f8fafc 100%);
}

body > svg {
    display: block;
    max-width: calc(100% - 28px);
    height: auto;
    margin: 0 auto 24px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(31, 47, 67, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 47, 67, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 85%);
}

body.chat-open,
body.nav-open,
body.gallery-open {
    overflow: hidden;
}

main,
.page-shell,
.hero,
.section,
.team-member,
.content-card,
.highlight-card,
.project-card,
.timeline__item,
.stat-card,
.project-gallery__item {
    touch-action: pan-x pan-y pinch-zoom;
}

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

button,
textarea {
    font: inherit;
}

[id] {
    scroll-margin-top: calc(var(--nav-height) + 26px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.topbar-shell {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: grid;
    justify-items: center;
    padding: 14px 0 0;
    transition: padding-top 180ms ease, transform 180ms ease;
}

.topbar {
    width: min(calc(100% - var(--shell-gutter-left) - var(--shell-gutter-right)), var(--max-width));
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    padding: 0 0 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    background: rgba(31, 47, 67, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 32px rgba(21, 32, 45, 0.14);
    transition: min-height 180ms ease, transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.brand {
    display: inline-flex;
    align-self: center;
    flex-direction: column;
    gap: 4px;
    flex: 0 1 360px;
    min-width: 0;
    width: min(100%, 360px);
    transition: gap 180ms ease, transform 180ms ease;
}

.brand__logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.brand__eyebrow,
.hero__eyebrow,
.section__eyebrow,
.chat-panel__eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand__eyebrow {
    color: rgba(255, 255, 255, 0.64);
    transition: opacity 180ms ease, color 180ms ease;
}

.brand__title {
    font-family: var(--font-display);
    font-size: 1.06rem;
    font-weight: 700;
    color: #ffffff;
    transition: color 180ms ease;
}

.nav-toggle,
.mobile-nav__close {
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-toggle {
    width: 48px;
    height: 48px;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
}

.nav-backdrop,
.mobile-nav {
    position: fixed;
    inset: 0;
}

.nav-backdrop {
    z-index: 33;
    background: rgba(16, 27, 39, 0.36);
    opacity: 0;
    transition: opacity 180ms ease;
}

.nav-backdrop.is-open {
    opacity: 1;
}

.mobile-nav {
    inset: 18px auto 18px 18px;
    z-index: 34;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 14px;
    width: var(--drawer-width);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(31, 47, 67, 0.98), rgba(24, 39, 55, 0.96));
    box-shadow: 0 24px 48px rgba(16, 27, 39, 0.28);
    transform: translateX(calc(-100% - 24px));
    transition: transform 220ms ease;
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-nav__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.mobile-nav__eyebrow {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mobile-nav__header strong {
    display: block;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1.08rem;
}

.mobile-nav__close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 1.5rem;
}

.mobile-nav__links {
    display: grid;
    align-content: start;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.mobile-nav__links a {
    padding: 13px 14px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.02);
}

.mobile-nav__links a:first-child {
    border-top: 0;
}

.mobile-nav__links a:hover,
.mobile-nav__links a:focus-visible,
.mobile-nav__links a.is-active {
    border-color: rgba(2, 132, 199, 0.42);
    color: #ffffff;
    background: rgba(2, 132, 199, 0.2);
}

.nav-links {
    align-self: stretch;
    display: inline-flex;
    align-items: stretch;
    justify-content: flex-end;
    flex: 0 0 auto;
    margin-left: auto;
    height: auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.nav-links a,
.button,
.highlight-card,
.content-card,
.project-card,
.project-visualization,
.timeline__item,
.team-member,
.stat-card,
.chat-message,
.robot-rail__body {
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, opacity 180ms ease;
}

.nav-links a {
    display: flex;
    align-items: center;
    align-self: stretch;
    flex: 0 0 auto;
    height: 100%;
    min-height: 0;
    padding: 18px 14px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
}

.nav-links a:first-child {
    border-left: 0;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(2, 132, 199, 0.32), rgba(2, 132, 199, 0.12));
}

.page-shell {
    width: min(calc(100% - var(--shell-gutter-left) - var(--shell-gutter-right)), var(--max-width));
    margin: 0 auto;
    padding: calc(var(--nav-height) + 34px) 0 110px;
    position: relative;
    z-index: 1;
}

.logo-gallery {
    width: min(calc(100% - var(--shell-gutter-left) - var(--shell-gutter-right)), var(--max-width));
    margin: 28px auto 96px;
    display: grid;
    gap: 20px;
}

.logo-gallery__intro {
    display: grid;
    gap: 10px;
    padding: 24px 28px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 251, 0.92));
    box-shadow: var(--shadow-soft);
}

.logo-gallery__intro h2,
.logo-card h3 {
    margin: 0;
    font-family: var(--font-display);
}

.logo-gallery__intro h2 {
    color: var(--heading);
}

.logo-card h3 {
    color: var(--heading-soft);
}

.logo-gallery__intro p,
.logo-card p {
    margin: 0;
    color: var(--text-soft);
}

.logo-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.logo-card {
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.logo-card--wide {
    grid-column: 1 / -1;
}

.logo-card svg {
    display: block;
    width: 100%;
    height: auto;
}

body.is-scrolled .topbar-shell {
    padding-top: 0;
}

body.is-scrolled .topbar {
    min-height: 68px;
    transform: translateY(0);
    border-color: rgba(255, 255, 255, 0.66);
    border-radius: 0 0 16px 16px;
    background: rgba(23, 37, 52, 0.94);
    box-shadow: 0 18px 34px rgba(15, 24, 35, 0.22);
}

body.is-scrolled .brand {
    gap: 2px;
    transform: translateY(-1px);
}

body.is-scrolled .brand__eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

body.is-scrolled .nav-links {
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 0 0 16px 16px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.is-scrolled .nav-links a {
    padding-top: 16px;
    padding-bottom: 16px;
}

.hero,
.section,
.chat-panel,
.robot-rail__body,
.contact-panel,
.contact-panel__note,
.site-footer {
    position: relative;
    z-index: 1;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.24fr) minmax(310px, 0.76fr);
    gap: 20px;
    align-items: start;
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
        linear-gradient(140deg, rgba(2, 132, 199, 0.08), rgba(15, 118, 110, 0.05));
    box-shadow: var(--shadow);
}

.hero__copy h1,
.section h2,
.hero-panel h2,
.content-card h3,
.project-card h3,
.project-visualization h3,
.project-chart__card h4,
.timeline__item h3,
.contact-panel__note h3,
.chat-panel h2 {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.hero__copy h1,
.section h2,
.hero-panel h2,
.chat-panel h2 {
    color: #0b5f8a;
}

.content-card h3,
.project-card h3,
.project-visualization h3,
.timeline__item h3,
.contact-panel__note h3 {
    color: #f58220;
}

.hero__eyebrow,
.section__eyebrow,
.chat-panel__eyebrow {
    color: var(--heading-soft);
    font-weight: 700;
}

.hero__copy h1 {
    margin: 10px 0 18px;
    max-width: 15ch;
    font-size: clamp(2.55rem, 5.2vw, 4.8rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.hero__lead,
.hero-panel__note p,
.section__intro p,
.highlight-card p,
.content-card li,
.project-card p,
.project-card li,
.timeline__item p,
.contact-panel p,
.chat-message p,
.chat-panel__status {
    color: var(--text-soft);
    line-height: 1.7;
}

.hero__actions,
.contact-panel__actions,
.chat-panel__composer-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero__actions {
    margin-top: 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
}

.button:hover,
.button:focus-visible,
.highlight-card:hover,
.content-card:hover,
.project-card:hover,
.timeline__item:hover,
.team-member:hover,
.stat-card:hover {
    transform: translateY(-2px);
}

.button--primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 14px 28px rgba(2, 132, 199, 0.24);
}

.button--secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--line);
}

.hero__highlights,
.hero-panel__stats,
.hero__components,
.capability-grid,
.project-grid,
.team-directory__grid,
.service-columns {
    display: grid;
    gap: 12px;
}

.hero__highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
}

.hero__components-panel {
    display: grid;
    gap: 12px;
    grid-column: 1 / -1;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(238, 243, 247, 0.96));
    box-shadow: var(--shadow-soft);
}

.hero__components-header {
    display: flex;
    align-items: center;
}

.hero__components {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
}

.highlight-card,
.content-card,
.project-card,
.timeline__item,
.team-member,
.stat-card,
.contact-panel,
.contact-panel__note,
.chat-message {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.highlight-card,
.content-card,
.project-card,
.timeline__item,
.team-member,
.stat-card,
.contact-panel__note {
    padding: 18px;
}

.project-card {
    display: grid;
    align-content: start;
    gap: 12px;
}

.project-card--gallery {
}

.highlight-card strong,
.stat-card__value,
.timeline__status,
.project-card__meta strong,
.hero-panel__badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.88rem;
    font-weight: 700;
}

.highlight-card strong {
    margin-bottom: 12px;
}

.hero-panel {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f7 100%);
    box-shadow: var(--shadow-soft);
}

.hero-panel--plain {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    align-self: start;
    align-content: start;
}

.hero-panel--plain .hero-panel__stats {
    align-content: start;
    gap: 12px;
}

.hero-panel--plain .highlight-card {
    padding: 14px 16px;
    box-shadow: var(--shadow-xs);
}

.hero-panel--plain .highlight-card strong {
    margin-bottom: 8px;
}

.hero-panel--plain .highlight-card p {
    margin: 0;
    line-height: 1.6;
}

.hero-panel__header h2 {
    margin: 14px 0 0;
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    line-height: 1.05;
}

.hero-panel__stats {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    gap: 10px;
}

.stat-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    background: var(--surface-nested);
    box-shadow: var(--shadow-xs);
}

.stat-card__value {
    margin-bottom: 0;
    font-size: 1rem;
}

.stat-card p {
    margin: 0;
}

.stat-card--compact {
    gap: 8px;
    padding: 14px 16px;
}

.stat-card--compact .stat-card__value {
    font-size: 0.92rem;
    padding: 6px 10px;
}

.stat-card--compact p {
    font-size: 0.88rem;
    line-height: 1.5;
}

.highlight-card--panel {
    background: var(--surface-nested);
    box-shadow: var(--shadow-xs);
}

.highlight-card--panel strong {
    margin-bottom: 10px;
}

.highlight-card--panel p {
    margin: 0;
}

.section {
    margin-top: 22px;
    padding: clamp(22px, 3vw, 30px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.section__intro {
    max-width: 760px;
    margin-bottom: 18px;
}

/* Utility: allow section intro content to expand to the full section width */
.section__intro--full {
    max-width: none;
}

.section__intro--split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 14px;
    max-width: none;
}

.section__intro h2,
.contact-panel h2 {
    margin: 10px 0 12px;
    font-size: clamp(1.76rem, 3.3vw, 2.55rem);
    line-height: 1.04;
}

.team-directory__intro h3,
.content-card h3,
.project-card h3,
.timeline__item h3,
.contact-panel__note h3,
.project-visualization h3,
.project-chart__card h4 {
    margin: 0;
    font-size: clamp(1.16rem, 1.6vw, 1.38rem);
    line-height: 1.15;
}

.capability-grid,
.service-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.team-directory {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(31, 47, 67, 0.1);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(241, 245, 248, 0.98), rgba(255, 255, 255, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), var(--shadow-soft);
}

.team-directory__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 12px;
    align-items: end;
    margin-bottom: 14px;
}

.team-directory__intro p,
.team-member__role,
.team-member__contact,
.team-member__contact a {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
}

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

.team-member {
    display: grid;
    grid-template-columns:124px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: none;
}

.team-member--lead {
    border-color: rgba(2, 132, 199, 0.22);
    background: linear-gradient(180deg, rgba(224, 242, 254, 0.82), rgba(255, 255, 255, 0.96));
}

.team-member__avatar {
    display: grid;
    place-items: center;
    width: 124px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(13, 33, 55, 0.06);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
    box-shadow: 0 6px 18px rgba(13, 33, 55, 0.06);
    color: var(--text-inverse);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.team-member__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.team-member__body {
    display: grid;
    gap: 10px;
}

.team-member__body h4 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--text);
}

.team-member__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-top: 8px;
    border-top: 1px solid rgba(31, 47, 67, 0.08);
    font-size: 0.92rem;
}

.team-member__contact span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(31, 47, 67, 0.06);
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section__intro,
.capability-grid,
.project-grid,
.project-visualization,
.timeline,
.service-columns {
    position: relative;
    z-index: 1;
}

.content-card ul,
.project-card ul {
    margin: 0;
    padding-left: 18px;
}

.content-card li + li,
.project-card li + li {
    margin-top: 8px;
}

.content-card--accent {
    background: linear-gradient(180deg, rgba(224, 242, 254, 0.82) 0%, #ffffff 100%);
    border-color: rgba(2, 132, 199, 0.22);
}

.content-card--dark,
.contact-panel__note {
    background: linear-gradient(180deg, #0d3b66 0%, #0d2137 100%);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-inverse);
}

.content-card--dark li,
.contact-panel__note p {
    color: rgba(245, 247, 250, 0.84);
}

.content-card--dark h3,
.contact-panel__note h3 {
    color: var(--heading-soft);
}

.project-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.project-card__meta > span {
    flex: 1 1 auto;
    min-width: 0;
}

.project-card__meta > strong {
    margin-left: 8px;
    white-space: nowrap;
    align-self: center;
}

.project-card p {
    margin: 0;
}

.project-card__summary-list,
.project-card__detail-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text-soft);
}

.project-card__summary-list {
    display: grid;
    gap: 6px;
    font-size: 0.92rem;
    line-height: 1.55;
}

.project-card__detail-list {
    display: grid;
    gap: 2px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.project-card__summary-list li,
.project-card__detail-list li {
    margin: 0;
}

.project-card__detail-list li + li {
    margin-top: 0;
}

.project-card__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.project-card__fact {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(31, 47, 67, 0.09);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(243, 247, 250, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: none;
    overflow: hidden;
}

.project-card__fact--full {
    grid-column: 1 / -1;
}

.project-card__fact::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: rgba(31, 47, 67, 0.14);
}

.project-card__fact--benefit::before {
    background: linear-gradient(180deg, var(--accent), #38bdf8);
}

.project-card__fact--integration::before {
    background: linear-gradient(180deg, #23344d, #50637a);
}

.project-card__fact--features::before {
    background: linear-gradient(180deg, var(--accent-secondary), #2dd4bf);
}

.project-card__fact--phone::before {
    background: linear-gradient(180deg, #8b5cf6, #b395ff);
}

.project-card__fact-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(31, 47, 67, 0.07);
    color: var(--text);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-card__fact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-xs);
}

.project-card__fact-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.project-card__fact--benefit .project-card__fact-icon {
    color: var(--accent-dark);
}

.project-card__fact--integration .project-card__fact-icon {
    color: var(--text);
}

.project-card__fact--features .project-card__fact-icon {
    color: #2c7a5c;
}

.project-card__fact--phone .project-card__fact-icon {
    color: #7346d4;
}

.project-card__fact--phone {
    grid-template-columns: minmax(0, auto) minmax(220px, 1fr);
    column-gap: 12px;
    align-items: start;
}

.project-card__fact--phone .project-card__fact-label {
    grid-column: 1;
    grid-row: 1;
}

.project-card__fact--phone .project-card__fact-body {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
}

.project-card__fact--phone > .project-card__fact-note {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
}

.project-card__fact-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}

.project-card__fact-main {
    display: grid;
    align-content: start;
}

.project-card__fact-note {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 10px 12px;
    border: 1px dashed rgba(115, 70, 212, 0.28);
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.05);
}

.project-card__fact-note strong {
    color: #5b34b2;
    font-size: 0.82rem;
    line-height: 1.2;
}

.project-card__fact-note p {
    color: var(--text-soft);
    font-size: 0.86rem;
    line-height: 1.45;
}

.project-card__fact--phone p,
.project-card__fact--phone a {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.project-card__fact p {
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.5;
}

.site-footer {
    position: relative;
    margin-top: 44px;
    padding: 22px 24px;
    border: 1px solid rgba(13, 33, 55, 0.08);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(224, 242, 254, 0.6));
    box-shadow: var(--shadow-soft);
    color: var(--text);
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #0b3d6b 0%, #37C4FF 100%);
}

.site-footer__content {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.9fr);
    gap: 12px 20px;
    align-items: center;
}

.site-footer__eyebrow {
    margin: 0 0 8px;
    color: #0b5f8a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-footer__title,
.site-footer__note {
    margin: 0;
}

.site-footer__title {
    max-width: 34ch;
    color: var(--heading);
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    line-height: 1.35;
}

.site-footer__note {
    padding: 10px 12px;
    border: 1px dashed rgba(13,33,55,0.06);
    border-radius: 10px;
    background: rgba(255,255,255,0.82);
    color: var(--text-soft);
    line-height: 1.45;
    font-weight: 700;
    justify-self: end;
}

.site-footer__help {
    margin: 8px 0 0;
    color: rgba(74,96,112,0.9);
    font-size: 0.88rem;
}

.site-footer__wave {
    justify-self: end;
    width: 520px;
    height: 80px;
    opacity: 0.98;
}

/* Full-width background wave container placed roughly mid-page */
.bg-wave-wrap {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-wave {
    position: absolute;
    left: -10vw;
    top: 50%;
    width: 120vw;
    height: clamp(220px, 28vw, 360px);
    transform: translateX(var(--wave-shift-x, 0)) translateY(-50%) rotate(var(--wave-rotate, 0deg)) scaleX(var(--wave-flip, 1)) scaleY(var(--wave-scale-y, 1));
    transform-origin: center;
    opacity: var(--wave-opacity, 0.78);
}
.bg-wave path {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 24000;
    stroke-dashoffset: 24000;
    opacity: 0;
}
.bg-wave.is-drawing path { opacity: 1; }
.bg-wave.is-drawing path:nth-child(1) { --draw-dur: 22s; --draw-delay: 0s; --fade-dur: 0.45s; --fade-delay: 22s; stroke: rgba(11,61,107,0.14); stroke-width: 14; animation: draw var(--draw-dur) ease var(--draw-delay) forwards, fade var(--fade-dur) ease var(--fade-delay) forwards; }
.bg-wave.is-drawing path:nth-child(2) { --draw-dur: 23s; --draw-delay: 0.6s; --fade-dur: 0.45s; --fade-delay: 23.6s; stroke: rgba(11,61,107,0.10); stroke-width: 10; animation: draw var(--draw-dur) ease var(--draw-delay) forwards, fade var(--fade-dur) ease var(--fade-delay) forwards; }
.bg-wave.is-drawing path:nth-child(3) { --draw-dur: 24s; --draw-delay: 1.2s; --fade-dur: 0.55s; --fade-delay: 25.2s; stroke: rgba(11,61,107,0.08); stroke-width: 8; animation: draw var(--draw-dur) ease var(--draw-delay) forwards, fade var(--fade-dur) ease var(--fade-delay) forwards; }
.bg-wave.is-drawing path:nth-child(4) { --draw-dur: 25s; --draw-delay: 1.8s; --fade-dur: 0.55s; --fade-delay: 26.8s; stroke: rgba(11,61,107,0.06); stroke-width: 6; animation: draw var(--draw-dur) ease var(--draw-delay) forwards, fade var(--fade-dur) ease var(--fade-delay) forwards; }
.bg-wave.is-drawing path:nth-child(5) { --draw-dur: 26s; --draw-delay: 2.4s; --fade-dur: 0.65s; --fade-delay: 28.4s; stroke: rgba(11,61,107,0.04); stroke-width: 4; animation: draw var(--draw-dur) ease var(--draw-delay) forwards, fade var(--fade-dur) ease var(--fade-delay) forwards; }

.site-footer__wave path {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 8000;
    stroke-dashoffset: 8000;
}

/* draw animation (stroke-draw) + fade-out; triggered by adding .is-drawing class */

.site-footer__wave path {
    opacity: 1;
}
.site-footer__wave.is-drawing path:nth-child(1) {
    --draw-dur: 15.60s;
    --draw-delay: 0s;
    --fade-dur: 0.9s;
    --fade-delay: 15.60s;
    stroke: rgba(11,61,107,0.18);
    stroke-width: 6;
    animation: draw var(--draw-dur) ease var(--draw-delay) forwards, fade var(--fade-dur) ease var(--fade-delay) forwards;
}
.site-footer__wave.is-drawing path:nth-child(2) {
    --draw-dur: 16.38s;
    --draw-delay: 0.47s;
    --fade-dur: 0.9s;
    --fade-delay: 16.85s;
    stroke: rgba(11,61,107,0.10);
    stroke-width: 4;
    animation: draw var(--draw-dur) ease var(--draw-delay) forwards, fade var(--fade-dur) ease var(--fade-delay) forwards;
}
.site-footer__wave.is-drawing path:nth-child(3) {
    --draw-dur: 17.16s;
    --draw-delay: 0.94s;
    --fade-dur: 1s;
    --fade-delay: 18.10s;
    stroke: rgba(11,61,107,0.06);
    stroke-width: 2;
    animation: draw var(--draw-dur) ease var(--draw-delay) forwards, fade var(--fade-dur) ease var(--fade-delay) forwards;
}

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

@keyframes fade {
    to { opacity: 0; }
}

.project-card__fact--features p,
.project-card__fact--features li {
    font-weight: 400;
    color: rgba(13, 33, 55, 0.9);
}

.project-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.project-gallery__item {
    display: grid;
    gap: 12px;
    padding: 0;
    border: 1px solid rgba(31, 47, 67, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.project-gallery__item:hover,
.project-gallery__item:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(2, 132, 199, 0.22);
    box-shadow: 0 14px 26px rgba(13, 33, 55, 0.08);
}

.project-gallery__item:active {
    transform: translateY(0);
}

.project-gallery__thumb {
    display: block;
    aspect-ratio: 16 / 9;
    background: linear-gradient(180deg, rgba(224, 242, 254, 0.8), rgba(255, 255, 255, 0.96));
    overflow: hidden;
}

.project-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--gallery-position, center);
}

.project-gallery__body {
    display: grid;
    gap: 6px;
    padding: 0 14px 14px;
}

.project-gallery__body strong {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text);
}

.project-gallery__body span {
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.5;
    font-style: italic;
    text-align: center;
}

.project-visualization {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(2, 132, 199, 0.18);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(224, 242, 254, 0.82), rgba(255, 255, 255, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), var(--shadow-soft);
}

.project-visualization__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(260px, 0.96fr);
    gap: 12px;
    align-items: end;
    margin-bottom: 14px;
}

.project-visualization__intro p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.portfolio-snapshot {
    display: grid;
    gap: 12px;
}

.project-chart {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.project-chart__card {
    padding: 16px;
    border: 1px solid rgba(31, 47, 67, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-xs);
}

.project-chart__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.project-chart__header strong,
.project-chart__badge {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.project-chart__badge {
    margin-bottom: 10px;
    background: rgba(31, 47, 67, 0.07);
    color: var(--text);
}

.project-chart__header strong {
    background: rgba(2, 132, 199, 0.12);
    color: var(--accent-dark);
}

.project-chart__bars {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.project-chart__metric-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.project-chart__metric-head strong {
    color: var(--text);
    font-size: 0.84rem;
}

.project-chart__track {
    overflow: hidden;
    height: 9px;
    border-radius: 999px;
    background: rgba(31, 47, 67, 0.08);
}

.project-chart__fill {
    display: block;
    width: var(--metric-value);
    height: 100%;
    border-radius: inherit;
}

.project-chart__fill--benefit {
    background: linear-gradient(90deg, var(--accent), #38bdf8);
}

.project-chart__fill--integration {
    background: linear-gradient(90deg, #23344d, #415874);
}

.project-chart__fill--adoption {
    background: linear-gradient(90deg, #5a768f, #8fa5b6);
}

.delivery-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.delivery-board__lane {
    position: relative;
    overflow: hidden;
    padding: 16px;
    border: 1px solid rgba(31, 47, 67, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.delivery-board__lane::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, rgba(2, 132, 199, 0.95), rgba(13, 33, 55, 0.9));
    opacity: 0.9;
}

.delivery-board__lane:hover {
    transform: translateY(-2px);
    border-color: rgba(2, 132, 199, 0.18);
    box-shadow: 0 12px 24px rgba(27, 43, 60, 0.08);
}

.delivery-board__lane header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.delivery-board__lane header span {
    display: inline-flex;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(31, 47, 67, 0.07);
    color: var(--text-soft);
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.delivery-board__lane header strong {
    font-size: 1rem;
    color: var(--text);
}

.delivery-board__lane p {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(31, 47, 67, 0.04);
    color: var(--text-soft);
    font-size: 0.91rem;
    line-height: 1.55;
}

.delivery-board__lane--now::before {
    background: linear-gradient(90deg, var(--accent), #38bdf8);
}

.delivery-board__lane--next::before {
    background: linear-gradient(90deg, #23344d, #455b75);
}

.delivery-board__lane--later::before {
    background: linear-gradient(90deg, #6f8799, #9fb2c0);
}

.section-robot {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    filter: drop-shadow(0 22px 30px rgba(31, 47, 67, 0.12));
    transform: translate3d(var(--robot-hover-x, 0), calc(24px + var(--robot-hover-y, 0px)), 0) scale(0.92) rotate(calc(var(--robot-tilt, 0deg) + var(--robot-hover-tilt, 0deg)));
    transition: opacity 320ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 240ms ease;
}

.section-robot.is-visible {
    opacity: 0.78;
    transform: translate3d(var(--robot-hover-x, 0), var(--robot-hover-y, 0px), 0) scale(1) rotate(calc(var(--robot-tilt, 0deg) + var(--robot-hover-tilt, 0deg)));
    filter: drop-shadow(0 26px 34px rgba(31, 47, 67, 0.16));
}

.section-robot svg {
    display: block;
    width: 100%;
    height: auto;
}

.section:hover .section-robot.is-visible,
.hero:hover ~ .robot-rail .robot-rail__robot {
    filter: drop-shadow(0 28px 36px rgba(2, 132, 199, 0.18));
}

.section-robot--signal {
    --robot-tilt: -4deg;
    top: 18px;
    right: 18px;
    width: min(148px, 18vw);
}

.section-robot--orbiter {
    --robot-tilt: 8deg;
    right: 26px;
    bottom: 22px;
    width: min(136px, 16vw);
}

.section-robot--bot {
    --robot-tilt: -7deg;
    top: 18px;
    right: 26px;
    width: min(132px, 16vw);
}

.timeline {
    display: grid;
    gap: 12px;
}

.timeline__item {
    padding: 20px;
    border-color: rgba(2, 132, 199, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 252, 0.94));
}

.timeline__item--current {
    border-color: rgba(2, 132, 199, 0.34);
    box-shadow: 0 18px 34px rgba(2, 132, 199, 0.14), var(--shadow-soft);
}

.timeline__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.timeline__phases {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
    position: relative;
    padding-top: 12px;
}

.timeline__phases::before {
    content: "";
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: linear-gradient(90deg, rgba(13, 33, 55, 0.12), rgba(2, 132, 199, 0.3), rgba(13, 33, 55, 0.12));
}

.timeline__phase {
    display: inline-flex;
    position: relative;
    justify-content: center;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(31, 47, 67, 0.04);
    color: var(--text-soft);
    font-size: 0.86rem;
    font-weight: 700;
}

.timeline__phase::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(31, 47, 67, 0.18);
    border-radius: 50%;
    background: #ffffff;
    transform: translateX(-50%);
}

.timeline__phase--current {
    border-color: rgba(2, 132, 199, 0.3);
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.16), rgba(2, 132, 199, 0.08));
    color: var(--accent-dark);
}

.timeline__phase--current::before {
    border-color: rgba(2, 132, 199, 0.42);
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(2, 132, 199, 0.12);
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius-lg);
}

.beta-call {
    position: relative;
    overflow: hidden;
    border-color: rgba(13, 33, 55, 0.12);
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 28%),
        radial-gradient(circle at bottom left, rgba(245, 130, 32, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.94));
    box-shadow: 0 22px 46px rgba(13, 33, 55, 0.12);
}

.beta-call::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.56);
    background:
        linear-gradient(120deg, rgba(245, 130, 32, 0.14), transparent 28%),
        linear-gradient(300deg, rgba(2, 132, 199, 0.12), transparent 34%);
    pointer-events: none;
}

.beta-call .section__eyebrow {
    color: #0b6cae;
}

.beta-call > * {
    position: relative;
    z-index: 1;
}

.beta-call__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 20px;
    align-items: start;
}

.beta-call__main {
    display: grid;
    gap: 16px;
}

.beta-call__lead {
    margin: 0;
    max-width: 62ch;
    line-height: 1.75;
    color: var(--text-soft);
}

.beta-call__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.beta-call__chips span,
.beta-call__card-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(11, 108, 174, 0.12);
    background: rgba(11, 108, 174, 0.06);
    color: #0b6cae;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.beta-call__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.beta-call__hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.beta-call__side {
    display: grid;
    gap: 12px;
    padding: 10px 0 0;
}

.beta-call__card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(13, 33, 55, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(8px);
}

.beta-call__card h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.35;
    color: var(--text);
}

.beta-call__card--accent {
    border-color: rgba(245, 130, 32, 0.26);
    background: linear-gradient(135deg, rgba(245, 130, 32, 0.12), rgba(255, 255, 255, 0.78));
}

.beta-call__detail-list {
    display: grid;
    gap: 10px;
}

.beta-call__detail-item {
    display: grid;
    gap: 4px;
}

.beta-call__detail-item strong {
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0b6cae;
}

.beta-call__detail-item p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-soft);
}

.beta-call__card p {
    margin: 0;
    line-height: 1.65;
    color: var(--text-soft);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.985);
    transition:
        opacity 520ms ease var(--reveal-delay, 0ms),
        transform 620ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.robot-rail {
    --rail-width: clamp(80px, 6.8vw, 96px);
    --rail-dot-slot: clamp(44px, 3.7vw, 52px);
    --rail-active-dot-size: clamp(46px, 3.9vw, 54px);
    --rail-gap: clamp(10px, 1vw, 14px);
    --rail-padding-y: clamp(12px, 1.2vw, 16px);
    --rail-padding-x: clamp(6px, 0.8vw, 8px);
    position: fixed;
    top: 50%;
    right: clamp(12px, 1.3vw, 18px);
    width: var(--rail-width);
    z-index: 20;
    pointer-events: none;
    transform: translateY(-50%);
}

.robot-rail__body {
    --dot-slot-size: var(--rail-dot-slot);
    --active-dot-slot: 0;
    position: relative;
    display: grid;
    justify-items: center;
    gap: var(--rail-gap);
    width: var(--rail-width);
    padding: var(--rail-padding-y) var(--rail-padding-x) calc(var(--rail-padding-y) - 2px);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 251, 0.9));
    box-shadow: 0 20px 36px rgba(18, 30, 43, 0.12);
    pointer-events: auto;
}

.robot-rail__body:hover,
.robot-rail__body:focus-within {
    box-shadow: none;
}

.robot-rail__thought {
    position: absolute;
    right: calc(100% + 14px);
    top: calc(var(--active-dot-slot) * var(--dot-slot-size) + (var(--dot-slot-size) / 2));
    width: min(240px, 38vw);
    padding: 12px 14px;
    border: 1px solid rgba(31, 47, 67, 0.1);
    border-radius: 18px 18px 6px 18px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    box-shadow: 0 18px 34px rgba(31, 47, 67, 0.14);
    font-size: 0.9rem;
    line-height: 1.45;
    opacity: 0;
    transform: translate3d(12px, -50%, 0);
    pointer-events: none;
}

.robot-rail__thought::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -8px;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: inherit;
    border-right: 1px solid rgba(31, 47, 67, 0.1);
    border-bottom: 1px solid rgba(31, 47, 67, 0.1);
    transform: translateY(-50%) rotate(-45deg);
}

.robot-rail__thought.is-visible {
    opacity: 1;
    transform: translate3d(0, -50%, 0);
}

.robot-rail__nav {
    position: relative;
    display: grid;
    justify-items: center;
    grid-auto-rows: var(--dot-slot-size);
}

.robot-rail__nav::before {
    content: "";
    position: absolute;
    top: calc(var(--dot-slot-size) * 0.5);
    bottom: calc(var(--dot-slot-size) * 0.5);
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, rgba(13, 33, 55, 0.08), rgba(2, 132, 199, 0.22), rgba(13, 33, 55, 0.08));
    transform: translateX(-50%);
}

.robot-rail__dot {
    position: relative;
    display: grid;
    place-items: center;
    width: var(--dot-slot-size);
    height: var(--dot-slot-size);
    border-radius: 50%;
}

.robot-rail__dot-core {
    position: relative;
    display: grid;
    place-items: center;
    width: var(--dot-size, 10px);
    height: var(--dot-size, 10px);
    border-radius: 50%;
    border: 1px solid rgba(31, 47, 67, 0.18);
    background: rgba(31, 47, 67, 0.12);
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
    transition: width 180ms ease, height 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    transform: scale(1);
}

.robot-rail__dot:hover .robot-rail__dot-core,
.robot-rail__dot:focus-visible .robot-rail__dot-core {
    transform: scale(1.08);
    border-color: rgba(2, 132, 199, 0.36);
    background: rgba(2, 132, 199, 0.18);
}

.robot-rail__dot[data-distance="0"] .robot-rail__dot-core {
    --dot-size: var(--rail-active-dot-size);
    border-color: rgba(2, 132, 199, 0.3);
    background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.98), rgba(224, 242, 254, 0.94) 58%, rgba(2, 132, 199, 0.16));
    box-shadow: 0 0 0 8px rgba(2, 132, 199, 0.12), 0 14px 24px rgba(13, 33, 55, 0.16);
}

.robot-rail__dot[data-distance="1"] .robot-rail__dot-core,
.robot-rail__dot[data-distance="-1"] .robot-rail__dot-core {
    --dot-size: 18px;
    border-color: rgba(2, 132, 199, 0.26);
    background: rgba(2, 132, 199, 0.34);
}

.robot-rail__dot[data-distance="2"] .robot-rail__dot-core,
.robot-rail__dot[data-distance="-2"] .robot-rail__dot-core {
    --dot-size: 12px;
    background: rgba(31, 47, 67, 0.18);
}

.robot-rail__dot[data-distance="3"] .robot-rail__dot-core,
.robot-rail__dot[data-distance="-3"] .robot-rail__dot-core,
.robot-rail__dot[data-distance="4"] .robot-rail__dot-core,
.robot-rail__dot[data-distance="-4"] .robot-rail__dot-core,
.robot-rail__dot[data-distance="5"] .robot-rail__dot-core,
.robot-rail__dot[data-distance="-5"] .robot-rail__dot-core {
    --dot-size: 8px;
    opacity: 0.72;
}

.robot-rail__dot-robot {
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.robot-rail__dot[data-distance="0"] .robot-rail__dot-robot {
    display: flex;
}

.robot-rail__dot-antenna {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 18px;
    height: 1px;
    background: transparent;
    transform: translateX(-50%);
}

.robot-rail__dot-antenna::before,
.robot-rail__dot-antenna::after {
    content: "";
    position: absolute;
    top: 0;
    width: 3px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(to bottom, #0b5f8a 0px, #0b5f8a 3px, #e0f2fe 3px, #e0f2fe 100%);
}

.robot-rail__dot-antenna::before {
    left: 1px;
}

.robot-rail__dot-antenna::after {
    right: 1px;
}

.robot-rail__dot-head {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 28px;
    margin-top: 8px;
    border-radius: 9px;
    background: #e0f2fe;
}

.robot-rail__dot-face {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    width: 28px;
    height: 18px;
    padding-top: 3px;
    border-radius: 8px;
    background: #23344d;
}

.robot-rail__dot-face::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 12px;
    height: 6px;
    border-bottom: 2px solid #f5f7fa;
    border-radius: 0 0 10px 10px;
    transform: translateX(-50%);
}

.robot-rail__dot-eye {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #38bdf8;
    transform-origin: center;
    animation: robot-blink 5.4s ease-in-out infinite;
}

.robot-rail__cta {
    min-width: 68px;
    padding: 10px 12px;
    border: 1px solid rgba(2, 132, 199, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
}

.robot-rail__body:hover .robot-rail__cta,
.robot-rail__body:focus-within .robot-rail__cta {
    border-color: rgba(2, 132, 199, 0.34);
    box-shadow: 0 10px 20px rgba(31, 47, 67, 0.08);
}

.chat-backdrop {
    position: fixed;
    inset: 0;
    z-index: 39;
    background: rgba(16, 27, 39, 0.42);
    opacity: 0;
    transition: opacity 180ms ease;
}

.chat-backdrop.is-open {
    opacity: 1;
}

.gallery-backdrop {
    position: fixed;
    inset: 0;
    z-index: 41;
    background: rgba(8, 17, 28, 0.66);
    opacity: 0;
    transition: opacity 180ms ease;
}

.gallery-backdrop.is-open {
    opacity: 1;
}

.gallery-modal {
    position: fixed;
    inset: 24px;
    z-index: 42;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 16px;
    width: min(1120px, calc(100vw - 48px));
    height: min(88vh, 860px);
    margin: auto;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(238, 245, 249, 0.97));
    box-shadow: 0 30px 60px rgba(7, 16, 27, 0.32);
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    transition: opacity 180ms ease, transform 220ms ease;
}

.gallery-modal.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.gallery-modal__header h2 {
    margin: 8px 0 8px;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2vw, 1.8rem);
    color: var(--heading);
}

.gallery-modal__header p {
    margin: 0;
    color: var(--text-soft);
}

.gallery-modal__close {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #ffffff;
    color: var(--text);
    cursor: pointer;
}

.gallery-modal__figure {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 0;
    margin: 0;
}

.gallery-modal__figure img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.gallery-modal__figcaption {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--text-soft);
    line-height: 1.6;
}

.gallery-modal[hidden],
.gallery-backdrop[hidden] {
    display: none !important;
}

.chat-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(560px, 100vw);
    padding: 24px;
    background: linear-gradient(180deg, #f9fbfc 0%, #eef3f7 100%);
    border-left: 1px solid rgba(31, 47, 67, 0.1);
    box-shadow: -18px 0 36px rgba(18, 30, 43, 0.14);
    transform: translateX(100%);
    transition: transform 220ms ease;
}

.chat-panel.is-open {
    transform: translateX(0);
}

.chat-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.chat-panel__header h2 {
    margin: 6px 0 6px;
    font-size: 1.7rem;
}

.chat-panel__header p,
.chat-panel__status {
    margin: 0;
}

.chat-panel__close {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.chat-panel__messages {
    overflow-y: auto;
    padding: 20px 2px;
    display: grid;
    gap: 14px;
}

.chat-message {
    max-width: 88%;
    padding: 14px 16px;
    border-radius: 14px;
}

.chat-message--assistant {
    justify-self: start;
    background: #ffffff;
}

.chat-message--user {
    justify-self: end;
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.96), rgba(224, 242, 254, 0.94));
    border-color: rgba(2, 132, 199, 0.18);
}

.chat-message--loading {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.chat-message p {
    margin: 0;
    white-space: pre-wrap;
}

.chat-message__dots {
    display: inline-flex;
    gap: 6px;
}

.chat-message__dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(31, 47, 67, 0.3);
    animation: chat-dot 1s infinite ease-in-out;
}

.chat-message__dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.chat-message__dots span:nth-child(3) {
    animation-delay: 0.3s;
}

.chat-panel__composer {
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.chat-panel__composer textarea {
    width: 100%;
    resize: vertical;
    min-height: 92px;
    max-height: 220px;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: #ffffff;
    color: var(--text);
}

.chat-panel__composer textarea:focus-visible,
.button:focus-visible,
.nav-links a:focus-visible,
.chat-panel__close:focus-visible,
.gallery-modal__close:focus-visible,
.project-gallery__item:focus-visible,
.robot-rail__cta:focus-visible,
.robot-rail__dot:focus-visible {
    outline: 2px solid rgba(2, 132, 199, 0.42);
    outline-offset: 2px;
}

.chat-panel__composer-footer {
    justify-content: space-between;
    margin-top: 12px;
    gap: 12px;
}

.chat-panel__status {
    max-width: 320px;
    font-size: 0.88rem;
    letter-spacing: normal;
    text-transform: none;
}

@keyframes robot-blink {
    0%, 46%, 52%, 100% {
        transform: scaleY(1);
    }

    48%, 50% {
        transform: scaleY(0.16);
    }
}

@keyframes chat-dot {
    0%,
    80%,
    100% {
        transform: scale(0.9);
        opacity: 0.45;
    }

    40% {
        transform: scale(1.15);
        opacity: 1;
    }
}

@media (max-width: 1220px) {
    :root {
        --shell-gutter-left: 18px;
        --shell-gutter-right: 106px;
    }

    .nav-links {
        min-width: 0;
    }

    .page-shell {
        width: min(calc(100% - var(--shell-gutter-left) - var(--shell-gutter-right)), var(--max-width));
        padding-right: 0;
        padding-left: 0;
    }

    .logo-gallery {
        width: min(calc(100% - var(--shell-gutter-left) - var(--shell-gutter-right)), var(--max-width));
    }

    .hero,
    .contact-panel,
    .beta-call__grid,
    .project-chart,
    .delivery-board,
    .capability-grid,
    .team-directory__intro,
    .team-directory__grid,
    .service-columns,
    .section__intro--split,
    .hero__components,
    .hero__highlights,
    .project-visualization__intro {
        grid-template-columns: 1fr;
    }

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

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .project-card__facts {
        grid-template-columns: 1fr;
    }

    .hero__copy h1 {
        max-width: 13ch;
    }
}

@media (max-width: 980px) {
    :root {
        --nav-height: 84px;
        --shell-gutter-left: 14px;
        --shell-gutter-right: 14px;
    }

    .topbar-shell {
        padding: 10px 0 0;
    }

    .topbar {
        width: min(calc(100% - 28px), var(--max-width));
        gap: 14px;
        padding: 12px 14px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle,
    .mobile-nav__close {
        display: inline-flex;
    }

    .page-shell {
        width: min(calc(100% - 28px), var(--max-width));
        padding: calc(var(--nav-height) + 22px) 0 110px;
    }

    .logo-gallery {
        width: min(calc(100% - 28px), var(--max-width));
        margin-bottom: 80px;
    }

    .logo-gallery__grid {
        grid-template-columns: 1fr;
    }

    .hero,
    .section,
    .contact-panel {
        padding-inline: 16px;
    }

    .hero,
    .contact-panel,
    .beta-call__grid,
    .project-grid,
    .project-chart,
    .delivery-board,
    .capability-grid,
    .team-directory__intro,
    .team-directory__grid,
    .service-columns,
    .section__intro--split,
    .hero__components,
    .hero__highlights,
    .project-visualization__intro {
        grid-template-columns: 1fr;
    }

    .hero__copy h1 {
        max-width: 12ch;
    }

    .project-card__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .beta-call__card--accent {
        transform: none;
    }

    .project-card__fact--phone {
        grid-template-columns: 1fr;
    }

    .project-card__fact--phone > .project-card__fact-note {
        grid-column: 1;
        grid-row: 3;
    }

    .project-card__fact-body {
        grid-template-columns: 1fr;
    }

    .site-footer__content {
        grid-template-columns: 1fr;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-modal {
        width: min(100vw - 32px, 1120px);
        inset: 16px;
        height: min(90vh, 860px);
    }

    .section-robot--signal,
    .section-robot--bot {
        top: 16px;
        right: 12px;
        width: 112px;
    }

    .section-robot--orbiter {
        right: 16px;
        bottom: 16px;
        width: 108px;
    }

    .robot-rail {
        display: none;
    }

    .robot-rail__thought {
        width: min(220px, 46vw);
    }

    .robot-rail__body {
        --dot-slot-size: 46px;
        width: 88px;
    }

    .robot-rail__dot[data-distance="0"] .robot-rail__dot-core {
        --dot-size: 48px;
    }

    .timeline__meta {
        align-items: flex-start;
    }
}

@media (max-width: 820px) {
    :root {
        --nav-height: 118px;
    }

    .topbar-shell {
        padding: 10px 0 0;
    }

    .topbar {
        align-items: center;
        gap: 12px;
        padding: 0 14px;
    }

    .page-shell {
        width: min(calc(100% - 28px), var(--max-width));
        padding: calc(var(--nav-height) + 22px) 0 110px;
    }

    .logo-gallery {
        width: min(calc(100% - 28px), var(--max-width));
        margin-top: 24px;
        margin-bottom: 72px;
    }

    .logo-gallery__intro,
    .logo-card {
        padding: 20px 18px;
    }

    .hero,
    .section,
    .contact-panel {
        padding-inline: 16px;
    }

    .beta-call__actions {
        align-items: flex-start;
    }

    .hero__copy h1,
    .section__intro h2,
    .contact-panel h2 {
        font-size: clamp(1.95rem, 9vw, 3.05rem);
        max-width: none;
    }

    .project-visualization {
        padding: 14px;
    }

    .project-card__facts {
        grid-template-columns: 1fr;
    }

    .site-footer {
        margin-top: 32px;
        padding: 18px;
    }

    .project-card__fact-note {
        padding: 10px;
    }

    .gallery-modal {
        inset: 12px;
        width: auto;
        height: min(92vh, 860px);
        padding: 16px;
    }

    .gallery-modal__header {
        gap: 12px;
    }

    .team-directory,
    .delivery-board__lane {
        padding: 14px;
    }

    .section-robot {
        opacity: 0.3;
    }

    .section-robot--signal,
    .section-robot--bot {
        top: auto;
        bottom: 18px;
        right: 18px;
        width: 92px;
    }

    .section-robot--orbiter {
        top: 18px;
        right: 18px;
        bottom: auto;
        width: 96px;
    }

    .robot-rail__body {
        --dot-slot-size: 42px;
        width: 82px;
        padding: 12px 6px;
        gap: 10px;
    }

    .robot-rail__thought {
        right: calc(100% + 10px);
        width: min(260px, calc(100vw - 52px));
        transform: translate3d(10px, -50%, 0);
    }

    .robot-rail__thought::after {
        top: 50%;
        right: -8px;
        bottom: auto;
        transform: translateY(-50%) rotate(-45deg);
    }

    .robot-rail__cta {
        min-width: 58px;
        padding-inline: 10px;
    }

    .chat-panel {
        width: 100vw;
        padding: 16px 14px 18px;
    }

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

    .team-member__avatar {
        width: 64px;
    }

    .mobile-nav {
        inset: calc(var(--nav-height) + 10px) 12px auto 12px;
        width: auto;
        max-height: min(calc(100vh - var(--nav-height) - 28px), 560px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }

    .section-robot {
        transform: none;
    }

    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}