:root {
    --bg-color: #0a0a0b;
    --bg-elevated: #111113;
    --text-primary: #ededef;
    --text-secondary: #8a8a8e;
    --text-tertiary: #5a5a5e;
    --accent-color: #6e56cf;
    --accent-light: #9e8cfc;
    --accent-subtle: rgba(110, 86, 207, 0.12);
    --glass-bg: rgba(17, 17, 19, 0.65);
    --glass-border: rgba(255, 255, 255, 0.06);
    --border-subtle: rgba(255, 255, 255, 0.04);
    --card-hover-border: rgba(110, 86, 207, 0.25);

    --gradient-1: linear-gradient(135deg, #6e56cf 0%, #9e8cfc 50%, #6e56cf 100%);
    --gradient-glow-1: #6e56cf;
    --gradient-glow-2: #9e8cfc;

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 600;
    z-index: 200;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.02em;
}

/* Focus-visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Smooth scroll offset for fixed nav */
.section, [id] {
    scroll-margin-top: 5rem;
}

/* Atmospheric Glows — subtle, not overwhelming */
.glow-bg {
    position: fixed;
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    opacity: 0.06;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

.glow-bg.top-left {
    top: -15%;
    left: -10%;
    background: radial-gradient(circle, var(--gradient-glow-1) 0%, transparent 70%);
    animation: drift 25s infinite alternate ease-in-out;
}

.glow-bg.bottom-right {
    bottom: -15%;
    right: -10%;
    background: radial-gradient(circle, var(--gradient-glow-2) 0%, transparent 70%);
    animation: drift 30s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.05); }
}

/* ========================
   NAVIGATION
   ======================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(10, 10, 11, 0.8);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

nav.scrolled {
    background: rgba(10, 10, 11, 0.95);
    box-shadow: 0 1px 0 var(--glass-border);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.9rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 450;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    transition: color var(--transition-fast), background var(--transition-fast);
    letter-spacing: -0.01em;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-links a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.btn-contact {
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    background: var(--accent-color);
    color: #fff !important;
    border: none;
    font-weight: 500;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.btn-contact:hover {
    opacity: 0.88;
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-1px);
}

/* ========================
   GLOBAL GLASS & LAYOUT
   ======================== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 2rem 2rem;
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
}

.section {
    padding: 6rem 0 0 0;
    position: relative;
}

#contact {
    padding-bottom: 6rem;
}

/* Divider line via ::after on every section except contact */
.section:not(#contact)::after {
    content: '';
    display: block;
    margin: 8rem auto 0;
    height: 1px;
    width: 70%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.07) 30%, rgba(110, 86, 207, 0.2) 50%, rgba(255, 255, 255, 0.07) 70%, transparent 100%);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 650;
    margin-top: 0;
    margin-bottom: 5rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.expand-btn {
    display: none;
}

/* ========================
   BUTTONS
   ======================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 1.8rem;
    border-radius: 10px;
    font-weight: 550;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    cursor: pointer;
    letter-spacing: -0.01em;
}

.btn-large {
    padding: 0.85rem 2.2rem;
    font-size: 0.95rem;
}

.btn.primary {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 2px 12px rgba(110, 86, 207, 0.3);
}

.btn.primary:hover {
    background: var(--accent-light);
    box-shadow: 0 4px 20px rgba(110, 86, 207, 0.4);
    transform: translateY(-1px);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

/* ========================
   HERO SECTION
   ======================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    gap: 4rem;
    padding-top: 2rem;
}

.hero-content {
    flex: 1;
}

.greeting {
    font-size: 0.85rem;
    color: var(--accent-light);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.name {
    font-size: 3.8rem;
    font-weight: 750;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2rem;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

.hero-credentials {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.credential {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.credential svg {
    color: var(--accent-light);
    flex-shrink: 0;
}

.credential-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.15);
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.hero-cta .btn {
    min-width: 180px;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.image-glass {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4/5;
    border-radius: var(--radius-xl);
    padding: 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transform: rotate(2deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.portrait-glow {
    position: relative;
}

.portrait-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    box-shadow: 0 0 40px rgba(110, 86, 207, 0.15), 0 0 80px rgba(158, 140, 252, 0.08);
    z-index: -1;
    pointer-events: none;
    transition: box-shadow 0.6s ease;
}

.image-glass:hover {
    transform: rotate(0deg);
    box-shadow: 0 0 50px rgba(110, 86, 207, 0.2);
}

.image-glass:hover .portrait-glow::before,
.image-glass:hover::before {
    box-shadow: 0 0 60px rgba(110, 86, 207, 0.25);
}

.img-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: calc(var(--radius-xl) - 6px);
    overflow: hidden;
}

.img-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    filter: contrast(1.1) saturate(1.05);
}

.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-color);
    opacity: 0.18;
    pointer-events: none;
}

/* ========================
   PROCESS — Staggered Timeline (Desktop + Mobile)
   ======================== */

/* Desktop Timeline */
.process-timeline {
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 420px;
    position: relative;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
}

/* Process Node — absolute positioning for consistent circle heights */
.process-node {
    flex: 1;
    position: relative;
    z-index: 2;
    cursor: default;
}

.process-node .process-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* node-top: circle at 60% from top */
.process-node.node-top .process-icon {
    top: 60%;
    transform: translateX(-50%) translateY(-50%);
}

/* node-bottom: circle at 40% from top */
.process-node.node-bottom .process-icon {
    top: 40%;
    transform: translateX(-50%) translateY(-50%);
}

.process-node .process-text {
    position: absolute;
    left: 0;
    right: 0;
}

/* node-top: text starts below circle */
.process-node.node-top .process-text {
    top: 74%;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* node-bottom: text ends above circle */
.process-node.node-bottom .process-text {
    top: 0;
    bottom: 74%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Icon Circle */
.process-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 1px solid #2a2a35;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    transition: border-color 0.5s, box-shadow 0.5s, color 0.5s;
}

.process-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(110, 86, 207, 0.1);
    opacity: 0;
    transition: opacity 0.5s;
    filter: blur(8px);
}

.process-node:hover .process-icon {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(110, 86, 207, 0.2);
    color: var(--accent-color);
}

.process-node:hover .process-icon::before {
    opacity: 1;
}

/* Text */
.process-text {
    text-align: center;
}

.process-text h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
    transition: color 0.3s;
    white-space: nowrap;
}

.process-text p {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.6;
    margin: 0 auto;
}

/* SVG Connector Lines — drawn via JS, styles inline */

/* ========================
   CARDS GRID (Education, etc.)
   ======================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.edu-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
}

.feature-card {
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    cursor: default;
}

.feature-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: 0 8px 32px rgba(110, 86, 207, 0.06), 0 4px 16px rgba(0, 0, 0, 0.2);
}

.icon-wrap {
    font-size: 1.5rem;
    color: var(--accent-light);
    background: var(--accent-subtle);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ========================
   CASE STUDIES
   ======================== */
.cs-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    text-align: center;
}

.cs-header {
    max-width: 620px;
}

.cs-label {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-light);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
    background: var(--accent-subtle);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
}

.cs-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    font-weight: 700;
    line-height: 1.3;
}

.cs-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.5;
    margin-top: 0.4rem;
    max-width: 540px;
}

/* Numbered steps */
.cs-steps {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cs-step {
    background: var(--bg-color);
    padding: 1.75rem 1.5rem;
    text-align: left;
    cursor: default;
    position: relative;
    transition: background var(--transition-base);
}

.cs-step:hover {
    background: var(--bg-elevated);
}

.cs-step-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.4;
    transition: opacity var(--transition-base);
}

.cs-step:hover .cs-step-num {
    opacity: 1;
}

.cs-step-content h4 {
    font-size: 0.92rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* Detail text — revealed on hover */
.cs-step-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity var(--transition-base);
}

.cs-step:hover .cs-step-detail {
    max-height: 200px;
    opacity: 1;
}

.cs-step-detail strong {
    color: var(--accent-light);
    font-weight: 600;
}

/* ========================
   METHODS & STACK
   ======================== */
.methods-pyramid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    --tag-gap: 0.75rem;
    --tag-width: calc((100% - 3 * var(--tag-gap)) / 4);
}

.methods-row {
    display: flex;
    gap: var(--tag-gap);
}

.methods-row-top {
    justify-content: space-between;
}

.methods-row-mid,
.methods-row-bot {
    justify-content: center;
}

.methods-pyramid .modern-tag {
    width: var(--tag-width);
    min-width: var(--tag-width);
    max-width: var(--tag-width);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
}

/* Tools Logo Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem 1rem;
    justify-items: center;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    cursor: default;
}

.tool-item img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px;
    object-fit: contain;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.tool-item:hover img {
    transform: translateY(-3px);
    border-color: rgba(110, 86, 207, 0.3);
    box-shadow: 0 4px 16px rgba(110, 86, 207, 0.15);
}

.tool-item span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 450;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: color var(--transition-fast);
}


.modern-tag {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 450;
    transition: all var(--transition-fast);
    cursor: default;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    background: rgba(110, 86, 207, 0.1);
    border: 1px solid rgba(110, 86, 207, 0.22);
}

.modern-tag:hover {
    background: rgba(110, 86, 207, 0.18);
    border-color: rgba(110, 86, 207, 0.4);
}

/* ========================
   EXPERIENCE
   ======================== */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, auto);
    gap: 0 1.5rem;
}

.exp-station {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    justify-items: center;
    text-align: center;
    padding: 2rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: border-color var(--transition-base), background var(--transition-base);
    cursor: default;
    row-gap: 0;
}

.exp-station:hover {
    border-color: var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.exp-logo {
    width: 100%;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.exp-logo img {
    max-height: 58px;
    max-width: 160px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.exp-station:hover .exp-logo img {
    opacity: 1;
}

.exp-type {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 450;
    letter-spacing: 0.02em;
    margin-bottom: 0.15rem;
    white-space: nowrap;
}

.exp-role {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.exp-period {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-weight: 450;
    letter-spacing: 0.01em;
    font-family: 'Inter', sans-serif;
    margin-top: auto;
}

.exp-refs {
    font-size: 0.78rem;
    font-weight: 450;
    letter-spacing: 0.01em;
    font-family: 'Inter', sans-serif;
    margin-top: 0.3rem;
}

.exp-refs a {
    color: var(--text-tertiary);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(255, 255, 255, 0.2);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.exp-refs a:hover {
    color: var(--accent-light);
    text-decoration-color: var(--accent-light);
}

/* Individual logo scaling — sized so wordmark TEXT appears ~18px optically */
.exp-station:nth-child(1) .exp-logo img { height: 22px; max-width: none; }  /* Siemens — text = ~85% of img height */
.exp-station:nth-child(2) .exp-logo img { height: 19px; max-width: none; transform: translateY(2px); }  /* auxmoney — nudged down for optical alignment */
.exp-station:nth-child(3) .exp-logo img { height: 34px; max-width: none; }  /* KPMG — bars + text, reduced */
.exp-station:nth-child(4) .exp-logo img { height: 58px; max-width: none; }  /* naontek — text + "powered by", needs more height */

/* ========================
   TESTIMONIALS
   ======================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.testimonial-card {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.testimonial-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: 0 8px 32px rgba(110, 86, 207, 0.06);
}

.quote-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1.25rem;
    opacity: 0.5;
}

.quote-text {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.7;
    font-style: normal;
    margin-bottom: 2rem;
    flex-grow: 1;
    opacity: 0.9;
}

.quote-author {
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.25rem;
}

.author-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}

.author-linkedin {
    color: #0a66c2;
    font-size: 1rem;
    transition: opacity var(--transition-fast);
    opacity: 0.7;
}

.author-linkedin:hover {
    opacity: 1;
}

.author-title {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    letter-spacing: -0.01em;
}

/* ========================
   CONTACT / CTA
   ======================== */
.cta-banner {
    padding: 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.5;
}

.cta-banner h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    font-weight: 650;
}

.cta-banner p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.contact-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.contact-links .btn {
    min-width: 180px;
}

/* ========================
   FOOTER
   ======================== */
footer {
    text-align: center;
    padding: 2.5rem 2rem;
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
    color: var(--text-tertiary);
    margin-top: 1rem;
    font-size: 0.82rem;
    border-top: 1px solid var(--border-subtle);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.footer-legal {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.footer-legal a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

.footer-legal span {
    opacity: 0.3;
}

/* ========================
   LEGAL PAGES
   ======================== */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--accent-light);
}

.legal-content {
    padding: 0;
}

.legal-content h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.legal-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: 1.25rem;
    font-weight: 650;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    margin-top: 0;
    letter-spacing: -0.02em;
}

.legal-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.2rem 0 0.5rem;
}

.legal-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 1rem 0 0.4rem;
}

.legal-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.legal-section a {
    color: var(--accent-light);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.legal-section a:hover {
    opacity: 0.8;
}

.legal-source {
    font-size: 0.85rem !important;
    opacity: 0.5;
}

/* ========================
   ANIMATIONS
   ======================== */
.fade-in {
    opacity: 0;
    transition: opacity 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* ========================
   MOBILE NAVIGATION
   ======================== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: background 0.2s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    left: 0;
    transition: transform 0.2s ease;
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.7rem 1.25rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        padding: 0.75rem;
        min-height: 44px;
    }

    .btn-contact {
        margin-top: 0.5rem;
        width: auto;
        display: inline-block;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 3rem;
        min-height: auto;
        gap: 2.5rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .name {
        font-size: 2.75rem;
    }

    .hero-desc {
        font-size: 0.95rem;
        text-align: center;
        margin-bottom: 1.25rem;
    }

    .hero-credentials {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .credential-divider {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-image-container {
        justify-content: center;
    }

    .image-glass {
        max-width: 280px;
    }

    .section {
        padding: 3.5rem 0 0 0;
    }

    #contact {
        padding-bottom: 3.5rem;
    }

    .section:not(#contact)::after {
        margin-top: 5rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 3.5rem;
        text-align: center;
    }

    /* Process: Vertical on mobile */
    .process-timeline {
        flex-direction: column;
        height: auto;
        gap: 2rem;
        padding-left: 0;
        position: relative;
    }

    .process-timeline svg.process-connectors {
        display: none;
    }

    /* Vertical line */
    .process-timeline::before {
        content: '';
        position: absolute;
        left: 31px;
        top: 32px;
        bottom: 32px;
        width: 2px;
        background: var(--accent-color);
        box-shadow: 0 0 8px rgba(110, 86, 207, 0.6);
        z-index: 0;
    }

    .process-node,
    .process-node.node-top,
    .process-node.node-bottom {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 1.25rem;
        height: auto;
        padding: 0;
    }

    .process-node .process-icon,
    .process-node.node-top .process-icon,
    .process-node.node-bottom .process-icon {
        position: static;
        transform: none;
        min-width: 64px;
        width: 64px;
        height: 64px;
        flex-shrink: 0;
    }

    .process-icon svg {
        width: 24px;
        height: 24px;
    }

    .process-node .process-text,
    .process-node.node-top .process-text,
    .process-node.node-bottom .process-text {
        position: static;
        text-align: left;
        margin: 0;
        padding-top: 0.5rem;
        display: block;
    }

    .process-node .process-text h3 {
        white-space: normal;
    }

    .process-node .process-text p {
        max-width: none;
    }

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

    /* Case Studies — single column, all revealed */
    .cs-title {
        font-size: 1.4rem;
    }

    .cs-subtitle {
        font-size: 0.82rem;
    }

    .cs-label {
        font-size: 0.65rem;
        padding: 0.25rem 0.6rem;
    }

    .cs-open {
        gap: 1.5rem;
    }

    .cs-steps {
        grid-template-columns: 1fr;
        border-radius: var(--radius-sm);
        gap: 1px;
    }

    .cs-step {
        padding: 1.1rem 1rem;
    }

    .cs-step-detail {
        max-height: none;
        opacity: 1;
        font-size: 0.82rem;
        display: block;
        margin-top: 0.4rem;
    }

    .cs-step-num {
        font-size: 1.1rem;
        opacity: 0.5;
        margin-bottom: 0.4rem;
        display: inline-block;
        margin-right: 0.5rem;
    }

    .cs-step-content h4 {
        font-size: 0.85rem;
        display: inline;
    }

    .cs-step-content {
        display: inline;
    }

    /* Methods — wrap freely */
    .methods-pyramid {
        --tag-width: unset;
    }

    .methods-row,
    .methods-row-top,
    .methods-row-mid,
    .methods-row-bot {
        flex-wrap: wrap;
        justify-content: center;
    }

    .methods-pyramid .modern-tag {
        width: auto;
        min-width: unset;
        max-width: unset;
        height: auto;
    }

    /* Stack — 3 col, tighter */
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem 0.75rem;
    }

    .tool-item img {
        width: 48px;
        height: 48px;
        padding: 8px;
    }

    .tool-item span {
        font-size: 0.7rem;
    }

    /* Experience — 2x2 grid, rows aligned across cards via subgrid */
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, auto) repeat(5, auto);
        gap: 0 0.75rem;
    }

    .exp-station {
        display: grid;
        grid-row: span 5;
        grid-template-rows: subgrid;
        justify-items: center;
        padding: 1.25rem 0.75rem;
        overflow: hidden;
        row-gap: 0;
    }

    .exp-logo {
        height: 40px;
        margin-bottom: 0.5rem;
        overflow: hidden;
    }

    .exp-type {
        display: flex;
        align-items: center;
        font-size: 0.68rem;
        white-space: normal;
    }

    .exp-logo img {
        max-height: 36px !important;
        max-width: 100px !important;
        height: auto !important;
    }

    .exp-station:nth-child(1) .exp-logo img { height: 15px !important; }
    .exp-station:nth-child(2) .exp-logo img { height: 13px !important; transform: translateY(1px); }
    .exp-station:nth-child(3) .exp-logo img { height: 26px !important; }
    .exp-station:nth-child(4) .exp-logo img { height: 36px !important; }

    .exp-role {
        font-size: 0.78rem;
    }

    .exp-period {
        font-size: 0.7rem;
    }

    .exp-refs {
        font-size: 0.65rem;
        margin-top: 0.15rem;
    }

    /* Testimonials — horizontal scroll carousel */
    #testimonials {
        position: relative;
    }

    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        padding-bottom: 0;
        scrollbar-width: none;
    }

    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        min-width: 100%;
        max-width: 100%;
        flex-shrink: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        padding: 2rem 1.5rem;
    }

    /* Carousel swipe hint — use ::before since ::after is the divider */
    #testimonials::before {
        content: '›';
        position: absolute;
        right: -0.25rem;
        top: calc(50% + 1.5rem);
        font-size: 2rem;
        font-weight: 300;
        color: var(--accent-light);
        opacity: 0;
        pointer-events: none;
        animation: swipeHint 2.5s ease-in-out 1s 3;
        z-index: 5;
    }

    @keyframes swipeHint {
        0%, 100% { opacity: 0; transform: translateX(0); }
        30%, 70% { opacity: 0.7; }
        50% { opacity: 0.9; transform: translateX(5px); }
    }

    .cta-banner {
        padding: 2.5rem 1.5rem;
    }

    .cta-banner h2 {
        font-size: 1.6rem;
    }

    .contact-links {
        flex-direction: column;
        width: 100%;
    }

    /* Expandable Content (Mobile Only) */
    .expandable-content {
        max-height: 140px;
        overflow: hidden;
        position: relative;
        transition: max-height 0.4s ease-in-out;
    }

    .expandable-content::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50px;
        background: linear-gradient(to bottom, transparent, rgba(17, 17, 19, 0.95));
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .expandable-content.expanded {
        max-height: 2000px;
    }

    .expandable-content.expanded::after {
        opacity: 0;
    }

    .expand-btn {
        display: block;
        margin-top: 0.75rem;
        background: none;
        border: none;
        color: var(--accent-light);
        font-weight: 550;
        cursor: pointer;
        font-size: 0.85rem;
        padding: 4px 0;
        transition: opacity var(--transition-fast);
    }

    .expand-btn:hover {
        opacity: 0.8;
    }

    /* Tags mobile */
    .modern-tag {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2.2rem;
    }

    .nav-links {
        width: 100%;
        max-width: none;
    }

    .feature-card {
        padding: 1.75rem 1.5rem;
    }

    /* Experience — single column, horizontal rows */
    .experience-grid {
        grid-template-columns: 1fr;
        grid-template-rows: unset;
        gap: 0;
    }

    .exp-station {
        display: grid;
        grid-template-columns: 70px 1fr;
        grid-template-rows: auto;
        grid-row: unset;
        text-align: left;
        gap: 0 1rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--glass-border);
        border-radius: 0;
        min-height: auto;
        justify-items: start;
    }

    .exp-station .exp-logo {
        grid-row: 1 / -1;
        align-self: center;
    }

    .exp-station .exp-type,
    .exp-station .exp-role,
    .exp-station .exp-period,
    .exp-station .exp-refs {
        grid-column: 2;
    }

    .exp-station:last-child {
        border-bottom: none;
    }

    .exp-logo {
        width: 70px;
        min-width: 70px;
        height: 32px !important;
        margin-bottom: 0;
        overflow: hidden;
    }

    .exp-logo img {
        max-width: 70px !important;
        max-height: 32px !important;
    }

    .exp-station:nth-child(1) .exp-logo img { height: 12px !important; }
    .exp-station:nth-child(2) .exp-logo img { height: 11px !important; transform: none !important; }
    .exp-station:nth-child(3) .exp-logo img { height: 22px !important; }
    .exp-station:nth-child(4) .exp-logo img { height: 28px !important; }

    /* Testimonials — keep full width on small screens */
    .testimonial-card {
        min-width: 100%;
        max-width: 100%;
    }

    /* Stack — 3 col tighter */
    .tools-grid {
        gap: 1rem 0.5rem;
    }

    .tool-item img {
        width: 40px;
        height: 40px;
        padding: 6px;
    }

    .tool-item span {
        font-size: 0.65rem;
    }

    /* Approach process text */
    .process-node .process-text h3 {
        font-size: 0.9rem;
        white-space: normal;
    }

    .process-node .process-text p {
        font-size: 0.8rem;
        max-width: none;
    }
}

/* ========================
   ACCESSIBILITY: REDUCED MOTION
   ======================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in,
    .slide-up {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}