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

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

:root {
    --ink-900: #111320;
    --ink-700: #23293e;
    --ink-500: #505a72;
    --surface-100: #f4f0e6;
    --surface-200: #ede6d9;
    --paper: #fffdf9;
    --signal-500: #db5a2f;
    --signal-700: #b0441f;
    --teal-500: #1f8f95;
    --teal-700: #15656a;
    --line: #d6ccbd;
    --linkedin-600: #0a66c2;
    --linkedin-700: #084d95;
    --shadow-sm: 0 4px 12px rgba(17, 19, 32, 0.08);
    --shadow-md: 0 12px 28px rgba(17, 19, 32, 0.14);
    --shadow-lg: 0 20px 42px rgba(17, 19, 32, 0.2);
    --font-main: "Avenir Next", "Segoe UI Variable", "Trebuchet MS", sans-serif;
    --font-display: "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    font-size: 1.02rem;
    color: var(--ink-900);
    line-height: 1.7;
    background:
        radial-gradient(circle at 15% 15%, rgba(31, 143, 149, 0.1), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(219, 90, 47, 0.08), transparent 32%),
        var(--surface-100);
    min-height: 100vh;
}

h1,
h2,
h3 {
    line-height: 1.24;
}

p,
li {
    line-height: 1.72;
}

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

.container {
    width: min(1120px, 100% - 2.5rem);
    margin: 0 auto;
}

.navbar {
    background: rgba(255, 253, 249, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.nav-brand a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: inherit;
}

.brand-mark {
    width: clamp(44px, 3.4vw, 54px);
    height: clamp(44px, 3.4vw, 54px);
    border-radius: 12px;
    display: block;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(17, 19, 32, 0.2);
}

.nav-brand h1 {
    font-family: var(--font-display);
    color: var(--ink-900);
    font-size: 1.95rem;
    letter-spacing: 0.04em;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--ink-700);
    font-weight: 600;
    position: relative;
    transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--signal-700);
}

.nav-menu a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 2px;
    background: var(--signal-700);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: var(--ink-900);
    transition: 0.2s ease;
}

.hero {
    padding: 6.5rem 0 5rem;
}

.hero-home {
    position: relative;
}

.hero-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(219, 90, 47, 0.34), transparent 24%),
        linear-gradient(130deg, rgba(17, 19, 32, 0.96), rgba(31, 143, 149, 0.84));
    z-index: -2;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.95fr);
    gap: 1.3rem;
    align-items: stretch;
}

.hero-content {
    min-width: 0;
    color: #fdf6eb;
    padding: clamp(1rem, 2.4vw, 1.8rem);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    background: rgba(17, 19, 32, 0.3);
}

.hero-kicker {
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(253, 246, 235, 0.5);
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 4.5vw, 4.2rem);
    line-height: 1.18;
    margin-bottom: 1.15rem;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    max-width: 760px;
    color: rgba(253, 246, 235, 0.92);
    margin-bottom: 2rem;
}

.hero-summary {
    max-width: 720px;
    color: rgba(253, 246, 235, 0.82);
    margin-bottom: 1.8rem;
    font-size: 1.02rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: stretch;
}

.hero-panel {
    min-width: 0;
    padding: clamp(1rem, 2.2vw, 1.5rem);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(253, 246, 235, 0.12);
    color: #fdf6eb;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.hero-panel-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(253, 246, 235, 0.72);
    margin-bottom: 1rem;
}

.hero-stats {
    display: grid;
    gap: 0.85rem;
}

.hero-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 1rem;
}

.hero-links a {
    color: #fdf6eb;
    text-decoration: none;
    opacity: 0.9;
}

.hero-links a:hover {
    text-decoration: underline;
    opacity: 1;
}

.icon-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-stat {
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: rgba(17, 19, 32, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 0.18rem;
}

.hero-stat-label {
    color: rgba(253, 246, 235, 0.78);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.35rem;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    max-width: 100%;
    white-space: normal;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn svg,
.icon-link svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(120deg, var(--signal-500), var(--signal-700));
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: #fff7e8;
    border-color: #fff;
    color: var(--ink-900);
    position: relative;
    z-index: 1;
}

.btn-secondary:hover {
    background: #ffffff;
}

.btn-linkedin {
    background: linear-gradient(120deg, var(--linkedin-600), var(--linkedin-700));
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-linkedin:hover {
    box-shadow: var(--shadow-md);
}

.btn-clickhouse {
    background: linear-gradient(120deg, #eab308, #facc15);
    color: #0f0f1a;
    box-shadow: var(--shadow-sm);
}

.btn-clickhouse:hover {
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    border-color: var(--teal-700);
    color: var(--teal-700);
}

.btn-ghost:hover {
    background: rgba(31, 143, 149, 0.1);
}

.hero-buttons .btn-ghost {
    border-color: rgba(253, 246, 235, 0.72);
    color: #fdf6eb;
    background: rgba(253, 246, 235, 0.06);
}

.hero-buttons .btn-ghost:hover {
    background: rgba(253, 246, 235, 0.14);
}

.section {
    padding: 4.8rem 0;
}

.section-alt {
    background: linear-gradient(180deg, var(--surface-200), rgba(237, 230, 217, 0.45));
    border-top: 1px solid rgba(17, 19, 32, 0.06);
    border-bottom: 1px solid rgba(17, 19, 32, 0.06);
}


.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.95rem, 4vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: 0.9rem;
    color: var(--ink-900);
    letter-spacing: 0.01em;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1.4rem;
}

.section-eyebrow {
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--teal-700);
    font-weight: 700;
}

.section-content {
    max-width: 820px;
    color: var(--ink-700);
    font-size: 1.05rem;
}

.section-content p + p {
    margin-top: 1rem;
}

.resume-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.resume-card,
.project-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.resume-card p,
.project-card p,
.service-card p,
.timeline-body p {
    color: var(--ink-700);
}

.resume-card-featured {
    background: linear-gradient(180deg, #fffdf9, #f5efe2);
}

.resume-card h3,
.project-card h3 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    margin-bottom: 0.5rem;
}

.resume-label,
.project-kicker {
    display: inline-block;
    margin-bottom: 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--signal-700);
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.capability-card {
    min-height: 100%;
}

.timeline {
    display: grid;
    gap: 1rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.6fr);
    gap: 1.4rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.timeline-meta {
    padding-right: 1rem;
    border-right: 1px solid rgba(17, 19, 32, 0.08);
}

.timeline-role,
.timeline-company,
.timeline-period {
    margin: 0;
}

.timeline-role {
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: var(--ink-900);
}

.timeline-company {
    color: var(--signal-700);
    font-weight: 700;
    margin-top: 0.2rem;
}

.timeline-period {
    color: var(--ink-500);
    margin-top: 0.35rem;
}

.timeline-body p + p {
    margin-top: 0.65rem;
}

.timeline-body p {
    max-width: 72ch;
}


.feature-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    min-width: 0;
    overflow: hidden;
}

.project-grid {
    align-items: stretch;
}

.project-card.feature-card {
    max-width: none;
    height: 100%;
}

.project-card-consulting {
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.18), transparent 32%),
        linear-gradient(180deg, #1a1a2e, #0f0f1a);
    color: #fff;
}

.project-card-consulting h3,
.project-card-consulting p {
    color: #fff;
}

.project-card-consulting .project-kicker {
    color: #facc15;
}

.project-card-consulting .project-highlights span {
    background: rgba(250, 204, 21, 0.12);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.22);
}

.project-card-inklet {
    background:
        radial-gradient(circle at top left, rgba(219, 90, 47, 0.14), transparent 30%),
        linear-gradient(180deg, #fffdf9, #f7efe8);
}

.inklet-logo {
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(162, 170, 255, 0.24);
}

.project-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.2rem 0 1.4rem;
}

.project-highlights span {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(31, 143, 149, 0.12);
    color: var(--teal-700);
    font-weight: 700;
    font-size: 0.92rem;
}

.feature-media {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
}

.feature-banner {
    display: block;
    width: 100%;
    height: auto;
}

.feature-tag {
    display: inline-block;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--teal-700);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 0.7rem;
    color: var(--ink-900);
}

.feature-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.feature-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex: 0 0 auto;
}

.feature-card p {
    color: var(--ink-700);
    font-size: 1.06rem;
}

.feature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: auto;
    padding-top: 1.4rem;
}

.project-card > .btn {
    margin-top: auto;
}

.hero-buttons .btn,
.feature-actions .btn {
    flex: 1 1 220px;
}

.services-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.service-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card h3 {
    margin-bottom: 0.55rem;
    font-size: 1.3rem;
    font-family: var(--font-display);
    color: var(--ink-900);
}

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

.service-card .enterprise-impact {
    margin-top: auto;
    padding-top: 1rem;
}

.service-card > .btn {
    margin-top: 1rem;
}

.contact-content {
    max-width: 740px;
}

.contact-content p {
    color: var(--ink-700);
    margin-bottom: 1.25rem;
}

.contact-info {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    overflow: hidden;
}

.contact-item {
    margin: 0.45rem 0;
    color: var(--ink-700);
}

.contact-info .btn {
    margin-top: 0.4rem;
}

.contact-item a {
    color: var(--signal-700);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item a.btn,
.contact-item a.btn:hover {
    text-decoration: none;
}

.contact-item a.btn-primary {
    color: #fff;
}

.contact-hero {
    background: linear-gradient(135deg, var(--ink-900), var(--teal-700));
    color: #fff;
    padding: 4.2rem 0;
}

.enterprise-impact {
    display: inline-block;
    margin: 0.8rem 0 1rem;
    padding: 0.5rem 0.75rem;
    background: rgba(31, 143, 149, 0.12);
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--teal-700);
}

.enterprise-impact::before {
    content: "✓";
    margin-right: 0.5rem;
}

.contact-hero-content {
    max-width: 920px;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 0.55rem;
}

.contact-hero-subtitle {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
}

.contact-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.meta-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.meta-label {
    display: block;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
}

.meta-value,
.meta-item a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
    align-items: start;
}

.contact-panel,
.contact-form-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    overflow: hidden;
}

.contact-panel .section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

.contact-highlights {
    margin-top: 1rem;
    margin-left: 1.2rem;
    color: var(--ink-700);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.9rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    color: var(--ink-900);
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    font: inherit;
    color: var(--ink-900);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(31, 143, 149, 0.16);
}

.checkbox-group {
    background: var(--surface-200);
    border-radius: 10px;
    border: 1px solid var(--line);
    padding: 0.8rem;
}

.checkbox-label {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    color: var(--ink-700);
}

.checkbox-label input {
    margin-top: 0.2rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
}

.form-helper {
    color: var(--ink-500);
    font-size: 0.95rem;
}

.form-helper a {
    color: var(--signal-700);
    text-decoration: none;
}

.form-helper a:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

.privacy-section {
    padding-top: 3.5rem;
}

.last-updated {
    margin-top: 0.3rem;
    margin-bottom: 1.75rem;
    color: var(--ink-500);
    font-style: italic;
}

.privacy-content {
    max-width: 900px;
}

.privacy-content h2 {
    font-family: var(--font-display);
    margin-top: 1.7rem;
    margin-bottom: 0.55rem;
    color: var(--ink-900);
    font-size: 1.55rem;
}

.privacy-content p,
.privacy-content li {
    color: var(--ink-700);
}

.privacy-content ul {
    margin: 0.5rem 0 0.9rem 1.35rem;
}

footer {
    margin-top: 3.5rem;
    background: var(--ink-900);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.6rem 0;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.88;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 860px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 1rem 1.25rem;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a.active::after {
        display: none;
    }

    .hero {
        padding: 5.4rem 0 4.2rem;
    }

    .hero-layout,
    .resume-grid,
    .timeline-item {
        grid-template-columns: 1fr;
    }

    .timeline-meta {
        padding-right: 0;
        padding-bottom: 0.9rem;
        border-right: none;
        border-bottom: 1px solid rgba(17, 19, 32, 0.08);
    }

    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 540px) {
    .container {
        width: min(1120px, 100% - 1.4rem);
    }

    .form-actions,
    .footer-links {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: auto;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }

    .hero-buttons,
    .feature-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-buttons .btn,
    .feature-actions .btn {
        flex: 0 0 auto;
        width: auto;
    }

    .feature-head {
        align-items: flex-start;
    }

    .feature-logo {
        width: 38px;
        height: 38px;
    }

    .contact-hero-meta {
        flex-direction: column;
    }
}
