/* ==========================================================================
   FusionDataLab — Bento design direction
   Grid-first layout inspired by TypeUI Bento, adapted to the brand palette.
   ========================================================================== */

:root {
    --bento-primary: #fad4c0;
    --bento-primary-strong: #c45e3e;
    --bento-secondary: #80a1c1;
    --bento-secondary-soft: #dce8f2;
    --bento-success: #16a34a;
    --bento-warning: #d97706;
    --bento-danger: #dc2626;
    --bento-surface: #fff5e6;
    --bento-card: #fffdf9;
    --bento-text: #111827;
    --bento-text-soft: #4b5563;
    --bento-text-muted: #6b7280;
    --bento-navy: #07111f;
    --bento-navy-soft: #101d30;
    --bento-copper: #c45e3e;
    --bento-copper-action: #a9472d;
    --bento-copper-action-hover: #8f3824;
    --bento-gold: #e3ac4d;
    --bento-border: rgba(17, 24, 39, 0.12);
    --bento-border-strong: rgba(17, 24, 39, 0.2);
    --bento-focus: #1e6091;
    --bento-shadow: 0 18px 52px rgba(7, 17, 31, 0.08);
    --bento-shadow-hover: 0 24px 64px rgba(7, 17, 31, 0.13);
    --bento-radius-sm: 12px;
    --bento-radius-md: 16px;
    --bento-radius-lg: 24px;
    --bento-radius-xl: 32px;
    --bento-gap: 16px;
    --bento-shell: min(1280px, calc(100% - 48px));
    --font-sans: "Satoshi", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: "Satoshi", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "DM Mono", "JetBrains Mono", monospace;
    --shell: var(--bento-shell);
    --ink: var(--bento-text);
    --ink-soft: var(--bento-text-soft);
    --paper: var(--bento-surface);
    --paper-card: var(--bento-card);
    --paper-border: var(--bento-border);
    --paper-border-strong: var(--bento-border-strong);
    --secondary: var(--bento-text-soft);
    --secondary-muted: var(--bento-text-muted);
    --signal: var(--bento-copper);
    --signal-soft: rgba(196, 94, 62, 0.14);
    --radius-sm: var(--bento-radius-sm);
    --radius-md: var(--bento-radius-md);
    --radius-lg: var(--bento-radius-lg);
    --radius-xl: var(--bento-radius-xl);
}

html.bento-theme {
    color-scheme: light;
    background: var(--bento-surface);
}

html.contact-jump-active {
    scroll-behavior: auto !important;
}

html.contact-layout-ready .profile-section,
html.contact-layout-ready .builds-section,
html.contact-layout-ready .methodology-section,
html.contact-layout-ready .contact-section {
    content-visibility: visible !important;
}

body {
    color: var(--bento-text);
    background:
        radial-gradient(circle at 8% 0%, rgba(250, 212, 192, 0.62), transparent 28rem),
        radial-gradient(circle at 94% 20%, rgba(128, 161, 193, 0.24), transparent 30rem),
        var(--bento-surface);
    background-attachment: fixed;
}

body::before {
    display: none;
}

::selection {
    color: var(--bento-navy);
    background: var(--bento-primary);
}

a,
button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(196, 94, 62, 0.18);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--bento-focus);
    outline-offset: 4px;
}

section[id] {
    scroll-margin-top: 104px;
}

.section-shell {
    width: var(--bento-shell);
}

.skip-link {
    color: #ffffff;
    background: var(--bento-navy);
    border-radius: var(--bento-radius-sm);
}

.eyebrow,
.clients-label,
.tech-tools-label {
    color: var(--bento-copper);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    color: var(--bento-text);
    font-family: var(--font-display);
    text-wrap: balance;
}

p,
li {
    text-wrap: pretty;
}

/* Navigation */
.navbar {
    top: max(16px, env(safe-area-inset-top));
    width: min(1280px, calc(100% - 32px));
    height: 72px;
    padding: 0 12px 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
    color: #ffffff;
    background: rgba(7, 17, 31, 0.94);
    box-shadow: 0 16px 46px rgba(7, 17, 31, 0.2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-logo-image {
    display: block;
    width: auto;
    height: 38px;
    object-fit: contain;
}

.nav-links {
    gap: 4px;
    font-size: 0.75rem;
}

.nav-links > a:not(.nav-cta) {
    min-height: 44px;
    padding-inline: 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.78);
}

.nav-links > a:not(.nav-cta):hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
}

.nav-cta,
.btn-primary {
    min-height: 48px;
    border-radius: 12px;
    color: #ffffff !important;
    background: var(--bento-copper-action);
    box-shadow: none;
    transition: transform 220ms var(--ease-spring);
}

.nav-cta:hover,
.btn-primary:hover {
    color: #ffffff !important;
    background: var(--bento-copper-action-hover);
    box-shadow: none;
    transform: translateY(-2px);
}

.nav-cta:active,
.btn-primary:active {
    transform: scale(0.98);
}

.nav-toggle {
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
    background: #ffffff;
}

/* Hero bento */
.hero,
.hero-section {
    min-height: auto;
    margin: 0;
    padding: 112px 0 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.hero-noise {
    display: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: stretch;
    gap: var(--bento-gap);
    width: var(--bento-shell);
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

.hero-copy,
.hero-telemetry-panel {
    min-width: 0;
    border: 1px solid var(--bento-border);
    border-radius: var(--bento-radius-xl);
    box-shadow: var(--bento-shadow);
}

.hero-copy {
    position: relative;
    grid-column: span 7;
    display: flex;
    min-height: 610px;
    padding: clamp(32px, 4.2vw, 52px);
    flex-direction: column;
    justify-content: center;
    max-width: none;
    background:
        radial-gradient(circle at 96% 8%, rgba(250, 212, 192, 0.95), transparent 19rem),
        var(--bento-card);
    overflow: hidden;
}

.hero-copy::after {
    content: "";
    position: absolute;
    right: 32px;
    bottom: 32px;
    width: 88px;
    height: 88px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, transparent 47%, rgba(7, 17, 31, 0.08) 48% 52%, transparent 53%),
        var(--bento-primary);
    transform: rotate(8deg);
    pointer-events: none;
}

.hero-author-header {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
}

.hero-avatar {
    width: 44px;
    height: 44px;
    border: 2px solid var(--bento-copper);
    box-shadow: none;
}

.hero-eyebrow,
.status-pill {
    min-height: 36px;
    border: 1px solid rgba(196, 94, 62, 0.25);
    border-radius: 999px;
    color: #8f3e28;
    background: rgba(250, 212, 192, 0.66);
    box-shadow: none;
}

.status-dot {
    background: var(--bento-success);
    box-shadow: none;
}

.role-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bento-copper-action);
}

.hero-title {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 18px 0 24px;
    color: var(--bento-text);
    font-size: clamp(3.4rem, 5.7vw, 5rem);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.hero-title span,
.hero-title .serif-italic {
    color: var(--bento-copper);
    font-family: inherit;
    font-style: normal;
    font-weight: 800;
}

.word-reveal {
    display: inline-block;
}

.hero-inline-mark {
    display: inline-flex;
    width: 0.95em;
    height: 0.58em;
    margin-right: 0.12em;
    vertical-align: 0.06em;
}

.hero-inline-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-statement {
    position: relative;
    z-index: 1;
    max-width: 650px;
    color: var(--bento-text-soft);
    font-size: 1.125rem;
    line-height: 1.65;
}

.hero-qualification {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.8fr 1.45fr 0.75fr;
    gap: 0;
    margin: 20px 0 0;
    padding: 12px 0;
    border-block: 1px solid var(--bento-border);
    list-style: none;
}

.hero-qualification li {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
    padding: 0 16px;
}

.hero-qualification li:first-child {
    padding-left: 0;
}

.hero-qualification li + li {
    border-left: 1px solid var(--bento-border);
}

.hero-qualification span {
    color: #7d3a27;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.hero-qualification strong {
    color: var(--bento-text);
    font-size: 0.875rem;
    line-height: 1.4;
}

.hero-actions {
    position: relative;
    z-index: 1;
    gap: 12px;
    margin-top: 28px;
}

.hero-actions .btn-primary {
    min-height: 52px;
    padding-inline: 22px;
}

.text-link {
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--bento-border-strong);
    border-radius: 12px;
    color: var(--bento-text);
    background: rgba(255, 255, 255, 0.7);
    transition: transform 180ms ease;
}

.text-link:hover {
    color: var(--bento-text);
    border-color: var(--bento-text);
    transform: translateY(-2px);
}

.hero-telemetry-panel {
    grid-column: span 5;
    align-self: stretch;
    min-height: 610px;
    padding: clamp(24px, 3vw, 38px);
    color: #ffffff;
    background:
        radial-gradient(circle at 84% 18%, rgba(128, 161, 193, 0.3), transparent 22rem),
        var(--bento-navy);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform-origin: center;
    transition: transform 260ms var(--ease-spring);
}

.hero-telemetry-panel:hover {
    transform: translateY(-4px);
}

.telemetry-header,
.telemetry-footer {
    border-color: rgba(255, 255, 255, 0.12);
}

.telemetry-badge {
    color: var(--bento-primary);
    font-size: 0.75rem;
    line-height: 1.4;
}

.telemetry-meta,
.telemetry-stat small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.75rem;
    line-height: 1.4;
    letter-spacing: 0.055em;
}

.telemetry-stat strong {
    color: #ffffff;
}

.telemetry-screen {
    flex: 1;
    min-height: 280px;
    height: auto;
    border-radius: var(--bento-radius-md);
    background:
        radial-gradient(circle at 45% 50%, rgba(196, 94, 62, 0.2), transparent 30%),
        var(--bento-navy-soft);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
    isolation: isolate;
}

.telemetry-network {
    transform-origin: center;
    transition: transform 520ms var(--ease-spring), filter 300ms ease;
}

.telemetry-screen:hover .telemetry-network {
    transform: scale(1.018);
    filter: saturate(1.08);
}

.telemetry-flow-line,
.telemetry-flow-traces use {
    fill: none;
    vector-effect: non-scaling-stroke;
}

.telemetry-flow-line {
    stroke: url(#lakehouseFlowGradient);
    stroke-width: 1.05;
    stroke-linecap: round;
    opacity: 0.72;
}

.telemetry-flow-traces use {
    stroke: #f5b847;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-dasharray: 3 76;
    opacity: 0.92;
}

.telemetry-flow-nodes rect {
    fill: #d8663f;
    opacity: 0.72;
}

.telemetry-flow-nodes .is-live {
    fill: var(--bento-gold);
    transform-box: fill-box;
    transform-origin: center;
}

/* Trust block and metrics */
.clients-marquee-section {
    width: var(--bento-shell);
    margin: 0 auto;
    padding: 16px 16px 24px;
    border: 1px solid var(--bento-border);
    border-radius: var(--bento-radius-xl);
    background: var(--bento-card);
    box-shadow: var(--bento-shadow);
    overflow: hidden;
}

.clients-marquee-section .hero-proof {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--bento-gap);
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

.clients-marquee-section .hero-proof > div {
    min-width: 0;
    min-height: 132px;
    padding: 24px;
    border: 1px solid var(--bento-border);
    border-radius: var(--bento-radius-lg);
    background: #ffffff;
}

.metric-card {
    grid-column: span 3;
}

.clients-marquee-section .hero-proof > .metric-primary {
    background: var(--bento-primary);
}

.clients-marquee-section .hero-proof > .metric-secondary {
    background: var(--bento-secondary-soft);
}

.clients-marquee-section .hero-proof > .metric-wide {
    grid-column: span 4;
    color: #ffffff;
    background: var(--bento-navy);
}

.clients-marquee-section .hero-proof > .metric-compact {
    grid-column: span 2;
    background: #ffffff;
}

.hero-proof strong {
    color: var(--bento-text);
    font-size: 2rem;
    font-variant-numeric: tabular-nums;
}

.hero-proof span {
    color: var(--bento-text-soft);
    font-size: 0.75rem;
    line-height: 1.4;
}

.clients-marquee-section .metric-wide strong,
.clients-marquee-section .metric-wide span {
    color: #ffffff;
}

.clients-marquee-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 24px 0 16px;
}

.clients-motion-toggle {
    display: inline-grid;
    place-items: center;
    align-self: center;
    flex: 0 0 44px;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--bento-border-strong);
    border-radius: 50%;
    color: var(--bento-text-soft);
    background: #ffffff;
    cursor: pointer;
}

.motion-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.motion-icon-play,
.clients-motion-toggle[aria-pressed="true"] .motion-icon-pause {
    display: none;
}

.clients-motion-toggle[aria-pressed="true"] .motion-icon-play {
    display: block;
}

.clients-motion-toggle:disabled .motion-icon-pause {
    display: block;
}

.clients-motion-toggle:disabled .motion-icon-play {
    display: none;
}

.clients-motion-toggle:hover,
.clients-motion-toggle[aria-pressed="true"] {
    color: var(--bento-text);
    border-color: var(--bento-text);
}

.clients-motion-toggle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.clients-marquee-section.is-paused .clients-marquee-track {
    animation-play-state: paused;
}

.clients-marquee-track {
    gap: 18px;
}

.client-logo-item {
    width: auto;
    min-width: 0;
    height: 60px;
    padding-inline: 10px;
    opacity: 0.82;
    transition: opacity 180ms ease, transform 220ms var(--ease-spring);
}

.client-real-logo {
    width: auto;
    height: 36px;
    max-width: 144px;
    max-height: 40px;
    object-fit: contain;
    object-position: center;
}

.client-real-logo[src*="axa"],
.client-real-logo[src*="bspp"] {
    width: auto;
}

.client-real-logo[src*="airbus"] {
    width: 132px;
    height: 24px;
    max-height: 24px;
}

.client-real-logo[src*="airliquide"],
.client-real-logo[src*="euronext"],
.client-real-logo[src*="oemservices"] {
    max-width: 150px;
}

.client-logo-item:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* Profile bento */
.profile-section {
    width: var(--bento-shell);
    margin: 16px auto 0;
    padding: 16px;
    border: 1px solid var(--bento-border);
    border-radius: var(--bento-radius-xl);
    color: var(--bento-text);
    background: var(--bento-card);
    box-shadow: var(--bento-shadow);
}

.profile-inner {
    width: 100%;
    max-width: none;
}

.profile-lead-card {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--bento-gap);
    align-items: stretch;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    overflow: visible;
}

.profile-lead-card::after {
    display: none;
}

.profile-photo-wrapper {
    grid-column: span 4;
    width: 100%;
    max-width: none;
    min-height: 520px;
    aspect-ratio: auto;
    border: 0;
    border-radius: var(--bento-radius-lg);
    box-shadow: none;
    clip-path: none;
}

.profile-portrait-img {
    transition: transform 420ms var(--ease-spring);
}

.profile-photo-badge {
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--bento-radius-md);
    background: rgba(7, 17, 31, 0.9);
}

.profile-photo-badge .badge-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(250, 212, 192, 0.32);
    border-radius: var(--bento-radius-sm);
    color: var(--bento-primary);
    background: rgba(250, 212, 192, 0.1);
}

.profile-photo-badge .badge-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.profile-lead-copy {
    grid-column: span 8;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: clamp(32px, 5vw, 64px);
    border: 1px solid rgba(128, 161, 193, 0.32);
    border-radius: var(--bento-radius-lg);
    color: var(--bento-text);
    background:
        radial-gradient(circle at 92% 12%, rgba(128, 161, 193, 0.35), transparent 20rem),
        #eef4f8;
    overflow: hidden;
}

.profile-lead-copy .eyebrow,
.profile-tagline {
    color: #7d3a27;
}

.profile-lead-copy h2 {
    color: var(--bento-text);
    font-size: clamp(2.5rem, 4vw, 4rem);
}

.profile-description {
    max-width: 740px;
    color: var(--bento-text-soft);
}

.profile-highlights {
    gap: 8px;
}

.highlight-item {
    padding: 8px 12px;
    border: 1px solid var(--bento-border);
    border-radius: 999px;
    color: var(--bento-text);
    background: rgba(255, 255, 255, 0.72);
}

.highlight-item svg {
    display: block;
    flex: 0 0 auto;
}

.profile-linkedin-cta {
    border-radius: 12px;
    background: var(--bento-navy) !important;
    box-shadow: none;
}

.experience-grid-cv {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--bento-gap);
    margin: 0 0 16px;
}

.experience-card {
    grid-column: span 4;
    min-width: 0;
    min-height: 330px;
    padding: 28px;
    border: 1px solid var(--bento-border);
    border-radius: var(--bento-radius-lg);
    color: var(--bento-text);
    background: #ffffff;
    backdrop-filter: none;
    transition: transform 240ms var(--ease-spring), opacity 220ms ease;
}

.bento-experience-wide {
    grid-column: span 7;
    background: var(--bento-primary);
}

.bento-experience-medium {
    grid-column: span 5;
    background: var(--bento-secondary-soft);
}

.bento-experience-compact {
    grid-column: span 4;
}

.bento-experience-featured {
    grid-column: span 12;
    min-height: 260px;
    color: #ffffff;
    background:
        radial-gradient(circle at 90% 10%, rgba(196, 94, 62, 0.3), transparent 24rem),
        var(--bento-navy);
}

.experience-card:hover {
    border-color: var(--bento-border-strong);
    background: #ffffff;
    transform: translateY(-4px);
}

.bento-experience-wide:hover {
    background: var(--bento-primary);
}

.bento-experience-medium:hover {
    background: var(--bento-secondary-soft);
}

.bento-experience-featured:hover {
    background:
        radial-gradient(circle at 90% 10%, rgba(196, 94, 62, 0.3), transparent 24rem),
        var(--bento-navy);
}

.experience-card-top {
    border-color: rgba(17, 24, 39, 0.12);
}

.exp-card-badge {
    color: #7d3a27;
    background: rgba(255, 255, 255, 0.62);
}

.experience-heading span {
    color: #8f3e28;
}

.experience-heading h3,
.experience-card p,
.experience-card li {
    color: inherit;
}

.experience-card p {
    opacity: 0.78;
}

.experience-card li {
    padding: 5px 9px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    font-size: 0.75rem;
    line-height: 1.4;
}

.bento-experience-featured .experience-card-top,
.bento-experience-featured li {
    border-color: rgba(255, 255, 255, 0.14);
}

.bento-experience-featured .exp-card-badge,
.bento-experience-featured li {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
}

.bento-experience-featured .experience-heading span {
    color: var(--bento-primary);
}

.tech-tools-panel {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--bento-radius-lg);
    color: #ffffff;
    background: var(--bento-navy);
}

.tech-tools-label {
    color: var(--bento-primary);
}

.tech-tools-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 12px;
}

.tech-item {
    min-width: 0;
    padding: 16px 8px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--bento-radius-md);
    background: rgba(255, 255, 255, 0.04);
    transition: transform 200ms ease;
}

.tech-icon-box {
    border: 0;
    background: #ffffff;
}

.tech-item span:last-child {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.75rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Projects bento */
.builds-section {
    width: var(--bento-shell);
    padding: 72px 0 16px;
}

.section-intro-split {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--bento-gap);
    margin-bottom: 16px;
}

.section-intro-split > div,
.section-intro-split > p {
    min-width: 0;
    margin: 0;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--bento-border);
    border-radius: var(--bento-radius-lg);
}

.section-intro-split > div {
    grid-column: span 7;
    color: #ffffff;
    background: var(--bento-navy);
}

.section-intro-split > p {
    grid-column: span 5;
    display: flex;
    align-items: flex-end;
    max-width: none;
    color: var(--bento-text-soft);
    background: var(--bento-primary);
}

.section-intro-split h2 {
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.project-grid-visual {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--bento-gap);
}

.saas-card {
    grid-column: span 5;
    min-width: 0;
    min-height: 290px;
    padding: 24px;
    border: 1px solid var(--bento-border);
    border-radius: var(--bento-radius-lg);
    color: var(--bento-text);
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
    transition: transform 260ms var(--ease-spring), opacity 220ms ease;
}

.bento-project-featured {
    grid-column: span 7;
    grid-row: span 2;
    min-height: 596px;
    color: #ffffff;
    background:
        radial-gradient(circle at 86% 12%, rgba(196, 94, 62, 0.32), transparent 22rem),
        var(--bento-navy);
}

.bento-project-compact {
    grid-column: span 5;
}

.bento-project-medium {
    grid-column: span 5;
    background: var(--bento-secondary-soft);
}

.bento-project-wide {
    grid-column: span 7;
    background: var(--bento-primary);
}

.saas-card:hover {
    z-index: 1;
    border-color: var(--bento-border-strong);
    box-shadow: var(--bento-shadow-hover);
    transform: translateY(-5px);
}

.saas-card-header,
.saas-card-orange .saas-card-header,
.saas-card-green .saas-card-header,
.saas-card-blue .saas-card-header,
.saas-card-purple .saas-card-header,
.saas-card-amber .saas-card-header {
    height: 120px;
    margin: -24px -24px 20px;
    border-color: var(--bento-border);
    background: rgba(17, 24, 39, 0.035);
}

.bento-project-featured .saas-card-header {
    height: 250px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.045);
}

.saas-icon-circle,
.saas-card-orange .saas-icon-circle,
.saas-card-green .saas-icon-circle,
.saas-card-blue .saas-icon-circle,
.saas-card-purple .saas-icon-circle,
.saas-card-amber .saas-icon-circle {
    border: 1px solid rgba(196, 94, 62, 0.24);
    border-radius: var(--bento-radius-sm);
    color: var(--bento-copper);
    background: rgba(250, 212, 192, 0.56);
}

.bento-project-featured .saas-icon-circle {
    color: var(--bento-primary);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.saas-icon-circle svg,
.saas-feature-left svg,
.method-icon-box svg {
    display: block;
    flex: 0 0 auto;
}

.saas-visual-graphic {
    width: 60%;
    opacity: 0.84;
    transform-origin: right center;
    transition: transform 360ms var(--ease-spring), opacity 220ms ease;
}

.saas-card:hover .saas-visual-graphic {
    opacity: 1;
    transform: scale(1.05);
}

.saas-eyebrow,
.saas-card-orange .saas-eyebrow,
.saas-card-green .saas-eyebrow,
.saas-card-blue .saas-eyebrow,
.saas-card-purple .saas-eyebrow,
.saas-card-amber .saas-eyebrow,
.saas-stack-text,
.saas-card-orange .saas-stack-text,
.saas-card-green .saas-stack-text,
.saas-card-blue .saas-stack-text,
.saas-card-purple .saas-stack-text,
.saas-card-amber .saas-stack-text {
    color: #8f3e28;
}

.saas-title {
    color: inherit;
    font-size: 2rem;
}

.saas-desc {
    color: inherit;
    opacity: 0.75;
}

.saas-feature-pill {
    flex-wrap: wrap;
    border-color: rgba(17, 24, 39, 0.12);
    border-radius: var(--bento-radius-sm);
    color: inherit;
    background: rgba(255, 255, 255, 0.46);
}

.saas-feature-tag {
    color: #7d3a27 !important;
    background: rgba(250, 212, 192, 0.72) !important;
}

.saas-footer-meta {
    border-color: rgba(17, 24, 39, 0.12);
}

.saas-arrow-circle,
.saas-card-orange .saas-arrow-circle,
.saas-card-green .saas-arrow-circle,
.saas-card-blue .saas-arrow-circle,
.saas-card-purple .saas-arrow-circle,
.saas-card-amber .saas-arrow-circle {
    color: #ffffff;
    background: var(--bento-navy);
}

.saas-arrow-circle svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bento-project-featured .saas-title,
.bento-project-featured .saas-desc,
.bento-project-featured .saas-eyebrow,
.bento-project-featured .saas-stack-text {
    color: #ffffff;
}

.bento-project-featured .saas-feature-pill {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
}

.bento-project-featured .saas-feature-tag {
    color: var(--bento-navy) !important;
    background: var(--bento-primary) !important;
}

.bento-project-featured .saas-footer-meta {
    border-color: rgba(255, 255, 255, 0.12);
}

.bento-project-featured .saas-arrow-circle {
    color: var(--bento-navy);
    background: var(--bento-primary);
}

/* Method bento */
.methodology-section {
    width: var(--bento-shell);
    margin: 0 auto;
    padding: 72px 0 16px;
}

.methodology-section .section-shell {
    width: 100%;
}

.methodology-intro {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--bento-gap);
    max-width: none;
    margin-bottom: 16px;
}

.methodology-intro > div,
.methodology-intro > p {
    min-width: 0;
    margin: 0;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--bento-border);
    border-radius: var(--bento-radius-lg);
}

.methodology-intro > div {
    grid-column: span 7;
    background: #ffffff;
}

.methodology-intro > p {
    grid-column: span 5;
    display: flex;
    align-items: flex-end;
    max-width: none;
    color: var(--bento-text-soft);
    background: var(--bento-secondary-soft);
}

.methodology-intro h2 {
    color: var(--bento-text);
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--bento-gap);
}

.method-card {
    min-height: 252px;
    padding: 32px;
    border: 1px solid var(--bento-border);
    border-radius: var(--bento-radius-lg);
    color: var(--bento-text);
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
    transition: transform 260ms var(--ease-spring), opacity 220ms ease;
}

.bento-method-featured {
    grid-column: span 7;
    grid-row: span 2;
    min-height: 520px;
    background: var(--bento-primary);
}

.bento-method-support {
    grid-column: span 5;
    background: var(--bento-secondary-soft);
}

.bento-method-dark {
    color: #ffffff;
    background: var(--bento-navy);
}

.method-card:hover {
    border-color: var(--bento-border-strong);
    box-shadow: var(--bento-shadow-hover);
    transform: translateY(-5px);
}

.method-icon-box {
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: var(--bento-radius-sm);
    color: var(--bento-copper);
    background: rgba(255, 255, 255, 0.58);
    transition: transform 260ms var(--ease-spring);
}

.method-card:hover .method-icon-box {
    transform: scale(1.05);
}

.method-card h3,
.method-card p,
.method-card strong {
    color: inherit;
}

.method-card p {
    opacity: 0.76;
}

.bento-method-dark .method-icon-box {
    color: var(--bento-primary);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
}

/* Contact bento */
.contact-section {
    width: var(--bento-shell);
    margin: 0 auto;
    padding: 72px 0 16px;
    color: var(--bento-text);
    background: transparent;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--bento-gap);
    width: 100%;
}

.contact-copy,
.contact-form {
    min-width: 0;
    border-radius: var(--bento-radius-lg);
}

.contact-copy {
    grid-column: span 5;
    padding: clamp(32px, 5vw, 56px);
    color: #ffffff;
    background:
        radial-gradient(circle at 86% 10%, rgba(128, 161, 193, 0.28), transparent 20rem),
        var(--bento-navy);
}

.contact-copy .eyebrow {
    color: var(--bento-primary);
}

.contact-copy h2 {
    color: #ffffff;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.contact-copy > p {
    color: rgba(255, 255, 255, 0.72);
}

.contact-capabilities {
    display: grid;
    gap: 8px;
    margin: 28px 0;
    padding: 0;
    list-style: none;
}

.contact-capabilities li {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--bento-radius-sm);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.contact-note {
    margin-top: 28px;
    padding: 16px;
    border: 1px solid rgba(250, 212, 192, 0.2);
    border-radius: var(--bento-radius-sm);
    color: rgba(255, 255, 255, 0.68);
    background: rgba(250, 212, 192, 0.08);
}

.contact-form {
    grid-column: span 7;
    gap: 20px;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--bento-border);
    background: #ffffff;
    box-shadow: none;
}

.contact-intent {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.contact-intent legend {
    margin-bottom: 10px;
    color: var(--bento-text);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-intent-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.contact-intent-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    min-height: 78px;
    padding: 14px;
    border: 1px solid var(--bento-border-strong);
    border-radius: var(--bento-radius-sm);
    color: var(--bento-text);
    background: var(--bento-surface);
    cursor: pointer;
}

.contact-intent-option:has(input:checked) {
    border-color: var(--bento-copper-action);
    background: rgba(250, 212, 192, 0.42);
    box-shadow: 0 0 0 3px rgba(169, 71, 45, 0.1);
}

.contact-intent-option input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--bento-copper-action);
}

.contact-intent-option span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.contact-intent-option strong {
    font-size: 0.95rem;
    line-height: 1.35;
}

.contact-intent-option small {
    color: var(--bento-text-soft);
    font-size: 0.8rem;
    line-height: 1.4;
}

.form-group {
    gap: 8px;
}

.form-honeypot[hidden] {
    display: none !important;
}

.form-group label {
    color: var(--bento-text);
    font-size: 0.75rem;
}

.form-group input,
.form-group textarea {
    min-height: 54px;
    border: 1px solid var(--bento-border-strong);
    border-radius: var(--bento-radius-sm);
    color: var(--bento-text);
    background: var(--bento-surface);
    transition: none;
}

.form-group textarea {
    min-height: 168px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 3px solid transparent;
    border-color: var(--bento-focus);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 96, 145, 0.15);
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: var(--bento-danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.field-error {
    min-height: 1.2em;
    color: #b91c1c;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.45;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    margin-top: 4px;
    border-radius: 12px;
    background: var(--bento-copper-action);
}

.form-submit:disabled {
    cursor: wait;
    opacity: 0.68;
}

.submit-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.38);
    border-top-color: currentColor;
    border-radius: 50%;
}

.form-submit.is-loading .submit-spinner {
    display: inline-block;
    animation: bento-submit-spin 720ms linear infinite;
}

@keyframes bento-submit-spin {
    to {
        transform: rotate(1turn);
    }
}

.form-status {
    border-radius: var(--bento-radius-sm);
}

.form-status.is-success {
    color: #166534;
    border-color: rgba(22, 163, 74, 0.3);
    background: rgba(22, 163, 74, 0.09);
}

.form-status.is-error {
    color: #991b1b;
    border-color: rgba(220, 38, 38, 0.3);
    background: rgba(220, 38, 38, 0.08);
}

/* Footer */
.footer {
    width: var(--bento-shell);
    margin: 0 auto 16px;
    padding: 32px;
    border: 0;
    border-radius: var(--bento-radius-lg);
    color: rgba(255, 255, 255, 0.64);
    background: var(--bento-navy);
}

.footer-brand img {
    display: block;
    width: auto;
    height: 38px;
}

.footer > p,
.footer span {
    color: rgba(255, 255, 255, 0.62);
}

.footer a {
    color: var(--bento-primary);
}

.footer a:hover {
    color: #ffffff;
}

/* Motion integration */
.motion-enhanced .reveal-on-scroll {
    transition: none;
}

.motion-enhanced .clients-marquee-track {
    animation: none;
}

@media (hover: hover) {
    .experience-card:hover,
    .saas-card:hover,
    .method-card:hover,
    .hero-telemetry-panel:hover {
        transform: translateY(-5px);
    }
}

/* Tablet: six-column bento */
@media (max-width: 1100px) {
    :root {
        --bento-shell: min(100% - 32px, 960px);
    }

    .navbar {
        width: calc(100% - 24px);
    }

    .nav-links {
        top: calc(100% + 8px);
        padding: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: var(--bento-radius-md);
        background: rgba(7, 17, 31, 0.98) !important;
        box-shadow: 0 22px 54px rgba(7, 17, 31, 0.28);
        overscroll-behavior: contain;
    }

    .nav-links > a {
        justify-content: center;
        width: 100%;
    }

    .hero-inner,
    .clients-marquee-section .hero-proof,
    .profile-lead-card,
    .experience-grid-cv,
    .section-intro-split,
    .project-grid-visual,
    .methodology-intro,
    .methodology-grid,
    .contact-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .hero-copy,
    .hero-telemetry-panel {
        grid-column: span 3;
    }

    .hero-title {
        font-size: clamp(3rem, 6.8vw, 4.6rem);
    }

    .clients-marquee-section .hero-proof > div {
        grid-column: span 3;
    }

    .profile-photo-wrapper {
        grid-column: span 2;
    }

    .profile-lead-copy {
        grid-column: span 4;
    }

    .experience-card {
        grid-column: span 3;
        min-height: 320px;
    }

    .bento-experience-wide,
    .bento-experience-featured {
        grid-column: span 6;
        min-height: 260px;
    }

    .tech-tools-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .section-intro-split > div,
    .methodology-intro > div {
        grid-column: span 4;
    }

    .section-intro-split > p,
    .methodology-intro > p {
        grid-column: span 2;
    }

    .saas-card {
        grid-column: span 3;
        grid-row: auto;
        min-height: 360px;
    }

    .bento-project-featured,
    .bento-project-wide {
        grid-column: span 6;
    }

    .bento-project-featured {
        min-height: 500px;
    }

    .bento-method-featured {
        grid-column: span 6;
        grid-row: auto;
        min-height: 340px;
    }

    .bento-method-support {
        grid-column: span 3;
    }

    .contact-copy {
        grid-column: span 2;
    }

    .contact-form {
        grid-column: span 4;
    }
}

/* Mobile: one-column bento, metrics stay two-up */
@media (max-width: 760px) {
    :root {
        --bento-shell: calc(100% - 24px);
        --bento-gap: 12px;
    }

    .navbar {
        top: max(10px, env(safe-area-inset-top));
        height: 62px;
        padding-inline: 12px;
        border-radius: 16px;
    }

    .nav-logo-image {
        height: 32px;
    }

    .hero,
    .hero-section {
        padding-top: 88px;
    }

    .hero-inner,
    .profile-lead-card,
    .section-intro-split,
    .project-grid-visual,
    .methodology-intro,
    .methodology-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .hero-telemetry-panel,
    .profile-photo-wrapper,
    .profile-lead-copy,
    .section-intro-split > div,
    .section-intro-split > p,
    .saas-card,
    .methodology-intro > div,
    .methodology-intro > p,
    .method-card,
    .contact-copy,
    .contact-form {
        grid-column: 1;
    }

    .hero-copy {
        min-height: auto;
        padding: 32px 24px;
    }

    .hero-copy::after {
        right: 20px;
        bottom: 20px;
        width: 56px;
        height: 56px;
        border-radius: 16px;
        opacity: 0.6;
    }

    .hero-title {
        margin-block: 16px 20px;
        font-size: clamp(2.75rem, 13vw, 4rem);
        line-height: 0.98;
    }

    .hero-statement {
        font-size: 1rem;
    }

    .hero-qualification {
        grid-template-columns: 1fr;
        padding-block: 12px;
    }

    .hero-qualification li,
    .hero-qualification li:first-child {
        padding: 9px 0;
    }

    .hero-qualification li + li {
        border-top: 1px solid var(--bento-border);
        border-left: 0;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn-primary,
    .hero-actions .text-link {
        justify-content: center;
        width: 100%;
    }

    .hero-telemetry-panel {
        min-height: 480px;
    }

    .clients-marquee-section {
        width: var(--bento-shell);
        padding: 12px 12px 20px;
    }

    .clients-marquee-section .hero-proof {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .clients-marquee-section .hero-proof > .metric-primary,
    .clients-marquee-section .hero-proof > .metric-secondary {
        grid-column: span 1;
        min-height: 118px;
        padding: 18px 14px;
    }

    .clients-marquee-section .hero-proof > .metric-wide,
    .clients-marquee-section .hero-proof > .metric-compact {
        grid-column: 1 / -1;
        min-height: 118px;
        padding: 18px 14px;
    }

    .hero-proof strong {
        font-size: 1.6rem;
    }

    .clients-marquee-header {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-section {
        padding: 12px;
    }

    .profile-photo-wrapper {
        min-height: 430px;
    }

    .profile-lead-copy {
        padding: 32px 24px;
    }

    .profile-lead-copy h2 {
        font-size: 2.7rem;
    }

    .experience-grid-cv {
        grid-template-columns: 1fr;
    }

    .experience-card {
        grid-column: 1;
        min-height: auto;
        padding: 24px;
    }

    .experience-card-top {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }

    .tech-tools-panel {
        padding: 22px 16px;
    }

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

    .builds-section,
    .methodology-section,
    .contact-section {
        padding-top: 56px;
    }

    .section-intro-split > div,
    .section-intro-split > p,
    .methodology-intro > div,
    .methodology-intro > p {
        padding: 28px 24px;
    }

    .section-intro-split h2,
    .methodology-intro h2,
    .contact-copy h2 {
        font-size: 2.45rem;
    }

    .saas-card {
        min-height: 380px;
        padding: 22px;
    }

    .saas-card-header,
    .saas-card-orange .saas-card-header,
    .saas-card-green .saas-card-header,
    .saas-card-blue .saas-card-header,
    .saas-card-purple .saas-card-header,
    .saas-card-amber .saas-card-header,
    .bento-project-featured .saas-card-header {
        height: 150px;
        margin: -22px -22px 20px;
    }

    .saas-feature-pill {
        align-items: flex-start;
        flex-direction: column;
    }

    .method-card {
        min-height: auto;
        padding: 28px 24px;
    }

    .contact-copy,
    .contact-form {
        padding: 30px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-intent-options {
        grid-template-columns: 1fr;
    }

    .footer {
        align-items: flex-start;
        padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
        text-align: left;
    }

    .footer > p {
        text-align: left;
    }

    .footer > div {
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 390px) {
    :root {
        --bento-shell: calc(100% - 16px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-author-header {
        align-items: flex-start;
    }

    .status-pill {
        line-height: 1.45;
    }
}

@media (prefers-reduced-motion: reduce) {
    .telemetry-flow-traces use,
    .telemetry-flow-nodes .is-live {
        animation: none !important;
    }

    .telemetry-network {
        transform: none !important;
        transition-duration: 0.01ms !important;
    }

    .clients-marquee-track {
        animation: none;
        transform: none !important;
    }

    .hero-copy,
    .hero-telemetry-panel,
    .experience-card,
    .saas-card,
    .saas-visual-graphic,
    .method-card {
        transform: none !important;
        transition-duration: 0.01ms !important;
    }

    .form-submit.is-loading .submit-spinner {
        animation: none;
    }
}
