﻿@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/outfit-latin-ext.woff2') format('woff2'),
         url('../fonts/outfit-300.ttf')         format('truetype');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                   U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                   U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                   U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/outfit-latin.woff2') format('woff2'),
         url('../fonts/outfit-800.ttf')     format('truetype');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                   U+FEFF, U+FFFD;
}

body {
    margin: 0;
    padding: 0;
    background: #07101d;
    color: #c8d8f0;
    font-family: 'Outfit', sans-serif;
    overflow-x: clip;
}

.nav {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 100;
    padding: 1.5rem 2.5rem;
}

.nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.6rem;
}

.nav__link {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(91, 156, 246, 0.45);
    position: relative;
    transition: color 0.25s ease;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 100%;
    right: 0;
    height: 1px;
    background: rgba(91, 156, 246, 0.5);
    transition: left 0.25s ease;
}

.nav__link:hover {
    color: rgba(91, 156, 246, 0.9);
}

.nav__link:hover::after,
.nav__link--active::after {
    left: 0;
}

.nav__link--active {
    color: rgba(91, 156, 246, 0.9);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 101;
    align-self: flex-end;
    margin: 0.4rem 0.4rem 0 0;
}

.nav__toggle-bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background: rgba(91, 156, 246, 0.65);
    border-radius: 1px;
    transition: transform 0.28s ease, opacity 0.28s ease, background 0.2s ease;
    transform-origin: center;
}

.nav__toggle:hover .nav__toggle-bar {
    background: rgba(91, 156, 246, 1);
}

.nav--open .nav__toggle-bar:nth-child(1) { transform: translateY(6.5px)  rotate(45deg); }
.nav--open .nav__toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav--open .nav__toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.hero-wrapper {
    height: 700vh;
}

.hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #07101d;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(
        ellipse 80% 60% at 50% 50%,
        rgba(30, 70, 140, 0.12) 0%,
        transparent 70%
    );
}

.hero__content {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    user-select: none;
    will-change: opacity, transform;
}

.hero__reveal {
    position: absolute;
    width: 100%;
    max-width: 1100px;
    padding: 0 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    opacity: 0;
    transform: scale(0.96) translateY(30px);
    will-change: opacity, transform;
    pointer-events: none;
}

.hero__reveal2 {
    position: absolute;
    width: 100%;
    max-width: 1100px;
    padding: 0 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    opacity: 0;
    transform: scale(0.96) translateY(30px);
    will-change: opacity, transform;
    pointer-events: none;
}

.hero__reveal2b {
    position: absolute;
    width: 100%;
    max-width: 1100px;
    padding: 0 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    opacity: 0;
    transform: scale(0.96) translateY(30px);
    will-change: opacity, transform;
    pointer-events: none;
}

.hero__reveal3 {
    position: absolute;
    width: 100%;
    max-width: 760px;
    padding: 0 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    opacity: 0;
    transform: scale(0.96) translateY(30px);
    will-change: opacity, transform;
    pointer-events: none;
}

.raised-text {
    font-family: 'Outfit', 'Arial Black', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 11vw, 7rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #6aaeff;
    margin: 0;

    text-shadow:
        0  1px 0 #4f8be8,
        0  2px 0 #2e65c4,
        0  3px 0 #1a4da8,
        0  4px 0 #0d3a8c,
        0  5px 12px rgba(0, 0, 0, 0.9);
}

.divider {
    width: clamp(160px, 35vw, 420px);
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(91, 156, 246, 0.45) 25%,
        rgba(91, 156, 246, 0.45) 75%,
        transparent
    );
}

.subline {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: rgba(91, 156, 246, 0.55);
}

.main-content {
    background: #07101d;
    min-height: 10vh;
}

.section__title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5b9cf6;
    text-align: center;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    white-space: nowrap;
}

.section__title::before,
.section__title::after {
    content: '';
    flex: 1;
    height: 1px;
    min-width: 2rem;
}

.section__title::before {
    background: linear-gradient(to left, rgba(91, 156, 246, 0.45), transparent);
}

.section__title::after {
    background: linear-gradient(to right, rgba(91, 156, 246, 0.45), transparent);
}

.portfolio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    width: 100%;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
}

.portfolio__item {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(91, 156, 246, 0.12);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.portfolio__ribbon {
    position: absolute;
    top: 24px;
    right: -38px;
    width: 140px;
    background: linear-gradient(135deg, #ff2d2d 0%, #ff7300 100%);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.6rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-align: center;
    padding: 0.3rem 0;
    transform: rotate(45deg);
    box-shadow: 0 2px 14px rgba(255, 80, 0, 0.55), inset 0 1px 0 rgba(255,255,255,0.2);
    z-index: 2;
    pointer-events: none;
}

.portfolio__item:hover {
    border-color: rgba(91, 156, 246, 0.38);
    transform: translateY(-3px);
}

.portfolio__thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    position: relative;
}

.portfolio__thumb--1 { background: linear-gradient(135deg, rgba(20, 55, 120, 0.6) 0%, rgba(91, 156, 246, 0.12) 100%); }
.portfolio__thumb--2 { background: linear-gradient(135deg, rgba(15, 80, 90, 0.6) 0%, rgba(60, 180, 200, 0.1) 100%); }
.portfolio__thumb--3 { background: linear-gradient(135deg, rgba(80, 20, 100, 0.5) 0%, rgba(91, 156, 246, 0.1) 100%); }
.portfolio__thumb--4 { background: linear-gradient(135deg, rgba(10, 40, 100, 0.7) 0%, rgba(120, 170, 255, 0.12) 100%); }
.portfolio__thumb--5 { background: linear-gradient(135deg, rgba(90, 40, 10, 0.5) 0%, rgba(91, 156, 246, 0.08) 100%); }
.portfolio__thumb--6 { background: linear-gradient(135deg, rgba(10, 70, 60, 0.6) 0%, rgba(91, 200, 180, 0.1) 100%); }

.portfolio__info {
    padding: 0.9rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.portfolio__tag {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(91, 156, 246, 0.38);
}

.portfolio__name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8ab8fa;
    margin: 0;
}

.philosophy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    width: 100%;
}

.philosophy__text {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(91, 156, 246, 0.12);
    border-radius: 4px;
    padding: 2rem 2.2rem;
    box-sizing: border-box;
}

.philosophy__text p {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(200, 216, 240, 0.55);
    margin: 0;
    text-align: justify;
    letter-spacing: 0.02em;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.contact__sub {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(91, 156, 246, 0.4);
    text-align: center;
    margin: -1.2rem 0 1rem;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    width: 100%;
}

.contact__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
}

.contact__field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.contact__label {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(91, 156, 246, 0.6);
}

.contact__input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(91, 156, 246, 0.14);
    border-radius: 3px;
    padding: 0.82rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: #c8d8f0;
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease;
    box-sizing: border-box;
    width: 100%;
}

.contact__input::placeholder {
    color: rgba(200, 216, 240, 0.18);
}

.contact__input:focus {
    border-color: rgba(91, 156, 246, 0.42);
    background: rgba(91, 156, 246, 0.04);
}

.contact__textarea {
    resize: vertical;
    min-height: 120px;
}

.contact__check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.contact__check-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.contact__check-box {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    border: 1px solid rgba(91, 156, 246, 0.25);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, background 0.2s ease;
    position: relative;
}

.contact__check-input:checked + .contact__check-box {
    border-color: rgba(91, 156, 246, 0.6);
    background: rgba(91, 156, 246, 0.12);
}

.contact__check-input:checked + .contact__check-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 1.5px solid rgba(91, 156, 246, 0.9);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.contact__check-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.78rem;
    line-height: 1.6;
    color: rgba(200, 216, 240, 0.4);
}

.contact__check-link {
    color: rgba(91, 156, 246, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact__check-link:hover {
    color: rgba(91, 156, 246, 0.9);
}

.contact__submit {
    align-self: flex-end;
    background: transparent;
    border: 1px solid rgba(91, 156, 246, 0.6);
    border-radius: 3px;
    padding: 0.78rem 2.4rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(91, 156, 246, 0.7);
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.contact__submit:hover {
    border-color: rgba(91, 156, 246, 0.65);
    color: rgba(91, 156, 246, 1);
    background: rgba(91, 156, 246, 0.06);
}

.contact__form--fade-out {
    opacity: 0;
    transform: translateY(-12px);
    filter: blur(6px);
    transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
}

.contact__success {
    display: none;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: rgba(91, 156, 246, 0.6);
    padding: 1rem 0 0;
    opacity: 0;
    transform: translateY(10px);
    filter: blur(4px);
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}

.contact__success--visible {
    display: block;
    animation: successFadeIn 0.5s ease forwards;
}

@keyframes successFadeIn {
    from { opacity: 0; transform: translateY(10px); filter: blur(4px); }
    to   { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}

.legal {
    position: fixed;
    bottom: 1.8rem;
    left: 0;
    right: 0;
    margin: 0;
    text-align: center;
    z-index: 50;
    pointer-events: auto;
    opacity: 0;
}

.legal__link {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(91, 156, 246, 0.28);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal__link:hover {
    color: rgba(91, 156, 246, 0.65);
}

.legal__sep {
    font-size: 0.6rem;
    color: rgba(91, 156, 246, 0.18);
    margin: 0 0.6rem;
}

.panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(480px, 92vw);
    height: 100vh;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.panel--open {
    transform: translateX(0);
    pointer-events: auto;
}

.panel__inner {
    height: 100%;
    background: #0b1a2e;
    border-left: 1px solid rgba(91, 156, 246, 0.12);
    overflow-y: auto;
    padding: 3.5rem 2.8rem 3rem;
    box-sizing: border-box;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(91, 156, 246, 0.25) transparent;
}

.panel__inner::-webkit-scrollbar {
    width: 4px;
}

.panel__inner::-webkit-scrollbar-track {
    background: transparent;
}

.panel__inner::-webkit-scrollbar-thumb {
    background: rgba(91, 156, 246, 0.25);
    border-radius: 2px;
}

.panel__inner::-webkit-scrollbar-thumb:hover {
    background: rgba(91, 156, 246, 0.5);
}

.panel__close {
    position: absolute;
    top: 1.4rem;
    right: 1.6rem;
    background: none;
    border: none;
    color: rgba(91, 156, 246, 0.45);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    transition: color 0.2s ease;
}

.panel__close:hover {
    color: rgba(91, 156, 246, 0.9);
}

.panel__body h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6aaeff;
    margin: 0 0 2rem;
}

.panel__body h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(91, 156, 246, 0.55);
    margin: 1.8rem 0 0.5rem;
}

.panel__body p {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.88rem;
    line-height: 1.75;
    color: rgba(200, 216, 240, 0.5);
    margin: 0;
}

.panel__backdrop {
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background 0.35s ease;
}

.panel__backdrop--visible {
    background: rgba(0, 0, 0, 0.45);
    pointer-events: auto;
}

.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(91, 156, 246, 0.6);
    opacity: 0.6;
    animation: scrollBounce 2s ease-in-out infinite;
    will-change: opacity, transform;
    pointer-events: none;
}

.scroll-hint__arrow {
    width: 28px;
    height: 28px;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0);   }
    50%       { transform: translateX(-50%) translateY(8px); }
}

.cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    height: 320px;
    width: 100%;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(91, 156, 246, 0.12);
    border-radius: 4px;
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    flex: 1 1 0;
    width: 0;
    max-width: 100%;
    height: 320px;
    overflow: hidden;
    box-sizing: border-box;
    cursor: pointer;
    margin: 0 0.75rem;
    transition:
        max-width    0.45s cubic-bezier(0.22, 1, 0.36, 1),
        margin       0.45s cubic-bezier(0.22, 1, 0.36, 1),
        padding      0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s  ease,
        border-width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity      0.3s  ease,
        background   0.3s  ease;
}

.cards--expanded .card:not(.card--active) {
    max-width: 0;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    border-left-width: 0;
    border-right-width: 0;
    opacity: 0;
    pointer-events: none;
}

.card--active {
    cursor: default;
}

.card:not(.card--active):hover {
    background: rgba(91, 156, 246, 0.06);
    border-color: rgba(91, 156, 246, 0.3);
}

.card__title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8ab8fa;
    margin: 0;
    text-align: center;
}

.card__text {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(200, 216, 240, 0.6);
    margin: 0;
    text-align: center;
    flex: 1;
}

.card__btn {
    margin-top: auto;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(91, 156, 246, 0.7);
    background: transparent;
    border: 1px solid rgba(91, 156, 246, 0.25);
    border-radius: 3px;
    padding: 0.55rem 1rem;
    cursor: pointer;
    width: 100%;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card__btn:hover {
    color: #8ab8fa;
    border-color: rgba(91, 156, 246, 0.55);
    background: rgba(91, 156, 246, 0.07);
}

.cards__detail {
    flex: 2 2 0;
    width: 0;
    max-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 4px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 320px;
    opacity: 0;
    transition:
        max-width    0.45s cubic-bezier(0.22, 1, 0.36, 1),
        padding      0.45s cubic-bezier(0.22, 1, 0.36, 1),
        margin-left  0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.45s ease,
        opacity      0.35s ease 0.2s;
}

.cards--expanded .cards__detail {
    max-width: 100%;
    padding: 2rem 1.8rem;
    margin-left: 0.75rem;
    border-color: rgba(91, 156, 246, 0.12);
    opacity: 1;
}

.cards__detail-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(91, 156, 246, 0.35);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.cards__detail-close:hover {
    color: rgba(91, 156, 246, 0.8);
}

.cards__detail-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8ab8fa;
    margin: 0 0 0.5rem;
}

.cards__detail-desc {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(200, 216, 240, 0.65);
    margin: 0;
}

.cards__detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cards__detail-item {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: rgba(200, 216, 240, 0.65);
    padding-left: 1rem;
    position: relative;
}

.cards__detail-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(200, 216, 240, 0.65);
}

@media (max-width: 900px) {
    .portfolio__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {

    
    .hero-wrapper {
        height: auto;
    }

    .hero {
        position: relative;
        top: auto;
        height: auto;
        width: 100%;
        overflow: visible;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .hero__overlay {
        display: none;
    }

    .scroll-hint {
        display: none;
    }

    .hero__content {
        position: relative;
        width: 100%;
        box-sizing: border-box;
        padding: 0 1.5rem;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .legal {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        opacity: 0;
        margin-top: 2.5rem;
        padding: 0 1.2rem 2.5rem;
        transition: opacity 0.6s ease;
    }

    .legal--visible {
        opacity: 1;
    }

    
    .nav {
        top: 0;
        left: auto;
        right: 0;
        transform: none;
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: none;
        align-items: flex-end;
        display: flex;
        flex-direction: column;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__list {
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        align-items: flex-end;
        gap: 1.4rem;
        padding: 1.5rem 1.8rem;
        background: rgba(7, 16, 29, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(91, 156, 246, 0.08);
        border-top: none;
        border-radius: 0 0 0 8px;
        min-width: 160px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .nav--open .nav__list {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav__link {
        font-size: 0.72rem;
        letter-spacing: 0.15em;
    }

    
    .raised-text {
        padding: 0 1rem;
        box-sizing: border-box;
        text-align: center;
        width: 100%;
        font-size: clamp(4rem, 19vw, 7rem);
    }

    
    .section__title {
        white-space: normal;
        font-size: clamp(1rem, 5vw, 1.6rem);
        gap: 0.7rem;
    }

    
    .hero__reveal,
    .hero__reveal2,
    .hero__reveal2b,
    .hero__reveal3 {
        position: relative;
        opacity: 1;
        transform: none;
        filter: none;
        pointer-events: auto;
        padding: 2.5rem 1.2rem 3rem;
        gap: 2rem;
        max-width: 100%;
        border-top: 1px solid rgba(91, 156, 246, 0.07);
        width: 100%;
        box-sizing: border-box;
    }

    
    .cards {
        flex-direction: column;
        height: auto !important;
        align-items: stretch;
        width: 100%;
    }

    .card {
        width:      100% !important;
        max-width:  100% !important;
        height:     auto !important;
        max-height: none !important;
        overflow:   visible !important;
        margin:     0 0 0.6rem 0 !important;
        transition:
            opacity      0.3s  ease,
            border-color 0.3s  ease;
    }

    
    .cards--expanded .card:not(.card--active) {
        max-width:           100% !important;
        max-height:          0    !important;
        margin-top:          0    !important;
        margin-bottom:       0    !important;
        padding-top:         0    !important;
        padding-bottom:      0    !important;
        border-top-width:    0    !important;
        border-bottom-width: 0    !important;
        opacity: 0;
        pointer-events: none;
    }

    
    .cards__detail {
        width:       100% !important;
        max-width:   100% !important;
        max-height:  0;
        overflow:    hidden;
        height:      auto !important;
        margin-left: 0 !important;
        transition:
            max-height   0.45s cubic-bezier(0.22, 1, 0.36, 1),
            padding      0.45s cubic-bezier(0.22, 1, 0.36, 1),
            border-color 0.45s ease,
            opacity      0.35s ease 0.2s;
    }

    .cards--expanded .cards__detail {
        max-width:    100% !important;
        max-height:   4000px;
        overflow:     visible;
        padding:      1.5rem 1.2rem !important;
        margin-left:  0 !important;
        border-color: rgba(91, 156, 246, 0.12);
        opacity: 1;
    }

    
    .portfolio__grid {
        grid-template-columns: 1fr;
    }

    
    .contact__row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact__submit {
        align-self: stretch;
        width: 100%;
        text-align: center;
    }

    
    .panel {
        width: 100vw;
    }

    .panel__inner {
        padding: 3rem 1.2rem 2rem;
    }
}

@media (max-width: 420px) {
    .nav__list {
        gap: 1rem;
        padding: 1.2rem 1.4rem;
    }
}

.cookie {
    position: fixed;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 300;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    background: #0b1a2e;
    border: 1px solid rgba(91, 156, 246, 0.18);
    border-radius: 6px;
    padding: 1rem 1.4rem;
    max-width: min(680px, calc(100vw - 2rem));
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie--hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
    pointer-events: none;
}

.cookie__text {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.78rem;
    line-height: 1.6;
    color: rgba(200, 216, 240, 0.55);
    margin: 0;
    flex: 1;
}

.cookie__link {
    color: rgba(91, 156, 246, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cookie__link:hover {
    color: rgba(91, 156, 246, 1);
}

.cookie__btn {
    flex-shrink: 0;
    background: transparent;
    border: 1px solid rgba(91, 156, 246, 0.4);
    border-radius: 3px;
    padding: 0.5rem 1.2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(91, 156, 246, 0.8);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cookie__btn:hover {
    border-color: rgba(91, 156, 246, 0.75);
    color: rgba(91, 156, 246, 1);
    background: rgba(91, 156, 246, 0.07);
}

@media (max-width: 680px) {
    .cookie {
        flex-direction: column;
        align-items: stretch;
        bottom: 1rem;
        gap: 0.8rem;
    }

    .cookie__btn {
        width: 100%;
        text-align: center;
    }
}
