:root {
    --radius: 12px;
    --radius-lg: 18px;
    --max-width: 1200px;
    --brand: #e63946;
    --brand-strong: #c41e2c;
    --brand-soft: #ff6b6b;
    --transition: 320ms cubic-bezier(.2, .7, .2, 1);
}

[data-theme="dark"] {
    --bg: #08080b;
    --bg-elev: #0f0f14;
    --surface: #14141b;
    --surface-2: #1c1c25;
    --ink: #f5f5f8;
    --ink-soft: #b8b8c6;
    --ink-mute: #7c7c8c;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.18);
    --shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    --glow: rgba(230, 57, 70, 0.28);
    color-scheme: dark;
}

[data-theme="light"] {
    --bg: #fbfbfd;
    --bg-elev: #ffffff;
    --surface: #ffffff;
    --surface-2: #f3f3f6;
    --ink: #0c0c12;
    --ink-soft: #494957;
    --ink-mute: #7a7a8a;
    --line: rgba(12, 12, 18, 0.1);
    --line-strong: rgba(12, 12, 18, 0.2);
    --shadow: 0 24px 60px rgba(12, 12, 18, 0.1);
    --glow: rgba(230, 57, 70, 0.16);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    transition: background var(--transition), color var(--transition);
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
}

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

@view-transition {
    navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 360ms;
    animation-timing-function: cubic-bezier(.2, .7, .2, 1);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
    min-height: 72px;
    padding: 14px clamp(18px, 4vw, 52px);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), background var(--transition);
}

.site-header.is-scrolled {
    border-color: var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.2vw, 28px);
    flex: 1;
    justify-content: center;
}

.site-nav a {
    position: relative;
    color: var(--ink-soft);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition);
}

.site-nav a:hover {
    color: var(--ink);
}

.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
    transform: scaleX(1);
}

.header-tools {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.theme-toggle:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.theme-toggle .icon {
    width: 18px;
    height: 18px;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.language-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 32px;
    border-radius: 8px;
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 900;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.language-switch a:hover {
    color: var(--ink);
}

.language-switch a.is-current {
    color: #ffffff;
    background: var(--brand);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

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

.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
    gap: clamp(32px, 6vw, 78px);
    align-items: center;
    max-width: var(--max-width);
    min-height: calc(100vh - 72px);
    margin: 0 auto;
    padding: clamp(54px, 8vw, 92px) clamp(18px, 4vw, 28px) clamp(34px, 6vw, 68px);
}

.eyebrow {
    margin: 0 0 13px;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.04;
    letter-spacing: 0;
}

h1 {
    max-width: 860px;
    font-size: clamp(2.8rem, 8vw, 6.7rem);
}

h1 .accent {
    color: var(--brand);
}

h2 {
    font-size: clamp(2rem, 4vw, 4.2rem);
}

h3 {
    font-size: clamp(1.2rem, 1.7vw, 1.6rem);
}

.hero-intro {
    max-width: 720px;
    margin: 28px 0 0;
    color: var(--ink-soft);
    font-size: clamp(1.02rem, 1.6vw, 1.28rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 14px 22px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--ink);
    background: transparent;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.button.primary {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
}

.button.primary:hover {
    background: var(--brand-strong);
    border-color: var(--brand-strong);
}

.button.secondary:hover {
    border-color: var(--ink);
}

.hero-visual {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 22% 18%, var(--glow), transparent 45%),
        radial-gradient(circle at 78% 82%, rgba(230, 57, 70, 0.18), transparent 50%),
        var(--bg-elev);
    box-shadow: var(--shadow);
}

.hero-visual::before {
    position: absolute;
    inset: 0;
    content: "";
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
    pointer-events: none;
}

.signal-grid {
    position: absolute;
    inset: 36px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.signal-grid span {
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    animation: signalPulse 4.5s ease-in-out infinite;
    animation-delay: calc(var(--delay, 0) * 120ms);
}

.signal-grid span:nth-child(3n) {
    --delay: 2;
    background: color-mix(in srgb, var(--brand) 24%, transparent);
}

.signal-grid span:nth-child(4n) {
    --delay: 4;
    background: color-mix(in srgb, var(--brand) 12%, var(--surface));
}

.signal-grid span:nth-child(5n) {
    --delay: 6;
    background: color-mix(in srgb, var(--brand) 34%, transparent);
}

.model-panel {
    position: absolute;
    right: 30px;
    bottom: 30px;
    left: 30px;
    padding: clamp(18px, 4vw, 28px);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: var(--radius);
    color: #ffffff;
    background: rgba(8, 8, 11, 0.78);
    backdrop-filter: blur(18px);
}

.panel-topline,
.model-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-topline span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    font-weight: 800;
}

.panel-topline strong {
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--brand);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.model-flow {
    margin-top: 26px;
}

.model-flow span {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 800;
}

.bar-chart {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    height: 112px;
    gap: 12px;
    margin-top: 26px;
}

.bar-chart i {
    display: block;
    height: var(--size);
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--brand-soft), var(--brand-strong));
    animation: barRise 4s ease-in-out infinite;
}

.impact-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(18px, 4vw, 28px) clamp(48px, 7vw, 90px);
}

.impact-strip article {
    min-height: 152px;
    padding: 24px;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

.impact-strip article:first-child {
    border-left: 1px solid var(--line);
}

.impact-strip strong {
    display: block;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1;
    color: var(--brand);
}

.impact-strip span {
    display: block;
    max-width: 210px;
    margin-top: 12px;
    color: var(--ink-soft);
    font-weight: 700;
}

.content-section,
.about-section,
.contact-section,
.tech-band {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(68px, 9vw, 120px) clamp(18px, 4vw, 28px);
}

.muted-band {
    max-width: none;
    padding-right: max(clamp(18px, 4vw, 28px), calc((100vw - var(--max-width)) / 2 + 28px));
    padding-left: max(clamp(18px, 4vw, 28px), calc((100vw - var(--max-width)) / 2 + 28px));
    background: var(--surface-2);
}

.section-heading {
    display: block;
    max-width: 940px;
    margin-bottom: clamp(32px, 5vw, 54px);
}

.section-heading.compact {
    max-width: 760px;
}

.section-heading p:not(.eyebrow) {
    max-width: 720px;
    margin: 16px 0 0;
    color: var(--ink-soft);
    font-size: 1.08rem;
}

.section-hint {
    margin: 14px 0 0;
    color: var(--ink-mute);
    font-size: 0.92rem;
}

/* Expertise */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.service-card {
    min-height: 280px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.18);
}

.card-index,
.work-type {
    display: block;
    margin-bottom: 22px;
    color: var(--brand);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-card p {
    color: var(--ink-soft);
}

/* Work cards — equal size, hover expand */
.work-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: stretch;
}

.work-card {
    flex: 1 1 230px;
    min-height: 480px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition:
        flex-basis 620ms cubic-bezier(.2, .7, .2, 1),
        flex-grow 620ms cubic-bezier(.2, .7, .2, 1),
        min-width 620ms cubic-bezier(.2, .7, .2, 1),
        padding var(--transition),
        box-shadow var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.work-card-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.work-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 0;
    padding: 0;
    background: transparent;
    border: 0;
    filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.2));
}

.work-tagline {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
}

.work-card-extra {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.work-card-extra p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.55;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-tags li {
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 800;
}

.work-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
}

.work-link:hover {
    text-decoration: underline;
}

.work-note {
    margin: 0;
    padding: 10px 12px;
    border: 1px dashed rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.85rem;
    font-style: italic;
}

/* Themed cards follow the dominant colors of their logos. */
.work-card--mecaniq {
    border-color: rgba(115, 96, 255, 0.5);
    background:
        radial-gradient(circle at 14% 10%, rgba(123, 96, 255, 0.42), transparent 40%),
        radial-gradient(circle at 88% 80%, rgba(24, 198, 232, 0.34), transparent 44%),
        linear-gradient(150deg, #070718 0%, #10114f 52%, #061d2b 100%);
}

.work-card--ironmove {
    border-color: rgba(255, 91, 167, 0.48);
    background:
        radial-gradient(circle at 16% 18%, rgba(107, 82, 255, 0.5), transparent 42%),
        radial-gradient(circle at 78% 16%, rgba(53, 179, 255, 0.28), transparent 34%),
        radial-gradient(circle at 84% 82%, rgba(255, 128, 72, 0.36), transparent 44%),
        linear-gradient(150deg, #0a0a1b 0%, #15155a 55%, #2a0e32 100%);
}

.work-card--acat {
    border-color: rgba(229, 33, 49, 0.56);
    background:
        radial-gradient(circle at 18% 20%, rgba(229, 33, 49, 0.48), transparent 38%),
        radial-gradient(circle at 82% 82%, rgba(9, 23, 64, 0.52), transparent 40%),
        radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.1), transparent 18%),
        linear-gradient(160deg, #07101d 0%, #5d0a12 44%, #b31118 100%);
}

.work-card--kaggle {
    border-color: rgba(32, 189, 255, 0.52);
    background:
        radial-gradient(circle at 20% 16%, rgba(32, 189, 255, 0.34), transparent 42%),
        radial-gradient(circle at 82% 82%, rgba(0, 87, 122, 0.34), transparent 42%),
        linear-gradient(150deg, #06131c 0%, #082638 58%, #041017 100%);
}

.work-card--mecaniq .work-type {
    color: #b6adff;
}

.work-card--ironmove .work-type {
    color: #ff9cc0;
}

.work-card--acat .work-type {
    color: #ff9aa3;
}

.work-card--kaggle .work-type {
    color: #7ddcff;
}

/* Hover expand on hover-capable, wide screens */
@media (hover: hover) and (min-width: 720px) {
    .work-grid {
        --work-gap: 18px;
        --collapsed-card-width: clamp(58px, 8vw, 92px);
        --work-card-height: 586px;
        flex-wrap: nowrap;
        gap: var(--work-gap);
    }

    .work-card {
        flex: 0 0 auto;
        width: calc((100% - (3 * var(--work-gap))) / 4);
        min-width: 0;
        height: var(--work-card-height);
        min-height: 0;
        transition:
            width 1000ms cubic-bezier(.16, .78, .18, 1),
            padding 800ms cubic-bezier(.16, .78, .18, 1),
            box-shadow 800ms ease,
            border-color 800ms ease,
            transform 800ms ease;
        will-change: width, transform;
    }

    .work-card-header,
    .work-card .work-type,
    .work-card h3,
    .work-card .work-tagline,
    .work-logo {
        transition:
            opacity 600ms ease,
            transform 750ms cubic-bezier(.16, .78, .18, 1),
            width 750ms cubic-bezier(.16, .78, .18, 1),
            height 750ms cubic-bezier(.16, .78, .18, 1),
            visibility 0s linear 600ms;
    }

    .work-card-extra {
        display: none;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        pointer-events: none;
        transform: translateY(10px);
        transition:
            max-height 750ms cubic-bezier(.16, .78, .18, 1),
            opacity 850ms ease,
            transform 750ms cubic-bezier(.16, .78, .18, 1),
            visibility 0s linear 750ms;
    }

    .work-grid.is-card-active .work-card {
        width: var(--collapsed-card-width);
        padding: 26px 10px;
    }

    .work-grid.is-card-active .work-card:not(.is-active) {
        align-items: center;
        justify-content: flex-start;
        cursor: pointer;
        transition:
            width 1100ms cubic-bezier(.16, .78, .18, 1),
            box-shadow 800ms ease,
            border-color 800ms ease,
            transform 800ms ease;
    }

    .work-grid.is-card-active .work-card:not(.is-active) .work-logo {
        width: clamp(36px, 5vw, 52px);
        height: clamp(36px, 5vw, 52px);
        transition: none;
    }

    .work-grid.is-card-active .work-card:not(.is-active) .work-card-header {
        align-items: center;
        justify-content: flex-start;
        flex: 0 0 auto;
        min-height: clamp(36px, 5vw, 52px);
    }

    .work-grid.is-card-active .work-card:not(.is-active) .work-type,
    .work-grid.is-card-active .work-card:not(.is-active) h3,
    .work-grid.is-card-active .work-card:not(.is-active) .work-tagline,
    .work-grid.is-card-active .work-card:not(.is-active) .work-card-extra {
        display: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(8px);
    }

    .work-grid.is-card-active .work-card:not(.is-active) .work-card-extra {
        max-height: 0;
        transition: none;
    }

    .work-grid.is-card-active .work-card.is-active {
        width: calc(100% - (3 * var(--collapsed-card-width)) - (3 * var(--work-gap)));
        padding: 32px;
        box-shadow: var(--shadow);
        transform: translateY(-4px);
    }

    .work-grid.is-card-active .work-card.is-active:not(.is-details-visible) .work-type,
    .work-grid.is-card-active .work-card.is-active:not(.is-details-visible) h3,
    .work-grid.is-card-active .work-card.is-active:not(.is-details-visible) .work-tagline {
        display: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .work-grid.is-card-active .work-card.is-active:not(.is-details-visible) .work-card-extra {
        display: none;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        transition: none;
    }

    .work-grid.is-card-active .work-card.is-active.is-details-visible .work-card-extra {
        display: flex;
        flex: 1 1 auto;
        max-height: 620px;
        opacity: 1;
        overflow-y: auto;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition:
            max-height 900ms cubic-bezier(.16, .78, .18, 1),
            opacity 850ms ease,
            transform 1000ms cubic-bezier(.16, .78, .18, 1),
            visibility 0s linear 0s;
    }
}

/* About */
.about-section {
    display: grid;
    grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
    gap: clamp(32px, 7vw, 86px);
    align-items: center;
}

.portrait-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.portrait-panel img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.portrait-panel p {
    margin: 0;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 700;
}

.about-copy>p:not(.eyebrow) {
    color: var(--ink-soft);
    font-size: 1.08rem;
}

.profile-table {
    margin: 30px 0 0;
    border-top: 1px solid var(--line);
}

.profile-table div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.profile-table dt {
    color: var(--ink);
    font-weight: 900;
}

.profile-table dd {
    margin: 0;
    color: var(--ink-soft);
}

.profile-table a {
    color: var(--brand);
    font-weight: 800;
}

/* Timeline */
.timeline {
    display: grid;
    gap: 18px;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: clamp(18px, 4vw, 52px);
    padding: 28px 0 28px 28px;
    border-top: 1px solid var(--line);
}

.timeline-item::before {
    position: absolute;
    top: 34px;
    left: 0;
    width: 10px;
    height: 10px;
    border: 4px solid var(--bg);
    border-radius: 50%;
    content: "";
    background: var(--brand);
    box-shadow: 0 0 0 1px var(--line);
}

.timeline-item span {
    color: var(--brand);
    font-weight: 900;
}

.timeline-item p,
.timeline-item li {
    color: var(--ink-soft);
}

.timeline-item strong {
    color: var(--ink);
    font-weight: 900;
}

.timeline-item ul {
    margin: 12px 0 0;
    padding-left: 19px;
}

/* Tech band */
.tech-band {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
    padding-top: clamp(46px, 6vw, 76px);
    padding-bottom: clamp(46px, 6vw, 76px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.tech-band h2 {
    max-width: 920px;
    font-size: 2.45rem;
    line-height: 1.08;
}

.tech-hive {
    --hex-size: clamp(68px, 8vw, 112px);
    --hex-gap: clamp(10px, 1.7vw, 20px);
    position: relative;
    display: grid;
    gap: 0;
    margin-top: 4px;
    overflow: hidden;
    padding: 10px 0 18px;
    mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.tech-marquee {
    overflow: hidden;
    padding: 8px 0;
}

.tech-marquee--offset {
    margin-top: calc(var(--hex-size) * -0.22);
    padding-left: calc((var(--hex-size) + var(--hex-gap)) / 2);
}

.tech-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: hiveDrift 34s linear infinite;
}

.tech-marquee--offset .tech-track {
    animation-duration: 30s;
    animation-delay: -12s;
}

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

.tech-list {
    display: flex;
    flex: 0 0 auto;
    gap: var(--hex-gap);
    margin: 0;
    padding: 0 var(--hex-gap) 0 0;
    list-style: none;
}

.tech-list li {
    display: grid;
    place-items: center;
    flex: 0 0 var(--hex-size);
    width: var(--hex-size);
    aspect-ratio: 1;
    padding: clamp(14px, 1.8vw, 22px);
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, color-mix(in srgb, var(--brand) 74%, #ffffff 10%), rgba(255, 255, 255, 0.2)) border-box;
    border: 1px solid transparent;
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

.tech-list img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.14));
}

/* Contact */
.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 0.58fr) minmax(300px, 0.42fr);
    gap: clamp(28px, 6vw, 76px);
    align-items: start;
}

.contact-copy p:not(.eyebrow) {
    max-width: 620px;
    color: var(--ink-soft);
    font-size: 1.08rem;
}

.contact-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.contact-line {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    color: var(--brand);
    font-weight: 900;
    text-decoration: none;
}

.contact-line::after {
    content: "↗";
}

.legal-note {
    margin: 24px 0 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 26px clamp(18px, 4vw, 52px);
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    font-weight: 900;
    text-decoration: none;
    color: var(--brand);
}

.section-observe {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 650ms ease, transform 650ms ease;
}

.section-observe.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes signalPulse {

    0%,
    100% {
        opacity: 0.54;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

@keyframes barRise {

    0%,
    100% {
        transform: scaleY(0.82);
        transform-origin: bottom;
    }

    50% {
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

@keyframes hiveDrift {
    from {
        transform: translateX(0);
    }

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

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .section-observe {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 980px) {

    .hero,
    .section-heading,
    .about-section,
    .tech-band,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-visual {
        min-height: 440px;
    }

    .impact-strip,
    .expertise-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .impact-strip article:nth-child(3) {
        border-left: 1px solid var(--line);
    }

    .work-card {
        flex: 1 1 280px;
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .site-header {
        min-height: 66px;
        gap: 10px;
    }

    .brand {
        margin-right: auto;
    }

    .header-tools {
        order: 2;
    }

    .nav-toggle {
        display: block;
        order: 3;
    }

    .site-nav {
        position: fixed;
        top: 66px;
        right: 14px;
        left: 14px;
        display: grid;
        gap: 0;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--surface);
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 180ms ease, transform 180ms ease;
        z-index: 25;
    }

    .nav-open .site-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-nav a {
        padding: 14px 12px;
        border-radius: var(--radius);
    }

    .site-nav a:hover {
        background: var(--surface-2);
    }

    .site-nav a::after {
        display: none;
    }

    .hero {
        padding-top: 44px;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .hero-visual {
        min-height: 380px;
    }

    .signal-grid {
        inset: 22px;
        grid-template-columns: repeat(4, 1fr);
    }

    .signal-grid span {
        min-height: 44px;
    }

    .model-panel {
        right: 16px;
        bottom: 16px;
        left: 16px;
    }

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

    .impact-strip,
    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .impact-strip article,
    .impact-strip article:first-child,
    .impact-strip article:nth-child(3) {
        border-right: 1px solid var(--line);
        border-left: 1px solid var(--line);
    }

    .work-card {
        flex: 1 1 100%;
    }

    .profile-table div,
    .timeline-item {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        gap: 8px;
        padding-left: 22px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    h1 {
        font-size: 2.42rem;
    }

    .service-card,
    .work-card,
    .contact-card {
        padding: 20px;
    }
}

@media (hover: hover) and (min-width: 720px) {
    .work-grid {
        flex-wrap: nowrap;
    }

    .work-card {
        flex: 0 0 auto;
        min-height: 540px;
    }
}

/* Compact technical environment layout */
@media (max-width: 760px) {
    .tech-band {
        gap: 18px;
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .tech-band h2 {
        max-width: 100%;
        font-size: 2rem;
        line-height: 1.08;
    }

    .tech-hive {
        --hex-size: clamp(58px, 16vw, 86px);
        --hex-gap: 10px;
    }
}

@media (max-width: 420px) {
    .tech-band h2 {
        font-size: 1.78rem;
    }

    .tech-hive {
        --hex-size: clamp(52px, 20vw, 72px);
        --hex-gap: 8px;
    }
}