/* Merveldoski Web3 portfolio — edit colors and spacing here */

:root {
    --bg: #09080e;
    --surface: #100d19;
    --surface2: #151020;
    --text: #f7f4fc;
    --muted: #aaa2ba;
    --purple: #9655ff;
    --purple-light: #b59aff;
    --line: rgba(226, 215, 255, .13);
    --font-body: "DM Sans", sans-serif;
    --font-display: "Playfair Display", serif;
    --container: 1120px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
    overflow-x: hidden
}

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

button {
    font: inherit
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto
}

.section {
    padding: 112px 0;
    position: relative
}

.ambient {
    position: absolute;
    pointer-events: none;
    filter: blur(90px);
    opacity: .22;
    border-radius: 50%;
    z-index: -1
}

.ambient-one {
    width: 460px;
    height: 460px;
    right: -180px;
    top: 80px;
    background: #6422bd
}

.ambient-two {
    width: 360px;
    height: 360px;
    left: -200px;
    top: 1200px;
    background: #391276
}

.site-header {
    height: 82px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(9, 8, 14, .86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .035)
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -.3px
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #b17aff, #6b27e8);
    box-shadow: 0 5px 18px #792be744;
    font-size: 13px;
    color: #fff
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 12px;
    color: #b9b1c9
}

.nav-links>a:not(.button):hover,
.social-links a:hover,
.contact-socials a:hover {
    color: #fff
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(120deg, #a76bff, #742be8);
    padding: 13px 21px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 8px 24px #782de833;
    transition: transform .2s, box-shadow .2s
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px #782de855
}

.button-small {
    padding: 9px 16px
}

.button-ghost {
    background: transparent;
    border-color: rgba(235, 226, 255, .25);
    box-shadow: none
}

.button-ghost:hover {
    border-color: var(--purple-light);
    background: #ffffff08;
    box-shadow: none
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    padding: 10px;
    cursor: pointer
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    margin: 4px 0;
    background: #fff;
    border-radius: 3px;
    transition: .2s
}

.hero {
    min-height: 660px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 45px;
    align-items: center;
    padding-top: 78px;
    padding-bottom: 92px
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 2.4px;
    font-weight: 700;
    color: #a982ff;
    margin: 0 0 23px;
    display: flex;
    align-items: center;
    gap: 12px
}

.eyebrow>span {
    display: inline-block;
    width: 18px;
    height: 1px;
    background: var(--purple-light)
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1,
h2 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -1.7px;
    line-height: 1.12
}

h1 {
    font-size: clamp(42px, 5vw, 65px);
    margin-bottom: 24px
}

h1 em,
h2 em {
    font-weight: 500;
    color: var(--purple-light)
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: 19px;
    line-height: 1.5;
    margin-bottom: 22px
}

.body-copy {
    font-size: 13px;
    line-height: 1.85;
    max-width: 485px;
    margin-bottom: 14px
}

.muted {
    color: var(--muted)
}

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

.social-links,
.contact-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: #a79eb8;
    margin-top: 25px
}

.hero-art {
    height: 460px;
    position: relative;
    display: grid;
    place-items: center
}

.portrait {
    width: min(350px, 75%);
    aspect-ratio: 1;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    background: radial-gradient(circle at 50% 35%, #51248b, #21102f 68%, #100b1a);
    border: 1px solid #9e70ee77;
    box-shadow: 0 0 0 12px #4a1b7c15, 0 0 75px #6c27b32c, inset 0 0 45px #9a5fff19
}

.portrait:before {
    content: "";
    position: absolute;
    inset: 17px;
    border: 1px solid #c1a4ff32;
    border-radius: 50%
}

.monogram {
    font-family: var(--font-display);
    font-size: clamp(150px, 20vw, 235px);
    line-height: 1;
    color: #f6edff;
    text-shadow: 0 10px 60px #c9a6ff2c;
    letter-spacing: -15px
}

.monogram span {
    color: #a26aff
}

.portrait-label,
.portrait-bottom {
    position: absolute;
    font-size: 8px;
    letter-spacing: 2px;
    color: #d7c4f6
}

.portrait-label {
    top: 42px
}

.portrait-bottom {
    bottom: 38px
}

.orbit {
    position: absolute;
    border: 1px solid #a26aff28;
    border-radius: 50%;
    width: 420px;
    height: 420px
}

.orbit-two {
    width: 485px;
    height: 485px;
    border-style: dashed;
    opacity: .55
}

.floating-note {
    position: absolute;
    padding: 11px 15px;
    background: #171020e8;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 10px;
    color: #e7dff5;
    box-shadow: 0 12px 35px #0005;
    backdrop-filter: blur(12px)
}

.note-top {
    top: 73px;
    right: 0
}

.note-bottom {
    bottom: 68px;
    left: -5px
}

.note-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9dffbd;
    margin-right: 8px
}

.note-bottom span {
    color: var(--purple-light);
    margin-left: 8px
}

.star {
    position: absolute;
    color: #b58aff
}

.star-one {
    font-size: 28px;
    right: 10%;
    top: 23%
}

.star-two {
    font-size: 18px;
    left: 12%;
    bottom: 24%
}

.ticker {
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: #ffffff03;
    padding: 15px 0
}

.ticker-track {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 34px;
    min-width: 900px;
    font-size: 9px;
    letter-spacing: 2.1px;
    color: #c8bedb
}

.ticker i {
    font-style: normal;
    color: var(--purple-light);
    font-size: 15px
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px
}

.section-heading h2,
.about-copy h2 {
    font-size: clamp(34px, 4vw, 49px);
    margin: 0
}

.section-intro {
    max-width: 390px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
    margin: 0 0 5px
}

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

.work-card {
    border: 1px solid var(--line);
    background: linear-gradient(150deg, #151020, #0d0b13);
    border-radius: 15px;
    overflow: hidden;
    transition: transform .25s, border-color .25s
}

.work-card:hover {
    transform: translateY(-5px);
    border-color: #a16cff66
}

.work-visual {
    height: 220px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden
}

.work-visual:before,
.work-visual:after {
    content: "";
    position: absolute;
    border: 1px solid #ffffff18;
    border-radius: 50%;
    width: 260px;
    height: 260px
}

.work-visual:after {
    width: 330px;
    height: 330px
}

.visual-stacks {
    background: radial-gradient(circle at 50% 50%, #5527a2, #24123d 60%, #120c20)
}

.visual-bitcoin {
    background: radial-gradient(circle at 50% 50%, #653d1d, #2b1a16 60%, #120c11)
}

.visual-learn {
    background: radial-gradient(circle at 50% 50%, #194b49, #102724 60%, #0b1516)
}

.visual-research {
    background: radial-gradient(circle at 50% 50%, #413166, #1e1732 60%, #110e1b)
}

.visual-kicker {
    position: absolute;
    top: 19px;
    left: 20px;
    font-size: 8px;
    letter-spacing: 2px;
    color: #ffffffa8
}

.visual-index {
    position: absolute;
    right: 20px;
    bottom: 14px;
    font-size: 10px;
    color: #ffffff80
}

.stack-symbol,
.bitcoin-symbol,
.learn-symbol,
.research-symbol {
    font-family: var(--font-display);
    font-size: 125px;
    color: #f7f0ff;
    line-height: 1;
    text-shadow: 0 0 50px #ffffff30;
    z-index: 1
}

.bitcoin-symbol {
    color: #ffbf75
}

.learn-symbol {
    color: #9de8d5
}

.research-symbol {
    color: #c9b3ff
}

.work-info {
    padding: 23px 25px 27px
}

.tag-row {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 14px
}

.tag {
    font-size: 9px;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 100px;
    color: #c6b6e4
}

.work-info h3,
.experience-main h3,
.achievement-card h3,
.service-card h3 {
    font-size: 18px;
    letter-spacing: -.4px;
    margin-bottom: 8px
}

.work-info p,
.experience-main p,
.achievement-card p,
.service-card p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 17px
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #c5a8ff
}

.text-link span {
    transition: transform .2s
}

.text-link:hover span {
    transform: translate(3px, -3px)
}

.content-note {
    font-size: 10px;
    color: #80768f;
    margin: 22px 0 0
}

.center-action {
    text-align: center;
    margin-top: 28px
}

.section-alt {
    background: linear-gradient(180deg, #100c18, #0d0a13);
    border-block: 1px solid #ffffff06
}

.experience-list {
    border-top: 1px solid var(--line)
}

.experience-item {
    display: grid;
    grid-template-columns: 65px 1fr;
    gap: 27px;
    padding: 35px 0;
    border-bottom: 1px solid var(--line)
}

.experience-logo {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 26px;
    font-weight: 700
}

.rosen-logo {
    background: #f1e7d7;
    color: #171018
}

.superteam-logo {
    background: #d5ff65;
    color: #18230a
}

.community-logo {
    background: #29203b;
    color: #c3a5ff
}

.experience-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px
}

.experience-number {
    font-size: 10px;
    color: #736a83
}

.experience-main h3 {
    font-size: 23px;
    margin-bottom: 1px
}

.experience-main h4 {
    font-size: 12px;
    font-weight: 500;
    color: #c0b2d9;
    margin: 0 0 15px
}

.experience-main p {
    max-width: 780px;
    margin-bottom: 14px
}

.check-list {
    padding: 0;
    list-style: none;
    display: grid;
    gap: 4px;
    margin: 0 0 17px;
    color: #c4bbd2;
    font-size: 11px
}

.check-list li:before {
    content: "↗";
    color: var(--purple-light);
    margin-right: 10px
}

.mini-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #c5a8ff
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px
}

.achievement-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, #151020, #0e0b14)
}

.achievement-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #9d61ff1a;
    color: #c3a5ff;
    font-size: 20px
}

.achievement-count {
    display: block;
    font-family: var(--font-display);
    font-size: 39px;
    line-height: 1.2;
    margin: 25px 0 14px
}

.achievement-card h3 {
    font-size: 16px
}

.achievement-card p {
    min-height: 66px
}

.about-section {
    background: linear-gradient(110deg, #110d1a, #0c0911);
    border-block: 1px solid #ffffff06
}

.about-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 90px;
    align-items: center
}

.about-art {
    display: grid;
    place-items: center;
    min-height: 390px
}

.about-circle {
    width: min(330px, 100%);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid #a66dff55;
    background: radial-gradient(circle at 40% 35%, #492278, #21112f 65%, #100b18);
    box-shadow: 0 0 0 14px #6723a012, 0 0 80px #7124a521;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center
}

.about-circle:before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid #d0b4ff2b;
    border-radius: 50%
}

.about-small,
.about-stamp {
    font-size: 8px;
    letter-spacing: 2px;
    color: #c9b5e7
}

.about-big {
    font-family: var(--font-display);
    font-size: 43px;
    line-height: 1.12;
    margin: 22px 0
}

.about-big em {
    color: #c3a1ff
}

.about-stamp {
    position: absolute;
    bottom: 34px
}

.about-copy h2 {
    font-size: clamp(31px, 3.5vw, 43px);
    margin-bottom: 25px
}

.about-copy>p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.95;
    color: var(--muted);
    margin-bottom: 15px
}

.about-copy .text-link {
    margin-top: 8px
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px
}

.service-card {
    position: relative;
    min-height: 265px;
    padding: 24px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, #151020, #0d0a13);
    transition: transform .2s, border-color .2s
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: #9d61ff70
}

.service-num {
    font-size: 9px;
    color: #7d728e;
    letter-spacing: 1px
}

.service-icon {
    display: block;
    font-size: 26px;
    color: #bd9aff;
    margin: 23px 0 16px
}

.service-card h3 {
    font-size: 15px;
    line-height: 1.45
}

.service-card p {
    font-size: 11px
}

.service-card>a {
    position: absolute;
    bottom: 18px;
    right: 20px;
    color: #c3a5ff
}

.faq-section {
    padding-top: 40px
}

.faq-list {
    max-width: 780px;
    margin-left: auto;
    border-top: 1px solid var(--line)
}

details {
    border-bottom: 1px solid var(--line);
    padding: 20px 0
}

summary {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    list-style: none;
    font-size: 13px;
    font-weight: 600
}

summary::-webkit-details-marker {
    display: none
}

summary span {
    color: var(--purple-light);
    font-size: 20px;
    line-height: 1;
    transition: transform .2s
}

details[open] summary span {
    transform: rotate(45deg)
}

details p {
    font-size: 12px;
    color: var(--muted);
    max-width: 680px;
    margin: 14px 0 0
}

.contact-section {
    padding: 100px 0;
    background: radial-gradient(ellipse at 50% 100%, #3a1764 0%, #170d25 40%, #0b0910 76%);
    border-top: 1px solid var(--line);
    overflow: hidden
}

.contact-inner {
    text-align: center;
    position: relative
}

.contact-inner .eyebrow {
    justify-content: center
}

.contact-inner h2 {
    font-size: clamp(48px, 7vw, 78px);
    margin-bottom: 22px
}

.contact-inner h2 span {
    color: var(--purple-light)
}

.contact-inner>p:not(.eyebrow) {
    max-width: 560px;
    margin: 0 auto 27px;
    color: #b8adc9;
    font-size: 13px
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap
}

.contact-socials {
    justify-content: center
}

.contact-orb {
    position: absolute;
    border-radius: 50%;
    border: 1px solid #a66dff24;
    pointer-events: none;
    z-index: 0
}

.orb-a {
    width: 260px;
    height: 260px;
    left: -150px;
    bottom: -150px
}

.orb-b {
    width: 180px;
    height: 180px;
    right: -90px;
    top: 20px
}

.footer {
    border-top: 1px solid var(--line);
    padding: 25px 0
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 25px
}

.footer-inner p {
    margin: 0;
    color: #8f859e;
    font-size: 10px
}

.back-top {
    font-size: 10px;
    color: #c5a8ff;
    margin-left: auto
}

.copyright {
    font-size: 10px;
    color: #80768e
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s ease, transform .65s ease
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

@media(min-width:1400px) {
    .hero {
        min-height: 710px
    }
}

@media(max-width:900px) {
    .hero {
        gap: 15px;
        grid-template-columns: 1.05fr .95fr
    }
    .hero-art {
        transform: scale(.9)
    }
    .section {
        padding: 85px 0
    }
    .about-grid {
        gap: 45px
    }
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
    .service-card {
        min-height: 235px
    }
    .section-heading {
        gap: 25px
    }
    .section-intro {
        max-width: 320px
    }
}

@media(max-width:680px) {
    .container {
        width: min(100% - 36px, var(--container))
    }
    .site-header {
        height: 72px
    }
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 60
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 71px;
        left: 0;
        right: 0;
        padding: 20px 22px 25px;
        background: #100d18f7;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 28px #0005;
        flex-direction: column;
        align-items: stretch;
        gap: 0
    }
    .nav-links.open {
        display: flex
    }
    .nav-links>a:not(.button) {
        padding: 12px 2px;
        border-bottom: 1px solid #ffffff0b;
        font-size: 13px
    }
    .nav-links .button {
        margin-top: 16px;
        align-self: flex-start
    }
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg)
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg)
    }
    .hero {
        grid-template-columns: 1fr;
        padding-top: 66px;
        padding-bottom: 70px;
        gap: 30px
    }
    .hero-copy {
        order: 1
    }
    .hero-art {
        order: 0;
        height: 310px;
        transform: none;
        margin-bottom: 10px
    }
    .portrait {
        width: 235px
    }
    .monogram {
        font-size: 165px
    }
    .orbit {
        width: 285px;
        height: 285px
    }
    .orbit-two {
        width: 320px;
        height: 320px
    }
    .note-top {
        top: 20px;
        right: 0
    }
    .note-bottom {
        bottom: 22px;
        left: 0
    }
    .floating-note {
        font-size: 9px;
        padding: 8px 10px
    }
    .portrait-label {
        top: 30px
    }
    .portrait-bottom {
        bottom: 28px;
        font-size: 6px
    }
    .star-one {
        right: 8%;
        top: 10%
    }
    .star-two {
        left: 8%;
        bottom: 15%
    }
    h1 {
        font-size: clamp(42px, 12vw, 58px)
    }
    .hero-tagline {
        font-size: 18px
    }
    .body-copy {
        font-size: 12px
    }
    .section {
        padding: 72px 0
    }
    .section-heading {
        display: block;
        margin-bottom: 32px
    }
    .section-heading h2,
    .about-copy h2 {
        font-size: 37px
    }
    .section-intro {
        margin-top: 20px
    }
    .work-grid {
        grid-template-columns: 1fr;
        gap: 17px
    }
    .work-visual {
        height: 190px
    }
    .work-info {
        padding: 20px
    }
    .experience-item {
        grid-template-columns: 45px 1fr;
        gap: 15px;
        padding: 27px 0
    }
    .experience-logo {
        width: 43px;
        height: 43px;
        border-radius: 12px;
        font-size: 20px
    }
    .experience-main h3 {
        font-size: 20px
    }
    .experience-main h4 {
        line-height: 1.6
    }
    .achievement-grid {
        grid-template-columns: 1fr;
        gap: 13px
    }
    .achievement-card {
        padding: 23px
    }
    .achievement-count {
        font-size: 34px;
        margin: 18px 0 10px
    }
    .achievement-card p {
        min-height: 0
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px
    }
    .about-art {
        min-height: 300px
    }
    .about-circle {
        width: 275px
    }
    .about-big {
        font-size: 38px
    }
    .about-copy h2 {
        font-size: 34px
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px
    }
    .service-card {
        min-height: 215px;
        padding: 22px
    }
    .service-icon {
        margin: 15px 0 10px
    }
    .service-card p {
        max-width: 360px
    }
    .faq-section {
        padding-top: 20px
    }
    .faq-list {
        margin-left: 0
    }
    .contact-section {
        padding: 78px 0
    }
    .contact-inner h2 {
        font-size: 51px
    }
    .footer-inner {
        flex-wrap: wrap;
        gap: 13px
    }
    .footer-inner p {
        order: 3;
        width: 100%
    }
    .back-top {
        margin-left: auto
    }
    .copyright {
        width: 100%
    }
    .ticker-track {
        justify-content: flex-start;
        gap: 25px;
        animation: marquee 28s linear infinite
    }
    @keyframes marquee {
        to {
            transform: translateX(-35%)
        }
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }
    *,
    *::before,
    *::after {
        animation-duration: .01ms!important;
        animation-iteration-count: 1!important;
        transition-duration: .01ms!important
    }
    .reveal {
        opacity: 1;
        transform: none
    }
}