/* =========================================================================
   Axolotl Limited — design system
   ========================================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    /* Type */
    --font-sans: "Inter", "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "JetBrains Mono", "JetBrains Mono Variable", "SFMono-Regular", Consolas, "Cascadia Mono", "Courier New", monospace;

    /* Ink scale (cool near-black) */
    --ink-1000: #05080d;
    --ink-900: #0d1119;
    --ink-800: #161b25;
    --ink-700: #232a36;
    --ink-600: #3a4453;
    --ink-500: #58606e;
    --ink-400: #7b8593;
    --ink-300: #a4adb9;
    --ink-200: #d4dae2;
    --ink-100: #e9edf1;
    --ink-50:  #f3f5f8;

    /* Surfaces */
    --surface: #ffffff;
    --surface-soft: #f6f8fb;
    --surface-glass: rgba(255, 255, 255, 0.78);

    /* Brand */
    --brand-teal: #1f8aab;
    --brand-teal-dk: #0d6985;
    --brand-teal-dkr: #0a536a;
    --brand-purple: #5e1aa1;
    --brand-purple-dk: #421269;
    --brand-cyan: #7dd8ef;
    --brand-amber: #c47b2a;
    --brand-mint: #2f7d5f;

    /* Hero gradient stops */
    --hero-bg: radial-gradient(120% 100% at 0% 0%, #1a2236 0%, #0a0e16 55%, #05080d 100%);

    /* Radii / shadows */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(13, 17, 25, 0.06), 0 1px 3px rgba(13, 17, 25, 0.04);
    --shadow-md: 0 8px 24px rgba(13, 17, 25, 0.08), 0 2px 6px rgba(13, 17, 25, 0.05);
    --shadow-lg: 0 28px 56px rgba(13, 17, 25, 0.18);

    /* Spacing rhythm */
    --gutter-x: clamp(20px, 5vw, 72px);
    --section-y: clamp(72px, 11vw, 132px);
    --anchor-header-offset: 84px;

    /* Motion */
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    color: var(--ink-900);
    background: var(--surface);
    font-family: var(--font-sans);
    font-feature-settings: "ss01", "cv01", "cv11";
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

::selection {
    background: rgba(31, 138, 171, 0.22);
}

.skip-link {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--ink-900);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 180ms var(--ease);
    z-index: 100;
}

.skip-link:focus {
    transform: translateY(0);
}

/* =========================================================================
   Typography
   ========================================================================= */

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    color: inherit;
    font-family: var(--font-sans);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.04;
}

h1 {
    font-size: clamp(2.6rem, 5.4vw, 4.6rem);
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 0.98;
}

h2 {
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    letter-spacing: -0.03em;
}

h3 {
    font-size: clamp(1.18rem, 1.6vw, 1.32rem);
    font-weight: 750;
    letter-spacing: -0.015em;
}

h1 em,
h2 em {
    color: var(--brand-cyan);
    font-style: normal;
    font-weight: inherit;
}

.section h2 em {
    color: var(--brand-teal-dk);
}

p {
    color: var(--ink-700);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--brand-teal-dk);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
}

.hero .eyebrow,
.section-dark .eyebrow,
.leadership .eyebrow,
.contact-section .eyebrow {
    color: var(--brand-cyan);
}

.lede {
    max-width: 64ch;
    color: var(--ink-600);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    line-height: 1.55;
}

.hero .lede {
    color: rgba(244, 247, 252, 0.78);
}

/* =========================================================================
   Header
   ========================================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px var(--gutter-x);
    background: rgba(8, 11, 17, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: saturate(140%) blur(18px);
    -webkit-backdrop-filter: saturate(140%) blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: clamp(0.96rem, 1.6vw, 1.12rem);
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 4px 14px rgba(0, 0, 0, 0.25);
}

.brand-text {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
}

.brand-text strong {
    font-weight: 800;
    color: #fff;
}

.brand-bracket {
    color: var(--brand-cyan);
    font-weight: 700;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
    margin-left: auto;
    color: rgba(244, 247, 252, 0.78);
    font-size: 0.93rem;
    font-weight: 500;
}

.site-nav a {
    position: relative;
    padding: 6px 2px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 160ms var(--ease);
}

.site-nav a:hover {
    color: #fff;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--brand-cyan);
    transition: right 200ms var(--ease);
}

.site-nav a:hover::after {
    right: 0;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 160ms var(--ease), border-color 160ms var(--ease);
}

.header-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* =========================================================================
   Buttons
   ========================================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: inherit;
    background: transparent;
    font-size: 0.96rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms var(--ease),
                box-shadow 200ms var(--ease),
                background 160ms var(--ease),
                color 160ms var(--ease),
                border-color 160ms var(--ease);
}

.button .arrow {
    display: inline-flex;
    transition: transform 200ms var(--ease);
}

.button:hover .arrow {
    transform: translateX(3px);
}

.button:hover {
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-dkr) 100%);
    box-shadow: 0 10px 24px -10px rgba(13, 105, 133, 0.7),
                inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.button-primary:hover {
    box-shadow: 0 16px 32px -10px rgba(13, 105, 133, 0.65),
                inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.button-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.02);
}

.button-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
}

.button-light {
    color: var(--ink-900);
    border-color: var(--ink-200);
    background: var(--surface);
}

.button-light:hover {
    border-color: var(--ink-700);
    background: var(--surface-soft);
}

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(120px, 16vh, 168px) var(--gutter-x) clamp(72px, 10vw, 120px);
    color: #f4f7fc;
    background: var(--hero-bg);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: -1px;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 84px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 84px);
    mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%);
    opacity: 0.85;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
}

.hero-glow-a {
    top: -10%;
    left: -8%;
    width: 540px;
    height: 540px;
    background: radial-gradient(circle, rgba(31, 138, 171, 0.6) 0%, transparent 65%);
}

.hero-glow-b {
    bottom: -22%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(94, 26, 161, 0.55) 0%, transparent 65%);
}

.hero-glow-c {
    top: 35%;
    left: 38%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(125, 216, 239, 0.18) 0%, transparent 70%);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.7fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
}

.hero-inner.error-hero {
    display: block;
    max-width: 760px;
    text-align: left;
}

.error-request-id {
    margin-top: 28px;
    color: rgba(244, 247, 252, 0.55);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.error-request-id span {
    margin-right: 8px;
    color: rgba(244, 247, 252, 0.72);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.error-request-id code {
    padding: 3px 9px;
    border-radius: 4px;
    color: #7dd8ef;
    background: rgba(125, 216, 239, 0.08);
}

.hero-copy {
    max-width: 720px;
}

.hero h1 {
    margin-bottom: 22px;
    color: #fff;
}

.hero h1 .word {
    display: inline-block;
}

.hero h1 .word-grad {
    background: linear-gradient(115deg, var(--brand-cyan) 0%, #b497f0 60%, #f0c98e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.proof-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 44px 0 0;
    padding: 0;
}

.proof-strip > div {
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(2px);
}

.proof-strip dt {
    color: #fff;
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.proof-strip dd {
    margin: 8px 0 0;
    color: rgba(244, 247, 252, 0.66);
    font-size: 0.86rem;
    font-weight: 500;
}

/* Trade lifecycle visual */

.lifecycle {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(20, 26, 40, 0.78), rgba(10, 14, 22, 0.8));
    box-shadow: 0 32px 70px -28px rgba(0, 0, 0, 0.7),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lifecycle::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(160deg, rgba(125, 216, 239, 0.55), rgba(94, 26, 161, 0.4) 60%, transparent 100%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
}

.lifecycle-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 6px;
    color: rgba(244, 247, 252, 0.6);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.lifecycle-stack {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.lifecycle-stack li {
    position: relative;
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    color: #f4f7fc;
    font-size: 0.92rem;
    transition: border-color 220ms var(--ease), background 220ms var(--ease), transform 220ms var(--ease);
}

.lifecycle-stack li:hover {
    border-color: rgba(125, 216, 239, 0.45);
    background: rgba(125, 216, 239, 0.06);
    transform: translateX(2px);
}

.lifecycle-stack .stage {
    color: var(--brand-cyan);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lifecycle-stack .stage-name {
    font-weight: 650;
    letter-spacing: -0.005em;
}

.lifecycle-stack .stage-tag {
    color: rgba(244, 247, 252, 0.55);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

/* =========================================================================
   Sections
   ========================================================================= */

main {
    display: block;
}

.section {
    position: relative;
    padding: var(--section-y) var(--gutter-x);
}

.section-light {
    background: var(--surface-soft);
}

.section-dark {
    color: #f4f7fc;
    background: linear-gradient(180deg, #0d1119 0%, #0a0e16 100%);
}

.container {
    max-width: 1320px;
    margin: 0 auto;
}

.section-head {
    max-width: 820px;
    margin-bottom: clamp(40px, 5vw, 56px);
}

.section-head .lede {
    margin-top: 14px;
}

.section-dark .lede,
.section-dark p {
    color: rgba(244, 247, 252, 0.74);
}

.leadership .lede {
    color: rgba(244, 247, 252, 0.78);
}

/* =========================================================================
   Services
   ========================================================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 280px;
    padding: 26px 24px;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-teal);
    box-shadow: var(--shadow-md);
}

.service-num {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-teal-dk);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.service-num::after {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--brand-teal);
    opacity: 0.65;
}

.service-card h3 {
    margin-top: 6px;
    color: var(--ink-900);
}

.service-card p {
    color: var(--ink-600);
    font-size: 0.97rem;
}

.service-card ul {
    margin-top: auto;
    padding: 16px 0 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid var(--ink-100);
}

.service-card li {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--ink-700);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* =========================================================================
   Selected work
   ========================================================================= */

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.work-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 26px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f4f7fc;
    overflow: hidden;
    transition: transform 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease);
}

.work-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 60% at 100% 0%, rgba(125, 216, 239, 0.18), transparent 70%);
    opacity: 0;
    transition: opacity 260ms var(--ease);
    pointer-events: none;
}

.work-card:hover {
    transform: translateY(-3px);
    border-color: rgba(125, 216, 239, 0.5);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.work-card:hover::before {
    opacity: 1;
}

.work-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(125, 216, 239, 0.32);
    color: var(--brand-cyan);
    background: rgba(125, 216, 239, 0.06);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.work-card h3 {
    color: #fff;
    font-size: clamp(1.18rem, 1.7vw, 1.35rem);
}

.work-card p {
    color: rgba(244, 247, 252, 0.74);
    font-size: 0.96rem;
}

.work-stack {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(244, 247, 252, 0.6);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.55;
}

.work-stack b {
    display: block;
    margin-bottom: 4px;
    color: rgba(125, 216, 239, 0.85);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

/* =========================================================================
   Capabilities
   ========================================================================= */

.capabilities {
    display: grid;
    grid-template-columns: minmax(280px, 0.6fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.capability-groups {
    display: grid;
    gap: 18px;
}

.capability-group h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--ink-700);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.capability-group h4::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-teal);
}

.capability-group:nth-child(2) h4::before { background: var(--brand-purple); }
.capability-group:nth-child(3) h4::before { background: var(--brand-amber); }
.capability-group:nth-child(4) h4::before { background: var(--brand-mint); }

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid var(--ink-100);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-700);
    font-size: 0.9rem;
    font-weight: 600;
    transition: border-color 160ms var(--ease), color 160ms var(--ease), background 160ms var(--ease);
}

.chip:hover {
    border-color: var(--brand-teal);
    color: var(--brand-teal-dkr);
    background: rgba(31, 138, 171, 0.06);
}

/* =========================================================================
   Leadership
   ========================================================================= */

.leadership {
    color: #f4f7fc;
    background: linear-gradient(180deg, #0a0e16 0%, #10141d 100%);
}

.leadership-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
    margin-top: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.focus-tabs {
    display: grid;
    align-content: start;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.18);
}

.focus-tabs button {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 16px 22px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(244, 247, 252, 0.7);
    background: transparent;
    font-size: 0.96rem;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
    transition: color 160ms var(--ease), background 160ms var(--ease);
}

.focus-tabs button:last-child {
    border-bottom: 0;
}

.focus-tabs button::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 200ms var(--ease), box-shadow 200ms var(--ease);
}

.focus-tabs button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.focus-tabs button.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(31, 138, 171, 0.28), rgba(31, 138, 171, 0));
}

.focus-tabs button.active::before {
    background: var(--brand-cyan);
    box-shadow: 0 0 0 4px rgba(125, 216, 239, 0.18);
}

.focus-output {
    min-height: 320px;
    padding: clamp(28px, 5vw, 56px);
}

.focus-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--brand-cyan);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.focus-output h3 {
    max-width: 760px;
    margin-bottom: 14px;
    color: #fff;
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    line-height: 1.08;
}

.focus-output p {
    max-width: 720px;
    color: rgba(244, 247, 252, 0.74);
    font-size: clamp(1rem, 1.4vw, 1.08rem);
}

.principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.principles article {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.principles h3 {
    margin-bottom: 8px;
    color: #fff;
}

.principles p {
    color: rgba(244, 247, 252, 0.7);
    font-size: 0.96rem;
}

/* =========================================================================
   AI section
   ========================================================================= */

.ai-section {
    background: var(--surface-soft);
}

.ai-section-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 84px);
    align-items: center;
}

.ai-pipeline {
    position: relative;
    padding: 22px;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(31, 138, 171, 0.08), rgba(94, 26, 161, 0.05)),
        var(--surface);
    box-shadow: var(--shadow-md);
}

.ai-pipeline-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px 18px;
    color: var(--ink-500);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ai-stages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ai-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 110px;
    padding: 16px;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-sm);
    background: var(--surface);
    overflow: hidden;
}

.ai-stage::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-teal), transparent);
    opacity: 0.7;
}

.ai-stage:nth-child(2)::after { background: linear-gradient(90deg, var(--brand-purple), transparent); }
.ai-stage:nth-child(3)::after { background: linear-gradient(90deg, var(--brand-amber), transparent); }
.ai-stage:nth-child(4)::after { background: linear-gradient(90deg, var(--brand-mint), transparent); }
.ai-stage:nth-child(5)::after { background: linear-gradient(90deg, var(--brand-cyan), transparent); }
.ai-stage:nth-child(6)::after { background: linear-gradient(90deg, var(--brand-teal-dk), transparent); }

.ai-stage span:first-child {
    color: var(--ink-500);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ai-stage span:last-child {
    color: var(--ink-900);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    color: var(--ink-700);
    font-weight: 600;
}

.check-list li::before {
    content: "";
    position: absolute;
    top: 0.4em;
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background:
        linear-gradient(135deg, var(--brand-mint), #1e5d44);
    box-shadow: 0 0 0 3px rgba(47, 125, 95, 0.12);
}

.check-list li::after {
    content: "";
    position: absolute;
    top: 0.7em;
    left: 5px;
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

/* =========================================================================
   Contact
   ========================================================================= */

.contact-section {
    position: relative;
    overflow: hidden;
    color: #f4f7fc;
    background: linear-gradient(135deg, #0d1119 0%, #1a1430 60%, #0d1119 100%);
}

.contact-section::before,
.contact-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.contact-section::before {
    top: -20%;
    left: -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(31, 138, 171, 0.45), transparent 70%);
}

.contact-section::after {
    bottom: -30%;
    right: -10%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(94, 26, 161, 0.45), transparent 70%);
}

.contact-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.contact-inner h2 {
    color: #fff;
    margin-bottom: 16px;
}

.contact-inner p {
    color: rgba(244, 247, 252, 0.78);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    max-width: 560px;
}

.contact-card {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact-card .label {
    color: rgba(244, 247, 252, 0.55);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-card a.email {
    display: block;
    margin: 8px 0 22px;
    color: #fff;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: color 160ms var(--ease);
}

.contact-card a.email:hover {
    color: var(--brand-cyan);
}

.contact-card .actions {
    margin-top: 0;
}

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
    padding: 32px var(--gutter-x);
    background: #05080d;
    color: rgba(244, 247, 252, 0.55);
    font-size: 0.86rem;
}

.site-footer .footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    max-width: 1320px;
    margin: 0 auto;
}

.site-footer .brand {
    color: rgba(244, 247, 252, 0.78);
    font-size: 0.96rem;
}

.site-footer .footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    color: rgba(244, 247, 252, 0.55);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

/* =========================================================================
   Blazor error UI
   ========================================================================= */

#blazor-error-ui {
    color-scheme: light only;
    background: #fff7d4;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* =========================================================================
   Reduced motion
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
    }
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 1080px) {
    .hero-inner,
    .ai-section-grid,
    .capabilities,
    .contact-inner {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lifecycle {
        max-width: 540px;
    }
}

@media (max-width: 760px) {
    .site-header {
        flex-wrap: wrap;
        gap: 10px 16px;
        padding: 12px var(--gutter-x);
    }

    .site-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        gap: 16px;
        overflow-x: auto;
        padding: 6px 0 2px;
        scrollbar-width: none;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .header-cta {
        margin-left: auto;
    }

    .hero {
        padding-top: 130px;
    }

    .actions .button,
    .contact-card .actions .button {
        width: 100%;
    }

    .proof-strip {
        grid-template-columns: 1fr;
    }

    .lifecycle-stack li {
        grid-template-columns: 80px 1fr;
    }

    .lifecycle-stack .stage-tag {
        grid-column: 1 / -1;
        margin-top: -2px;
    }

    .leadership-panel {
        grid-template-columns: 1fr;
    }

    .focus-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .focus-tabs button {
        justify-content: center;
        text-align: center;
    }

    .principles {
        grid-template-columns: 1fr;
    }

    .ai-stages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) and (orientation: portrait) {
    .site-nav .phone-portrait-hidden-start,
    .site-nav .phone-portrait-hidden-start ~ a {
        display: none;
    }
}

@media (max-width: 520px) {
    .services-grid,
    .work-grid {
        grid-template-columns: 1fr;
    }

    .ai-stages {
        grid-template-columns: 1fr;
    }

    .lifecycle {
        padding: 16px;
    }

    .site-footer .footer-inner {
        justify-content: flex-start;
    }
}

/* =========================================================================
   Motion & focus polish
   Entrance and scroll-reveal motion is progressive enhancement only: it is
   gated behind prefers-reduced-motion and @supports, so reduced-motion
   clients and browsers without scroll-driven animations render the original
   static layout unchanged.
   ========================================================================= */

/* Anchor jumps land clear of the fixed header. Section ids live inside each
   section so the section background still fills the space under the header. */
html {
    scroll-padding-top: var(--anchor-header-offset);
}

/* Keyboard focus — branded ring, legible on both light and dark sections */
:focus-visible {
    outline: 2px solid var(--brand-teal-dk);
    outline-offset: 3px;
}

.site-header :focus-visible,
.hero :focus-visible,
.section-dark :focus-visible,
.leadership :focus-visible,
.contact-section :focus-visible,
.site-footer :focus-visible,
.skip-link:focus-visible {
    outline-color: var(--brand-cyan);
}

/* The leadership panel clips overflow — keep the tab ring inside the button */
.focus-tabs button:focus-visible {
    outline-offset: -3px;
}

/* Secondary hover motion — the rule line extends as the service card lifts */
.service-num::after {
    transition: width 220ms var(--ease);
}

.service-card:hover .service-num::after {
    width: 36px;
}

@keyframes axo-reveal {
    from {
        opacity: 0;
        transform: translate3d(0, 24px, 0);
    }
}

@keyframes axo-focus-in {
    from {
        opacity: 0;
        transform: translate3d(0, 8px, 0);
    }
}

@keyframes axo-header-settle {
    from {
        background-color: rgba(8, 11, 17, 0.4);
        border-bottom-color: rgba(255, 255, 255, 0.02);
        box-shadow: 0 0 0 0 rgba(5, 8, 13, 0);
    }
    to {
        background-color: rgba(8, 11, 17, 0.82);
        border-bottom-color: rgba(255, 255, 255, 0.09);
        box-shadow: 0 14px 34px -22px rgba(5, 8, 13, 0.9);
    }
}

@keyframes axo-drift-a {
    to { transform: translate3d(26px, 18px, 0) scale(1.08); }
}

@keyframes axo-drift-b {
    to { transform: translate3d(-30px, -16px, 0) scale(1.1); }
}

@keyframes axo-drift-c {
    to { transform: translate3d(20px, -22px, 0) scale(0.92); }
}

@media (prefers-reduced-motion: no-preference) {

    /* Slow ambient drift on the hero glow orbs */
    .hero-glow-a { animation: axo-drift-a 26s ease-in-out infinite alternate; }
    .hero-glow-b { animation: axo-drift-b 32s ease-in-out infinite alternate; }
    .hero-glow-c { animation: axo-drift-c 22s ease-in-out infinite alternate; }

    /* Leadership panel content cross-fades when the focus tab changes */
    .focus-output {
        animation: axo-focus-in 340ms var(--ease) both;
    }

    /* Content rises into view as it is scrolled past — below the fold */
    @supports (animation-timeline: view()) {
        .section-head,
        .service-card,
        .work-card,
        .capabilities > div:first-child,
        .capability-group,
        .leadership-panel,
        .principles article,
        .ai-pipeline,
        .ai-copy,
        .contact-inner > div {
            animation: axo-reveal linear both;
            animation-timeline: view();
            animation-range: entry 4% entry 48%;
        }

        .service-card:nth-child(2) { animation-range: entry 9% entry 53%; }
        .service-card:nth-child(3) { animation-range: entry 14% entry 58%; }
        .service-card:nth-child(4) { animation-range: entry 19% entry 63%; }

        .work-card:nth-child(3n+2) { animation-range: entry 9% entry 53%; }
        .work-card:nth-child(3n)   { animation-range: entry 14% entry 58%; }

        .capability-group:nth-child(2) { animation-range: entry 9% entry 53%; }
        .capability-group:nth-child(3) { animation-range: entry 14% entry 58%; }
        .capability-group:nth-child(4) { animation-range: entry 19% entry 63%; }

        .principles article:nth-child(2) { animation-range: entry 9% entry 53%; }
        .principles article:nth-child(3) { animation-range: entry 14% entry 58%; }

        .ai-copy { animation-range: entry 9% entry 53%; }
        .contact-inner > div:last-child { animation-range: entry 9% entry 53%; }
    }

    /* Header firms up once the page is scrolled away from the hero */
    @supports (animation-timeline: scroll()) {
        .site-header {
            animation: axo-header-settle linear both;
            animation-timeline: scroll(root block);
            animation-range: 0 130px;
        }
    }
}

@media (max-width: 760px) {
    :root {
        --anchor-header-offset: 124px;
    }
}
