/* ── Premium Minimal Design Tokens ── */
:root {
    /* Color */
    --bg: #fafaf8;
    --surface: #f3f2ef;
    --surface-2: #eeece8;
    --text: #131313;
    --muted: #5e5e5e;
    --muted-2: #7b7b7b;
    --accent: #a38b78;
    --border: #e3e0db;
    --border-2: #d9d5cf;

    /* Back-compat for existing rules */
    --border-thin: var(--border);
    --radius: var(--r-sm);
    --font: var(--font-serif);

    /* Typography */
    --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    --font-serif: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
    --font-cursive: "Pinyon Script", cursive;
    --text-size: 16px;
    --lh-body: 1.6;
    --lh-head: 1.2;

    /* Spacing (8px grid) */
    --s0: 0px;
    --s1: 4px;
    --s2: 8px;
    --s3: 12px;
    --s4: 16px;
    --s5: 24px;
    --s6: 32px;
    --s7: 40px;
    --s8: 48px;
    --s9: 64px;

    /* Radius & shadows */
    --r-sm: 6px;
    --r-md: 10px;
    --r-pill: 999px;
    --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-2: 0 10px 28px rgba(0, 0, 0, 0.06);

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t-fast: 160ms;
    --t: 220ms;

    /* Layout */
    --nav-h: 72px;
    --container: 1120px;
    --container-pad: clamp(16px, 3.5vw, 32px);
}

/* Dark mode */
html.dark,
body.dark {
    --bg: #101011;
    --surface: #151516;
    --surface-2: #1c1c1f;
    --text: #f2f0eb;
    --muted: #b2afa9;
    --muted-2: #9a978f;
    --accent: #c4a88c;
    --border: #242427;
    --border-2: #2f2f35;
    --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.25);
    --shadow-2: 0 16px 46px rgba(0, 0, 0, 0.45);
}

/* ── Base / Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-h) + 24px);
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: var(--lh-body);
    overflow-x: hidden;
    font-weight: 400;
    font-size: var(--text-size);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

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

a {
    color: inherit;
    text-decoration: none
}

ul,
ol {
    list-style: none
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
    color: inherit
}

address {
    font-style: normal
}

::selection {
    background: color-mix(in oklab, var(--accent) 65%, #0000);
    color: var(--text)
}

:focus-visible {
    outline: 2px solid color-mix(in oklab, var(--accent) 65%, #0000);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important
    }

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

/* Container */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--container-pad)
}

/* ── Navigation ── */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: color-mix(in oklab, var(--bg) 86%, transparent);
    border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(1.25) blur(10px);
    transition: box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}

#site-header.scrolled {
    box-shadow: var(--shadow-1);
    background: color-mix(in oklab, var(--bg) 92%, transparent)
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--container-pad)
}

.nav-logo {
    font-family: var(--font-cursive);
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: 0
}

.nav-links {
    display: flex;
    gap: clamp(16px, 2vw, 32px);
    font-size: 0.9rem;
    font-weight: 600
}

.nav-link {
    color: var(--muted);
    transition: color var(--t-fast) var(--ease)
}

.nav-link:hover {
    color: var(--text)
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--s2)
}

.icon-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-pill);
    color: var(--muted);
    border: 1px solid transparent;
    transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.icon-btn:hover {
    color: var(--text);
    background: color-mix(in oklab, var(--text) 6%, transparent);
    border-color: color-mix(in oklab, var(--border) 60%, transparent);
    transform: translateY(-1px)
}

#icon-moon {
    display: none
}

body.dark #icon-sun {
    display: none
}

body.dark #icon-moon {
    display: block
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 22px
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    opacity: 0.9
}

@media(max-width:767px) {
    .nav-links {
        display: none
    }

    .hamburger {
        display: flex
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: 0.01em
}

.btn-text {
    color: var(--muted);
    padding: 10px 12px;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    transition: color var(--t) var(--ease), background var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}

.btn-text:hover {
    color: var(--text);
    background: color-mix(in oklab, var(--text) 5%, transparent);
    border-color: color-mix(in oklab, var(--border) 55%, transparent);
    transform: translateY(-1px);
}

.btn-text:active {
    transform: translateY(0)
}

.btn-text i {
    opacity: 0.9
}

button.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.6;
    pointer-events: none
}

/* Mobile Drawer */
#mobile-menu {
    position: fixed;
    inset: 0;
    background: color-mix(in oklab, var(--bg) 92%, transparent);
    backdrop-filter: saturate(1.1) blur(14px);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--s7);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t) var(--ease)
}

#mobile-menu[hidden] {
    display: none
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
    display: flex
}

.close-btn {
    position: absolute;
    top: var(--s6);
    right: var(--s6);
    font-size: 1.6rem
}

.drawer-link {
    font-size: clamp(1.6rem, 6vw, 2.25rem);
    font-weight: 650;
    color: var(--muted)
}

.drawer-link:hover {
    color: var(--accent)
}

.drawer-cta {
    margin-top: 1rem
}

/* ── Hero ── */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + var(--s8)) 0 var(--s8);
    text-align: center
}

.hero-container {
    max-width: 760px;
    margin: 0 auto
}

.availability-badge {
    font-size: 0.78rem;
    font-weight: 750;
    color: var(--text);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--s6);
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    background: color-mix(in oklab, var(--surface) 60%, transparent);
}

.hero-heading {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 7vw, 4.7rem);
    font-weight: 600;
    line-height: var(--lh-head);
    letter-spacing: -0.01em;
    margin-bottom: var(--s4);
}

.hero-heading em {
    font-style: italic;
    font-weight: 500
}

.accent-text {
    color: var(--accent)
}

.hero-sub {
    font-size: 1.06rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto var(--s6);
    line-height: 1.7
}

.hero-actions {
    display: flex;
    gap: var(--s3);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--s7)
}

.kpi-cluster {
    display: flex;
    gap: clamp(24px, 6vw, 72px);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--s4)
}

.kpi {
    text-align: center
}

.kpi dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 0.25rem
}

.kpi-num {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 750;
    color: var(--accent);
    line-height: 1
}

/* Reveal animations initial state */
.hero-heading.reveal,
.hero-sub.reveal,
.hero-actions.reveal,
.kpi-cluster.reveal {
    opacity: 0;
    transform: translateY(6px)
}

.delay-1 {
    transition-delay: 0.1s
}

.delay-2 {
    transition-delay: 0.2s
}

.delay-3 {
    transition-delay: 0.3s
}

/* ── Sections ── */
.section {
    padding: clamp(48px, 8vw, 88px) 0;
    border-top: 1px solid var(--border)
}

.section-alt {
    background: linear-gradient(180deg, color-mix(in oklab, var(--surface) 96%, transparent), var(--surface))
}

.section-header {
    text-align: center;
    margin-bottom: var(--s7)
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 2.9rem);
    font-weight: 650;
    line-height: var(--lh-head);
    margin-bottom: var(--s2);
    letter-spacing: -0.01em;
}

.section-heading i {
    margin-right: 0.35rem;
    color: var(--accent)
}

.section-sub {
    color: var(--muted);
    font-size: 1rem;
    max-width: 62ch;
    margin: 0 auto
}

/* ── About ── */
.about-centered {
    max-width: 720px;
    margin: 0 auto;
    text-align: center
}

.about-copy p {
    color: var(--muted);
    margin-bottom: var(--s4);
    font-size: 1.04rem;
    line-height: 1.7
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2);
    margin-top: var(--s5)
}

.tag {
    font-size: 0.75rem;
    font-weight: 750;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    color: var(--muted);
    background: color-mix(in oklab, var(--bg) 70%, transparent);
    transition: border-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease), background var(--t) var(--ease);
}

.tag:hover {
    border-color: color-mix(in oklab, var(--accent) 55%, var(--border));
    color: var(--text);
    background: color-mix(in oklab, var(--accent) 10%, transparent);
    transform: translateY(-1px)
}

.tag-center {
    justify-content: center;
    margin-top: 2rem
}

/* ── Growing Timeline ── */
.h-timeline-container {
    position: relative;
    margin-top: 2rem;
    padding: 3rem 0;
    --node-outer: 22px;
    /* 12px dot + 5px border on each side */
    --node-center: 11px;
    /* half of outer size */
}

.h-timeline-line {
    position: absolute;
    /* Align line to the centre of the dot */
    top: calc(3rem + var(--node-center));
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, var(--border) 0%, color-mix(in oklab, var(--accent) 80%, var(--border)) 100%);
    z-index: 1;
    transform: skewY(-3.5deg);
}

.h-timeline-items {
    display: flex;
    justify-content: space-around;
    position: relative;
    z-index: 2;
    gap: 2rem;
}

.h-timeline-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.4s var(--ease);
}

/* Upward trend offsets */
@media (min-width: 1200px) {
    .h-timeline-item:nth-child(1) {
        transform: translateY(23px);
    }

    .h-timeline-item:nth-child(3) {
        transform: translateY(-23px);
    }

    .h-timeline-item:nth-child(1):hover {
        transform: translateY(23px) scale(1.02);
    }

    .h-timeline-item:nth-child(2):hover {
        transform: scale(1.02);
    }

    .h-timeline-item:nth-child(3):hover {
        transform: translateY(-23px) scale(1.02);
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .h-timeline-item:nth-child(1) {
        transform: translateY(calc(2.03vw - 0.08rem));
    }

    .h-timeline-item:nth-child(3) {
        transform: translateY(calc(-2.03vw + 0.08rem));
    }

    .h-timeline-item:nth-child(1):hover {
        transform: translateY(calc(2.03vw - 0.08rem)) scale(1.02);
    }

    .h-timeline-item:nth-child(2):hover {
        transform: scale(1.02);
    }

    .h-timeline-item:nth-child(3):hover {
        transform: translateY(calc(-2.03vw + 0.08rem)) scale(1.02);
    }
}

.h-timeline-node {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 5px solid var(--bg);
    margin-bottom: 1rem;
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
    position: relative;
    box-shadow:
        0 0 0 0 rgba(163, 139, 120, 0.0),
        0 10px 24px rgba(0, 0, 0, 0.06);
    animation: timeline-node-pulse 2400ms ease-in-out infinite;
}

.h-timeline-item:nth-child(2) .h-timeline-node {
    animation-delay: 500ms;
}

.h-timeline-item:nth-child(3) .h-timeline-node {
    animation-delay: 1000ms;
}

.h-timeline-item:hover .h-timeline-node {
    transform: scale(1.18);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.h-timeline-content {
    max-width: 280px;
    background: color-mix(in oklab, var(--bg) 78%, var(--surface));
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    text-align: left;
    box-shadow: var(--shadow-1);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}

.h-timeline-item:hover .h-timeline-content {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
    border-color: color-mix(in oklab, var(--border) 60%, var(--accent))
}

.h-timeline-title {
    font-size: 1.1rem;
    font-weight: 750;
    margin-bottom: 0.2rem;
}

.h-timeline-org {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.role-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.1rem 0.6rem;
    border-radius: 99px;
    display: inline-block;
    margin-bottom: 0.3rem;
}

.role-badge.current {
    background: rgba(163, 139, 120, 0.1);
    color: var(--accent);
}

.role-badge.freelance {
    background: rgba(163, 139, 120, 0.08);
    color: #8f7a67;
}

.role-badge.past {
    background: rgba(163, 139, 120, 0.05);
    color: var(--muted);
}

.h-timeline-item:has(.current) .h-timeline-node {
    box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 14%, transparent);
}

@keyframes timeline-node-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(163, 139, 120, 0.00), 0 10px 24px rgba(0, 0, 0, 0.06);
        transform: scale(1);
    }

    45% {
        box-shadow: 0 0 0 10px rgba(163, 139, 120, 0.10), 0 14px 32px rgba(0, 0, 0, 0.08);
        transform: scale(1.04);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(163, 139, 120, 0.00), 0 10px 24px rgba(0, 0, 0, 0.06);
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .h-timeline-node {
        animation: none !important;
    }
}

@media (max-width: 767px) {
    .h-timeline-container {
        padding: 2rem 0;
    }

    .h-timeline-line {
        top: 0;
        bottom: 0;
        left: 6px;
        width: 1px;
        height: auto;
        transform: none;
    }

    .h-timeline-items {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 3rem;
    }

    .h-timeline-item {
        flex-direction: row;
        gap: 1.5rem;
        align-items: flex-start;
        transform: none !important;
    }

    .h-timeline-item:hover {
        transform: none !important;
    }

    .h-timeline-node {
        margin-bottom: 0;
        margin-top: 0.5rem;
        flex-shrink: 0;
    }
}

.task-list {
    display: grid;
    gap: 0.3rem;
    margin-top: 0.5rem
}

.task-list li {
    font-size: 0.92rem;
    color: var(--muted);
    padding-left: 1rem;
    position: relative
}

.task-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5
}

/* ── Skills ── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem
}

@media(max-width:1024px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem
    }
}

.skill-item {
    width: 100%;
    padding: 1rem;
    background: color-mix(in oklab, var(--surface) 86%, var(--bg));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-1);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease)
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2)
}

.skill-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600
}

.skill-pct {
    color: var(--muted);
    font-size: 0.8rem
}

.skill-bar {
    height: 2px;
    background: var(--border);
    border-radius: 1px;
    overflow: hidden
}

.skill-fill {
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width 1.2s var(--ease)
}

.skill-fill.animated {
    width: var(--pct)
}

/* ── Projects ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem 2rem
}

.project-item {
    display: flex;
    flex-direction: column;
    background: color-mix(in oklab, var(--bg) 78%, var(--surface));
    border: 1px solid var(--border);
    padding: var(--s6);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-1);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease)
}

.project-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
    border-color: color-mix(in oklab, var(--border) 55%, var(--accent))
}

.project-img-link {
    display: block;
    overflow: hidden;
    border-radius: calc(var(--r-md) - 2px);
    margin-bottom: var(--s5);
    background: var(--surface);
    border: 1px solid color-mix(in oklab, var(--border) 70%, transparent)
}

.project-img {
    width: 100%;
    height: auto;
    transition: transform var(--t) var(--ease), filter var(--t) var(--ease)
}

.project-img-link:hover .project-img {
    transform: scale(1.015)
}

.project-text {
    flex: 1
}

.project-title {
    font-size: 1.22rem;
    font-weight: 750;
    margin-bottom: var(--s2);
    letter-spacing: -0.01em
}

.project-desc {
    font-size: 0.98rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: var(--s3)
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 650;
    border-bottom: 1px solid transparent;
    transition: color var(--t) var(--ease), border-color var(--t) var(--ease)
}

.project-link:hover {
    color: var(--accent);
    border-bottom-color: color-mix(in oklab, var(--accent) 55%, transparent)
}

/* Proprietary */
.prop-section {
    margin-top: 2rem
}

.prop-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--muted)
}

.prop-header i {
    font-size: 1.4rem;
    color: var(--accent);
    flex-shrink: 0
}

.prop-header h3 {
    font-size: 1rem;
    font-weight: 750;
    color: var(--text)
}

.prop-header p {
    font-size: 0.85rem
}

.grayscale-wrap img {
    filter: grayscale(0.9);
    transition: filter 0.4s
}

.prop-item:hover .grayscale-wrap img {
    filter: grayscale(0)
}

.prop-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.22);
    opacity: 0;
    transition: opacity var(--t) var(--ease);
    color: #fff
}

.prop-item:hover .prop-overlay {
    opacity: 1
}

.prop-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    background: var(--accent);
    color: #fff
}

.prop-badge-accent {
    background: #6b5b4f
}

.nda-note {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem
}


/* ── Education & Services ── */
.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem
}

@media(max-width:767px) {
    .edu-grid {
        grid-template-columns: 1fr
    }
}

.edu-card {
    border-left: 2px solid color-mix(in oklab, var(--accent) 70%, var(--border));
    padding-left: 1.5rem
}

.edu-card h3 {
    font-size: 1.2rem;
    font-weight: 750
}

.edu-org {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem
}

.edu-card p {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.7
}

.services-list {
    display: grid;
    gap: 0.75rem
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border)
}

.service-icon {
    font-size: 1.4rem;
    color: var(--accent);
    flex-shrink: 0
}

.service-item h3 {
    font-size: 1rem;
    font-weight: 750
}

.service-item p {
    font-size: 0.8rem;
    color: var(--muted)
}

/* ── Contact ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start
}

@media(max-width:767px) {
    .contact-grid {
        grid-template-columns: 1fr
    }
}

.contact-copy p {
    color: var(--muted);
    margin-top: 0.5rem
}

.contact-info {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem
}

.contact-item i {
    color: var(--accent)
}

.social-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--r-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--bg) 75%, var(--surface));
    transition: color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease)
}

.social-btn:hover {
    color: var(--text);
    border-color: color-mix(in oklab, var(--border) 55%, var(--accent));
    transform: translateY(-1px);
    box-shadow: var(--shadow-1)
}

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

.form-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-field {
    position: relative
}

.form-field label {
    position: absolute;
    left: 12px;
    top: 12px;
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--muted-2);
    letter-spacing: 0.01em;
    pointer-events: none;
    transition: transform var(--t) var(--ease), color var(--t) var(--ease), opacity var(--t) var(--ease);
    transform-origin: left top;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 22px 12px 12px;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--bg) 72%, var(--surface));
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text);
    transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease), background var(--t) var(--ease);
    outline: none;
    border-radius: var(--r-sm);
}

.form-field textarea {
    resize: vertical;
    min-height: 132px
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--muted);
    opacity: 0;
    transition: opacity var(--t) var(--ease)
}

.form-field input:focus::placeholder,
.form-field textarea:focus::placeholder {
    opacity: 0.7
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: color-mix(in oklab, var(--accent) 60%, var(--border));
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 14%, transparent);
    background: color-mix(in oklab, var(--bg) 82%, var(--surface));
}

.form-field input:not(:placeholder-shown)+label,
.form-field textarea:not(:placeholder-shown)+label,
.form-field input:focus+label,
.form-field textarea:focus+label {
    transform: translateY(-9px) scale(0.92);
    color: color-mix(in oklab, var(--accent) 55%, var(--muted-2));
    opacity: 0.95;
}

.form-status {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    max-width: 450px;
    display: none;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

.form-status.success {
    display: block;
    color: #2e7d32;
}

.form-status.error {
    display: block;
    color: #d32f2f;
}

.form-status.sending {
    display: block;
    color: var(--muted-2);
}

body.dark .form-status.success {
    color: #81c784;
}

body.dark .form-status.error {
    color: #e57373;
}

.form-status.fade-out {
    opacity: 0;
    transform: translateY(-2px);
}

/* ── Footer ── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: var(--s7) 0
}

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

.footer-logo {
    font-family: 'Pinyon Script', cursive;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent)
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--muted)
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem
}

.footer-links a {
    color: var(--muted)
}

.footer-links a:hover {
    color: var(--accent)
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 4px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: var(--border-thin);
    border-radius: 2px
}

/* ── Fade-in shared ── */
.fade-section {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease)
}

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

/* ── Growth Trend ── */
.growth-container {
    max-width: 900px;
    margin: 0 auto
}

.growth-chart-box {
    height: 400px;
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-thin)
}

@media(max-width:767px) {
    .growth-chart-box {
        height: 300px;
        padding: 1rem
    }
}

/* ── Premium overrides (tail) ── */
/* Keep these at the end to safely override legacy selectors. */
::-webkit-scrollbar {
    width: 4px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px
}

.growth-chart-box {
    background: color-mix(in oklab, var(--surface) 86%, var(--bg));
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-1);
}