/* Art direction: a cinematic opening, then a quiet gallery for the work. */
:root {
    --primary-color: #684bd0;
    --primary-light: #a88df4;
    --background-light: #f6f4fa;
    --background-dark: #151320;
    --text-color-dark: #242033;
}

body {
    background: #f6f4fa;
    color: var(--text-color-dark);
}

.container {
    max-width: 1260px;
    padding-inline: clamp(20px, 4vw, 48px);
}

.section-padding {
    padding-block: clamp(76px, 9vw, 124px);
}

.section-kicker {
    margin-bottom: 12px;
    color: var(--primary-color);
    font: 700 .76rem/1.4 'Poppins', sans-serif;
    letter-spacing: .22em;
}

.section-title {
    margin-bottom: 16px;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 1.12;
    letter-spacing: -.055em;
    text-align: left;
}

.section-subtitle {
    max-width: 660px;
    margin-bottom: 44px;
    font-size: 1rem;
    line-height: 1.85;
    text-align: left;
}

.sticky-header {
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid #ece8f3;
    box-shadow: none;
}

.header-content {
    min-height: 78px;
    padding-block: 12px;
}

.header-logo,
.footer-logo {
    height: 42px;
}

.header-content nav {
    display: flex;
    gap: clamp(15px, 3vw, 38px);
    align-items: center;
}

nav a {
    margin: 0;
    color: #514a62;
    font: 700 .75rem/1.5 'Poppins', sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}

nav a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

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

.btn {
    border-radius: 8px;
    padding: 13px 23px;
    font-size: .9rem;
    letter-spacing: .025em;
}

.hero-section {
    min-height: 690px;
    padding: 142px 0 88px;
    background: radial-gradient(circle at 70% 28%, #34235c 0, transparent 36%),
                radial-gradient(circle at 6% 92%, #1d3350 0, transparent 34%),
                #11101d;
    color: #fff;
}

.hero-section::after {
    display: none;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .96fr);
    align-items: center;
    gap: clamp(40px, 5vw, 84px);
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

.hero-eyebrow {
    margin-bottom: 25px !important;
    color: #b6a2fa !important;
    font: 700 .8rem/1.5 'Poppins', sans-serif !important;
    letter-spacing: .19em;
}

.hero-content h1 {
    margin-bottom: 30px;
    font-size: clamp(3.1rem, 5.7vw, 5.9rem);
    line-height: 1.2;
    letter-spacing: -.08em;
}

.hero-content .highlight-name {
    color: #cbb7ff;
}

.hero-content .hero-lead {
    margin-bottom: 34px;
    color: #d2cfdd;
    font-size: clamp(.98rem, 1.35vw, 1.1rem);
    line-height: 2;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-buttons a {
    margin: 0;
}

.hero-buttons .primary-btn {
    background: #c7b1ff;
    border-color: #c7b1ff;
    color: #171327;
}

.hero-buttons .primary-btn:hover {
    background: #e0d4ff;
    border-color: #e0d4ff;
    color: #171327;
}

.hero-buttons .secondary-btn {
    border-color: #686079;
    color: #fff;
}

.hero-buttons .secondary-btn:hover {
    background: #ffffff1a;
    color: #fff;
}

.hero-feature {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    border: 1px solid #ffffff55;
    border-radius: 18px;
    box-shadow: 0 32px 70px #07061380, 0 0 80px #8560dc33;
    color: #fff;
}

.hero-feature img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.hero-feature:hover img {
    transform: scale(1.04);
}

.hero-feature:focus-visible {
    outline: 3px solid #c7b1ff;
    outline-offset: 5px;
}

.hero-feature-caption {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 64px 28px 25px;
    background: linear-gradient(transparent, #100d20dd);
    color: #fff;
    font: 700 .72rem/1.4 'Poppins', sans-serif;
    letter-spacing: .12em;
}

.hero-feature-caption strong {
    font: 700 clamp(2rem, 4vw, 3.4rem)/1.1 'Noto Sans JP', sans-serif;
    letter-spacing: .06em;
}

.hero-feature-caption span:last-child {
    margin-top: 8px;
    letter-spacing: .02em;
}

.works-section {
    background: #f6f4fa;
}

.filter-buttons {
    justify-content: flex-start;
    margin-bottom: 24px;
}

.filter-btn {
    padding: 10px 18px;
    border: 1px solid #dfd9ed;
    border-radius: 7px;
    background: #fff;
    color: #514a62;
    font: 700 .84rem/1.3 'Poppins', 'Noto Sans JP', sans-serif;
}

.filter-btn.active {
    background: #242033;
    border-color: #242033;
    color: #fff;
}

.works-count {
    margin-bottom: 18px;
    color: #746d80;
    font-size: .85rem;
}

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

.work-card-link {
    height: 100%;
    color: inherit;
}

.work-card {
    height: 100%;
    border: 1px solid #e6e1ee;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 34px #261a4510;
}

.work-card-link:hover .work-card {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px #261a4524;
}

.work-card-image {
    aspect-ratio: 16 / 10;
    background: #292436;
}

.work-card-image img {
    transition: transform .5s ease;
}

.work-card-link:hover .work-card-image img {
    transform: scale(1.04);
}

.category-badge {
    top: 15px;
    right: 15px;
    padding: 7px 11px;
    border-radius: 5px;
    background: #161321df;
    color: #fff;
    font: 700 .68rem/1.2 'Poppins', sans-serif;
    letter-spacing: .06em;
}

.work-card-content {
    display: flex;
    flex-direction: column;
    min-height: 244px;
    padding: 24px;
}

.category-type {
    margin-bottom: 9px;
    padding: 0;
    background: transparent;
    color: var(--primary-color);
    font: 700 .7rem/1.4 'Poppins', sans-serif;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.work-card-content h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
    line-height: 1.45;
}

.work-card-content p {
    min-height: 0;
    margin-bottom: 15px;
    color: #6b6575;
    line-height: 1.75;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.tool-tags .tool-tag {
    background: #f2eff8;
    color: #766e83;
    font-size: .7rem;
}

.work-card-action {
    display: block;
    margin-top: auto;
    padding-top: 14px;
    color: var(--primary-color);
    font-size: .82rem;
    font-weight: 700;
}

.is-featured {
    grid-column: 1 / -1;
}

.is-featured .work-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    min-height: 370px;
}

.is-featured .work-card-image {
    height: 100%;
    aspect-ratio: auto;
}

.is-featured .work-card-content {
    justify-content: center;
    padding: clamp(30px, 4vw, 58px);
}

.is-featured .category-type::before {
    content: 'LATEST RELEASE / ';
}

.is-featured .work-card-content h3 {
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 4vw, 3.9rem);
    letter-spacing: -.05em;
}

.is-featured .work-card-content p {
    display: block;
    margin-bottom: 0;
    color: #514b5c;
    font-size: 1rem;
    line-height: 2;
    white-space: pre-line;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.is-featured .work-card-action {
    margin-top: 24px;
    padding-top: 0;
}

.more-works-btn {
    border-color: #8b79b4;
    color: #4e3b7a;
}

.more-works-btn:hover {
    background: #ece6fb;
    color: #4e3b7a;
}

.about-section {
    background: #fff;
}

.about-flex {
    gap: clamp(32px, 6vw, 88px);
}

.about-image-box {
    border-radius: 15px;
    box-shadow: 0 25px 55px #2715491a;
}

.about-image-box img {
    opacity: 1;
    mix-blend-mode: normal;
}

.about-text h3 {
    color: #2e2540;
    font-size: clamp(1.45rem, 2.4vw, 2.2rem);
    line-height: 1.5;
}

.about-text p {
    color: #625b6e;
    line-height: 1.95;
}

.about-stats {
    gap: 12px;
    border-top-color: #e9e3f1;
}

.about-stats span {
    color: var(--primary-color);
}

.skills-section {
    background: #f6f4fa;
}

.skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.skill-card {
    min-height: 160px;
    padding: 27px;
    border: 1px solid #e7e0f0;
    border-radius: 12px;
    box-shadow: none;
}

.skill-card::before {
    height: 3px;
    background: linear-gradient(to right, #ad94f5, #b9daee);
    opacity: 1;
}

.skill-card h4 {
    color: #3c3158;
    overflow-wrap: anywhere;
}

.skill-card p {
    margin: 0;
    color: #736b7e;
}

.learning-banner {
    background: linear-gradient(110deg, #28203f, #524087);
    border-radius: 14px;
}

.workflow-section {
    background: #171421;
    color: #e7e2ee;
}

.workflow-section .section-title {
    color: #fff;
}

.workflow-section .section-kicker {
    color: #bea5ff;
}

.workflow-section .section-subtitle {
    color: #b9b2c7;
}

.step-card {
    background: #242035;
    border-color: #403852;
    box-shadow: none;
}

.step-card:hover {
    border-color: #a88df4;
    box-shadow: 0 14px 30px #09071166;
}

.step-number {
    background: #b69cff;
    color: #1a1628;
}

.step-card h3 {
    color: #d5c6ff;
}

.step-desc {
    color: #b5a9ca;
    border-bottom-color: #51495f;
}

.step-card p:not(.step-desc) {
    color: #d0cadb;
}

.step-tools {
    background: #39304f;
    color: #d3c2ff;
}

.step-arrow {
    color: #a88df4;
}

.contact-section {
    background: #fff;
}

.contact-info {
    max-width: 720px;
}

.contact-info h3 {
    color: #302745;
    font-size: clamp(1.5rem, 2.3vw, 2rem);
}

.info-item {
    display: flex;
    gap: 24px;
    align-items: baseline;
    margin: 0;
    padding: 18px 0;
    border-top: 1px solid #e9e4f0;
}

.info-label {
    min-width: 86px;
    color: #847b90;
}

.info-item a {
    color: var(--primary-color);
    font-weight: 700;
}

.main-footer {
    background: #171421;
}

.logo-footer {
    color: #fff;
    font-size: 1.8rem;
    line-height: 1.15;
    letter-spacing: -.04em;
}

.logo-footer span {
    display: block;
    margin-top: 7px;
    color: #b8a2db;
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.footer-content {
    border-bottom-color: #423a50;
}

@media (max-width: 950px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 720px;
    }

    .hero-feature {
        max-width: 720px;
        aspect-ratio: 16 / 9;
    }

    .works-grid,
    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    section[id] {
        scroll-margin-top: 116px;
    }

    .header-content {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px 20px;
    }

    .header-content nav {
        justify-content: center;
        width: 100%;
    }

    .hero-section {
        min-height: 0;
        padding: 164px 0 70px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: clamp(2.8rem, 10vw, 4.5rem);
    }

    .hero-feature {
        aspect-ratio: 16 / 10;
    }

    .works-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .is-featured .work-card {
        display: block;
        min-height: 0;
    }

    .is-featured .work-card-image {
        aspect-ratio: 16 / 9;
    }

    .is-featured .work-card-content {
        padding: 28px 24px;
    }

    .is-featured .work-card-content h3 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: clamp(2.3rem, 9vw, 3.5rem);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
