/* micgtech — creative studio system */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ink: #10120e;
    --ink-2: #171a14;
    --ink-3: #22261c;
    --paper: #f2f1ec;
    --paper-dim: #c8c6bc;
    --lime: #c6f74d;
    --lime-deep: #9fd428;
    --lime-soft: rgba(198, 247, 77, 0.14);
    --line: rgba(242, 241, 236, 0.12);
    --line-strong: rgba(242, 241, 236, 0.22);
    --error-color: #e85d4c;
    --success-color: #3dbf7a;
    --font-display: "Montserrat", system-ui, sans-serif;
    --font-body: "Poppins", system-ui, sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
    --nav-h: 72px;
    --container: 1180px;

    /* legacy aliases used across pages */
    --primary-color: var(--lime);
    --primary-color-dark: var(--lime-deep);
    --primary-color-light: var(--lime);
    --primary-dark: var(--lime-deep);
    --text-color: var(--paper-dim);
    --text-light: var(--paper);
    --bg-light: var(--ink-2);
    --border-color: var(--line);
    --transition: color 0.3s var(--ease-soft), background 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft), transform 0.35s var(--ease-out), opacity 0.35s var(--ease-soft);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--paper);
    background:
        radial-gradient(1200px 700px at 80% -10%, rgba(198, 247, 77, 0.08), transparent 55%),
        radial-gradient(900px 600px at 0% 40%, rgba(198, 247, 77, 0.05), transparent 50%),
        linear-gradient(165deg, #0c0e0a 0%, #12150f 45%, #0e110c 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

body.has-custom-cursor {
    cursor: none;
}

body.has-touch,
body.menu-open {
    cursor: auto;
}

body.has-touch .cursor-dot,
body.has-touch .cursor-ring,
body.menu-open .cursor-dot,
body.menu-open .cursor-ring {
    display: none !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

p {
    margin-bottom: 1rem;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

main {
    min-height: calc(100vh - 200px);
    position: relative;
}

/* ——— Scroll progress & cursor ——— */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 2000;
    background: linear-gradient(90deg, var(--lime-deep), var(--lime));
    transform-origin: left;
    pointer-events: none;
}

.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-dot.is-on,
.cursor-ring.is-on {
    opacity: 1;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--paper);
    margin: -3px 0 0 -3px;
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(242, 241, 236, 0.7);
    margin: -18px 0 0 -18px;
    transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), margin 0.25s var(--ease-out), border-color 0.25s ease, opacity 0.3s ease;
}

.cursor-ring.is-hover {
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-color: var(--lime);
}

/* ——— Nav ——— */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(12, 14, 10, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--nav-h);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lime);
    letter-spacing: -0.03em;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--paper-dim);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.35rem 0;
    position: relative;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--paper);
}

.nav-menu a.active::after,
.nav-menu a:hover::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--paper);
}

.menu-toggle .close-icon {
    display: none;
}

.menu-toggle[aria-expanded="true"] .hamburger-icon {
    display: none;
}

.menu-toggle[aria-expanded="true"] .close-icon {
    display: block;
}

@media (max-width: 767px) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: min(300px, 85vw);
        height: 100vh;
        background: linear-gradient(160deg, #10130e, #1a1f16);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        border-right: 1px solid var(--line);
        transition: left 0.35s var(--ease-out);
        z-index: 999;
        gap: 0;
    }

    .nav-menu.open {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        width: 100%;
        border-bottom: 1px solid var(--line);
        font-size: 1.1rem;
    }

    .nav-menu a::after {
        display: none;
    }
}

/* ——— Buttons ——— */
.cta-button,
.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--lime);
    border: 1px solid var(--lime);
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.35s var(--ease-out), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cta-button:hover,
.submit-button:hover {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--ink);
    transform: translateY(-2px);
}

.cta-button--ghost {
    background: transparent;
    color: var(--paper);
    border-color: var(--line-strong);
}

.cta-button--ghost:hover {
    border-color: var(--lime);
    color: var(--lime);
    background: transparent;
}

.text-link {
    color: var(--lime);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.text-link:hover {
    color: var(--paper);
}

/* ——— Reveals ——— */
[data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-reveal="left"] {
    transform: translateX(-40px);
}

[data-reveal="right"] {
    transform: translateX(40px);
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

.split-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    margin-right: 0.28em;
}

.split-word > span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.85s var(--ease-out);
}

[data-split].is-in .split-word > span {
    transform: translateY(0);
}

/* ——— Hero ——— */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100svh - var(--nav-h));
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: clamp(3rem, 8vh, 6rem) 0 clamp(5rem, 10vh, 7rem);
}

.hero-atmosphere {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 70% 40%, rgba(198, 247, 77, 0.18), transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(198, 247, 77, 0.08), transparent 55%),
        linear-gradient(180deg, rgba(12, 14, 10, 0.2) 0%, rgba(12, 14, 10, 0.85) 70%, var(--ink) 100%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(242, 241, 236, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(242, 241, 236, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.hero-visual {
    position: absolute;
    right: -5%;
    top: 8%;
    width: min(58vw, 820px);
    height: auto;
    object-fit: cover;
    opacity: 0.28;
    filter: grayscale(0.35) contrast(1.05);
    mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
    will-change: transform;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    will-change: transform;
}

.hero-orb--a {
    width: 340px;
    height: 340px;
    background: rgba(198, 247, 77, 0.22);
    top: 12%;
    left: 8%;
}

.hero-orb--b {
    width: 260px;
    height: 260px;
    background: rgba(198, 247, 77, 0.12);
    bottom: 18%;
    right: 18%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    width: 100%;
}

.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(3rem, 11vw, 7.5rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.045em;
    color: var(--paper);
    margin-bottom: clamp(1rem, 3vh, 1.75rem);
}

.brand-mark {
    color: var(--lime);
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 600;
    max-width: 18ch;
    margin-bottom: 1rem;
    color: var(--paper);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--paper-dim);
    max-width: 34em;
    margin-bottom: 2rem;
    line-height: 1.65;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.scroll-cue {
    position: absolute;
    bottom: 1.75rem;
    left: clamp(1.25rem, 4vw, 2.5rem);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--paper-dim);
}

.scroll-cue-line {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, var(--lime), transparent);
    animation: cuePulse 1.8s var(--ease-soft) infinite;
}

@keyframes cuePulse {
    0%, 100% { transform: scaleY(0.55); opacity: 0.5; transform-origin: top; }
    50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ——— Marquee ——— */
.marquee {
    border-block: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.25);
    overflow: hidden;
    padding: 1rem 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 1.5rem;
    align-items: center;
    animation: marquee 32s linear infinite;
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--paper-dim);
}

.marquee-dot {
    color: var(--lime);
    font-size: 0.55em;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ——— Statement ——— */
.statement {
    padding: clamp(4.5rem, 12vh, 8rem) 0;
}

.statement-label {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--lime);
    margin-bottom: 1.25rem;
}

.statement-line {
    font-size: clamp(1.65rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.18;
    max-width: 18ch;
    color: var(--paper);
}

/* ——— Section chrome ——— */
.section-index {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lime);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--paper);
    margin-bottom: 0.75rem;
    text-align: left;
    background: none;
    -webkit-text-fill-color: unset;
}

.section-intro {
    color: var(--paper-dim);
    font-size: 1.05rem;
    max-width: 36em;
    margin-bottom: 0;
    text-align: left;
}

.section-intro a {
    color: var(--lime);
    font-weight: 600;
}

.section-intro a:hover {
    color: var(--paper);
}

.section-head {
    margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

/* ——— Services rows ——— */
.home-services {
    padding: clamp(4rem, 10vh, 7rem) 0;
    border-top: 1px solid var(--line);
}

.service-rows {
    display: flex;
    flex-direction: column;
}

.service-row {
    display: grid;
    grid-template-columns: 4.5rem 1fr auto;
    gap: 1.5rem;
    align-items: start;
    padding: 1.75rem 0;
    border-top: 1px solid var(--line);
    transition: background 0.35s var(--ease-soft), padding 0.35s var(--ease-out);
}

.service-row:last-child {
    border-bottom: 1px solid var(--line);
}

.service-row:hover {
    background: var(--lime-soft);
    padding-left: 1rem;
    padding-right: 1rem;
}

.service-num {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--lime);
    font-size: 0.9rem;
    padding-top: 0.35rem;
}

.service-copy h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    margin-bottom: 0.5rem;
    color: var(--paper);
}

.service-copy p {
    color: var(--paper-dim);
    margin-bottom: 0;
    max-width: 42em;
    line-height: 1.6;
}

.service-tag {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--paper-dim);
    border: 1px solid var(--line-strong);
    padding: 0.4rem 0.7rem;
    border-radius: 3px;
    margin-top: 0.35rem;
}

@media (max-width: 700px) {
    .service-row {
        grid-template-columns: 2.5rem 1fr;
        gap: 0.75rem 1rem;
    }

    .service-tag {
        grid-column: 2;
        justify-self: start;
    }
}

/* ——— Horizontal work scroll ——— */
.work-scroll {
    position: relative;
    height: 280vh;
    border-top: 1px solid var(--line);
}

.work-scroll-sticky {
    position: sticky;
    top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    height: calc(100svh - var(--nav-h));
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 2rem 0 2.5rem;
    background:
        radial-gradient(800px 400px at 50% 0%, rgba(198, 247, 77, 0.06), transparent 60%),
        rgba(12, 14, 10, 0.92);
}

.work-scroll-head {
    margin-bottom: 1.75rem;
}

.work-scroll-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.work-scroll-title-row .section-title {
    margin-bottom: 0;
}

.work-rail-wrap {
    overflow: hidden;
    width: 100%;
}

.work-rail {
    display: flex;
    gap: 1.25rem;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    width: max-content;
    will-change: transform;
}

.work-panel {
    position: relative;
    width: min(72vw, 520px);
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--ink-2);
}

.work-panel img {
    width: 100%;
    height: min(52vh, 360px);
    object-fit: cover;
    transition: transform 0.8s var(--ease-out), filter 0.5s ease;
    filter: saturate(0.9);
}

.work-panel:hover img {
    transform: scale(1.04);
    filter: saturate(1.05);
}

.work-panel-meta {
    padding: 1.1rem 1.2rem 1.25rem;
    border-top: 1px solid var(--line);
}

.work-panel-meta h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.work-panel-meta p {
    margin: 0;
    color: var(--paper-dim);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .work-scroll {
        height: auto;
    }

    .work-scroll-sticky {
        position: relative;
        top: auto;
        height: auto;
        overflow: visible;
        padding: 3rem 0;
    }

    .work-rail-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .work-rail {
        transform: none !important;
        padding-bottom: 0.5rem;
    }

    .work-panel {
        width: min(85vw, 360px);
    }

    .work-panel img {
        height: 220px;
    }
}

/* ——— Process ——— */
.process {
    padding: clamp(4rem, 10vh, 7rem) 0;
    border-top: 1px solid var(--line);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    list-style: none;
    counter-reset: none;
}

.process-step {
    padding-top: 1.5rem;
    border-top: 2px solid var(--lime);
}

.process-num {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--lime);
    margin-bottom: 1rem;
}

.process-step h3 {
    font-size: 1.4rem;
    margin-bottom: 0.65rem;
}

.process-step p {
    color: var(--paper-dim);
    margin: 0;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ——— Home CTA ——— */
.home-cta {
    position: relative;
    z-index: 2;
    padding: clamp(5rem, 14vh, 9rem) 0;
    text-align: center;
    overflow: hidden;
    border-top: 1px solid var(--line);
}

.home-cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 50% 100%, rgba(198, 247, 77, 0.16), transparent 55%),
        linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

.home-cta-inner {
    position: relative;
    z-index: 1;
}

.home-cta h2 {
    font-size: clamp(1.85rem, 4vw, 3rem);
    color: var(--paper);
    margin-bottom: 1rem;
    max-width: 14ch;
    margin-left: auto;
    margin-right: auto;
}

.home-cta p {
    color: var(--paper-dim);
    max-width: 34em;
    margin: 0 auto 1.75rem;
    font-size: 1.05rem;
}

/* ——— About ——— */
.about-hero {
    position: relative;
    padding: clamp(4.5rem, 12vh, 7rem) 0 clamp(3rem, 6vh, 4rem);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 60% at 85% 20%, rgba(198, 247, 77, 0.12), transparent 55%),
        radial-gradient(ellipse 40% 50% at 10% 80%, rgba(198, 247, 77, 0.05), transparent 50%);
}

.about-hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.about-hero .section-index {
    margin-bottom: 1.25rem;
}

.about-hero h1 {
    font-size: clamp(2.6rem, 7vw, 4.5rem);
    margin-bottom: 0.85rem;
    color: var(--paper);
    background: none;
    -webkit-text-fill-color: unset;
}

.about-hero .hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--lime);
    margin-bottom: 1.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.about-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--paper-dim);
    margin-bottom: 0;
}

.about-section {
    padding: clamp(3.5rem, 9vh, 6rem) 0;
}

.about-content {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.about-image {
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
}

.about-image img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--line);
    filter: grayscale(0.2) contrast(1.05);
    transition: filter 0.5s var(--ease-soft);
}

.about-image:hover img {
    filter: grayscale(0) contrast(1);
}

.about-text h2 {
    color: var(--paper);
    margin-top: 2.5rem;
    margin-bottom: 1.1rem;
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
}

.about-text h2:first-of-type {
    margin-top: 0;
}

.about-text p {
    color: var(--paper-dim);
    line-height: 1.8;
    margin-bottom: 1.35rem;
}

.approach-list {
    margin-top: 1.25rem;
}

.approach-list li {
    margin-bottom: 0;
    padding: 1rem 0 1rem 1.5rem;
    position: relative;
    color: var(--paper-dim);
    line-height: 1.7;
    border-bottom: 1px solid var(--line);
}

.approach-list li:first-child {
    border-top: 1px solid var(--line);
}

.approach-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--lime);
    font-weight: 700;
}

.approach-list li strong {
    color: var(--paper);
    font-family: var(--font-display);
    font-weight: 600;
}

.skills-section,
.values-section {
    padding: clamp(3.5rem, 9vh, 6rem) 0;
    border-top: 1px solid var(--line);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 960px;
}

.skills-grid-narrow {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
}

.skill-category {
    padding: 0;
    border-top: 2px solid var(--lime);
    background: transparent;
    border-radius: 0;
    border-right: none;
    border-bottom: none;
    border-left: none;
    padding-top: 1.5rem;
}

.skill-category:hover {
    transform: none;
    box-shadow: none;
}

.skill-category h3 {
    font-family: var(--font-display);
    color: var(--paper);
    font-size: 1.2rem;
    margin-bottom: 1.15rem;
}

.skill-list li {
    color: var(--paper-dim);
    padding: 0.7rem 0;
    padding-left: 1.25rem;
    position: relative;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}

.skill-list li:last-child {
    border-bottom: none;
}

.skill-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--lime);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

.value-item {
    text-align: left;
    padding: 1.5rem 0 0;
    background: transparent;
    border-radius: 0;
    border: none;
    border-top: 2px solid var(--lime);
    transition: border-color 0.3s ease;
}

.value-item:hover {
    transform: none;
    box-shadow: none;
    border-top-color: var(--paper);
}

.value-icon {
    color: var(--lime);
    margin-bottom: 1rem;
}

.value-item h3 {
    color: var(--paper);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.value-item p {
    color: var(--paper-dim);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.55;
}

.about-cta {
    position: relative;
    padding: clamp(5rem, 12vh, 8rem) 0;
    text-align: center;
    border-top: 1px solid var(--line);
    overflow: hidden;
}

.about-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(198, 247, 77, 0.12), transparent 55%);
    pointer-events: none;
}

.about-cta .container {
    position: relative;
    z-index: 1;
}

.about-cta h2 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    color: var(--paper);
    margin-bottom: 1rem;
}

.about-cta p {
    font-size: 1.05rem;
    color: var(--paper-dim);
    margin-bottom: 1.75rem;
    max-width: 36em;
    margin-left: auto;
    margin-right: auto;
}

.about-contact-links {
    margin-top: 1.5rem;
    font-size: 0.95rem !important;
}

.about-contact-links a {
    color: var(--lime);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-contact-links a:hover {
    color: var(--paper);
}

@media (max-width: 968px) {
    .skills-grid,
    .skills-grid-narrow {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        position: relative;
        top: auto;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* ——— Works ——— */
.works-hero {
    position: relative;
    padding: clamp(4.5rem, 12vh, 7rem) 0 clamp(2.5rem, 5vh, 3.5rem);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.works-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 55% at 90% 30%, rgba(198, 247, 77, 0.1), transparent 55%),
        linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
}

.works-hero .container {
    position: relative;
    z-index: 1;
}

.works-hero h1 {
    font-size: clamp(2.6rem, 7vw, 4.5rem);
    color: var(--paper);
    margin-bottom: 0.85rem;
}

.works-hero .section-intro {
    margin-bottom: 0;
    max-width: 38em;
}

.works-section {
    padding: clamp(3rem, 8vh, 5rem) 0 clamp(4rem, 10vh, 6rem);
}

.works-section > .container > h1 {
    display: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--line);
    background: var(--ink-2);
    transition: transform 0.45s var(--ease-out), border-color 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: var(--lime);
}

.portfolio-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
}

.portfolio-item:hover img {
    transform: scale(1.06);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 18, 14, 0.05) 20%, rgba(16, 18, 14, 0.94));
    color: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.35s var(--ease-soft);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.project-meta {
    font-family: var(--font-body);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lime);
    margin: 0;
    font-weight: 500;
}

.portfolio-overlay .project-outcome {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-top: 0.6rem;
    color: var(--paper-dim);
    text-transform: none;
    letter-spacing: normal;
}

.portfolio-overlay .project-link-hint {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lime);
}

.works-cta {
    position: relative;
    padding: clamp(4.5rem, 11vh, 7rem) 0;
    text-align: center;
    border-top: 1px solid var(--line);
    overflow: hidden;
}

.works-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 65% 80% at 50% 100%, rgba(198, 247, 77, 0.12), transparent 55%);
    pointer-events: none;
}

.works-cta .container {
    position: relative;
    z-index: 1;
}

.works-cta h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 0.85rem;
}

.works-cta p {
    color: var(--paper-dim);
    max-width: 32em;
    margin: 0 auto 1.75rem;
}

@media (max-width: 968px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item img {
        height: 240px;
    }

    .portfolio-overlay {
        opacity: 1;
        background: linear-gradient(180deg, transparent 25%, rgba(16, 18, 14, 0.95));
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 7, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
}

.lightbox-content h2 {
    color: var(--paper);
    margin-top: 1rem;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--paper);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    width: 40px;
    height: 40px;
}

/* ——— Contact ——— */
.contact-section {
    padding: clamp(3.5rem, 8vh, 5rem) 0;
}

.contact-section h1 {
    text-align: left;
    margin-bottom: 0.75rem;
    color: var(--paper);
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    letter-spacing: -0.03em;
    text-transform: none;
}

#contact-form {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: rgba(23, 26, 20, 0.85);
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    margin-bottom: 1.35rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 500;
    color: var(--paper-dim);
}

.required {
    color: var(--error-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 0.9rem;
    background: rgba(12, 14, 10, 0.75);
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.25s ease;
}

.form-group select {
    cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--lime);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
}

.char-count {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--paper-dim);
    text-align: right;
}

.error-message {
    display: block;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

.g-recaptcha {
    margin: 1rem 0;
}

.submit-button {
    width: 100%;
}

.submit-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

#form-messages {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    display: none;
}

#form-messages.success {
    display: block;
    background: rgba(61, 191, 122, 0.15);
    color: #9de8c0;
    border: 1px solid rgba(61, 191, 122, 0.35);
}

#form-messages.error {
    display: block;
    background: rgba(232, 93, 76, 0.15);
    color: #f5b0a7;
    border: 1px solid rgba(232, 93, 76, 0.35);
}

.direct-email-note {
    max-width: 640px;
    margin: 0 auto 1.25rem;
    font-size: 0.95rem;
    color: var(--paper-dim);
    line-height: 1.55;
}

.direct-email-note {
    text-align: left;
    margin: 0 0 1.25rem;
}

 

.direct-email-note a {
    color: var(--lime);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.direct-email-note a:hover{
    color: var(--paper);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ——— Footer ——— */
footer {
    background: rgba(8, 10, 7, 0.9);
    color: var(--paper-dim);
    padding: 1.5rem 0;
    margin-top: 0;
    border-top: 1px solid var(--line);
}

.footer-content {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0.5rem clamp(1.25rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    gap: 0.4rem;
    text-align: center;
}

.footer-content p {
    margin-bottom: 0;
}

.text-center {
    text-align: center;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal],
    .split-word > span {
        opacity: 1 !important;
        transform: none !important;
    }

    .marquee-track {
        animation: none;
    }

    .work-scroll {
        height: auto;
    }

    .work-scroll-sticky {
        position: relative;
        height: auto;
    }
}
