/* =========================
   FONTS
========================= */

@font-face {
    font-family: 'RalewayCustom';
    src: url('fonts/Raleway-v4020-ExtraLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'RalewayCustom';
    src: url('fonts/Raleway-v4020-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #fff;
    font-family: 'RalewayCustom', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}

/* =========================
   GLOBAL PADDING SYSTEM
========================= */

:root {
    --side-padding: 100px;
}

/* =========================
  ГЛАВНАЯ СТРАНИЦА
========================= */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.3s ease;
    z-index: 10;
}

.header a {
    font-weight: 500;
    color: white;
    text-decoration: none;
    border: 1px solid white;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 14px;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.header a:hover {
    background: white;
    color: black;
}

.nav-left a:last-child {
    margin-right: 0;
}

/* =========================
   SCENE / GALLERY
========================= */

.scene {
    position: fixed;
    inset: 0;
    height: 100vh;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
scene-wrapper {
    height: 170vh; /* ВАЖНО: это теперь таймлайн */
    position: relative;
}
scroll-stage {
    position: sticky;
    top: 0;
    height: 100vh;

    perspective: 1200px;
    overflow: hidden;
}

.scroll-spacer {
    height: calc(170vh - 100vh); /* регулирует длину скролла после сцены */
}

.gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    top: 0;
    transform-style: preserve-3d;
}

.card {
    width: 190px;
    height: 240px;
    border-radius: 32px;
    position: absolute;
    overflow: visible;
    will-change: transform;
    display: block;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    will-change: transform;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-inner {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;

    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.card:hover .card-inner {
    transform: translateY(-14px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* подпись внутри карточки */
.card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    background: rgba(255, 255, 255, 0.9);
    color: #000;

    font-size: 14px;
    font-weight: 500;
   
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 14px 10px 18px;

    transform: translateY(100%);
    transition: transform 0.25s ease;
}

/* при наведении выезжает внутрь карточки */
.card:hover .card-label {
    transform: translateY(0);
}


/* =========================
   HERO
========================= */

.hero {
    width: 100%;
    padding: 500px var(--side-padding) 0;
    position: relative;
    left: 0;
    margin-top: 0;
    margin-bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.hero h1 {
    font-weight: 200;
    font-size: 110px;
    line-height: 0.8;
    letter-spacing: 1.05px;
    color: white;
}

.indent {
    display: inline-block;
    margin-left: 200px;
}

/* =========================
   ALL WORKS BUTTON
========================= */

.all-works {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 10 var(--side-padding);
    margin-top: 150px;
    position: relative;
    pointer-events: none;

    width: 100%;
    padding-right: 63px;
    padding-top: 100px;
}

.all-works a {
    font-weight: 500;
    color: white;
    text-decoration: none;

    border: 1px solid white;
    border-radius: 999px;

    padding: 10px 22px;
    font-size: 14px;
    display: inline-block;

    transition: all 0.3s ease;
    pointer-events: auto;
}
.all-works a:hover {
    background: white;
    color: black;
}

/* =========================
   PROJECT TITLE
========================= */

.proj {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 150px var(--side-padding);
    position: relative;
    z-index: 2;
    margin-top: 430px;
    margin-bottom: 0;
    color: white;
    transition: transform 0.1s linear;
}

.proj h2 {
    font-weight: 200;
    font-size: 110px;
    margin-bottom: 0;
    letter-spacing: 1px;
    margin: 0;
}

.zig-image {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
}

.zig-image img {
    width: 100%;
    height: auto; /* можно менять */
    display: block;
}


/* =========================
   ABOUT SECTION
========================= */



.about {
    width: 100%;
    padding: 90px 100px;
    color: white;
    box-sizing: border-box;
}

.about-inner {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 120px;
}

/* заголовок */
.about-inner h2 {
    font-weight: 200;
    font-size: 64px;
    letter-spacing: 1px;
    margin: 0;
    flex-shrink: 0;
}

/* текст */
.about-inner p {
    font-weight: 200;
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.85;

    max-width: 600px;
    margin: 0;
}

/* =========================
   EXPERIENCE
========================= */

.experience {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 100px var(--side-padding);
    max-width: none;
}

.experience h2 {
    font-size: 64px;
    font-weight: 200;
    margin-bottom: 50px;
   letter-spacing: 1px;
}

.exp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 равные */
    gap: 40px;

    width: 100%;
}

.exp-item {
    width: 100%;
    height: 100%;
    flex: 1;
    position: relative;
    padding: 30px 30px 40px;

    background: transparent;
    
    border-bottom: 1px solid rgba(255,255,255,0.6);
    border-radius: 0 0 24px 24px;

    margin-bottom: 40px;

    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.exp-item h3 {
   font-weight: 500;
    font-size: 22px;
    margin-bottom: 12px;
}
.exp-item:hover {
    transform: translateY(-6px);
    border-bottom: 1px solid white;
}

.exp-item p {
    font-size: 18px;
    opacity: 0.75;
    line-height: 1.6;
}

.experience-inner {
    max-width: none;
    margin: 0 auto;
}

/* =========================
       ИНСТРУМЕНТЫ
========================= */

.tools {
    width: 100%;
    padding: 100px 100px;
    color: white;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tools h2 {
    font-weight: 200;
    font-size: 64px;
    margin-bottom: 70px;
    letter-spacing: 1px;
    text-align: center;
}

/* сетка иконок */
.tools-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px; /* больше воздуха между иконками */
    flex-wrap: wrap;
}

/* сами иконки */
.tools-grid img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    opacity: 0.9;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.tools-grid img:hover {
    transform: translateY(-6px) scale(1.05);
    opacity: 1;
}

.tools-desc {
    max-width: 700px;
    text-align: center;

    font-weight: 200;
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.85;

    margin-bottom: 60px;
}

/* =========================
       КОНТАКТЫ
========================= */

.contact {
    width: 100%;
    padding: 90px var(--side-padding);
}

/* ПЛАШКА */
.contact-card {
    width: 100%;
    background: #040404;
    border-radius: 32px;

    display: flex;
    justify-content: flex-start;
    align-items: flex-start;

    padding: 80px;

    gap: 60px;
}

.contact-photo img {
    width: 520px;
    height: 675px;
    object-fit: cover;
    border-radius: 24px;
}

.contact-text {
    max-width: 500px;
}

.contact h2 {
    font-size: 64px;
    font-weight: 200;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.contact p {
    font-weight: 200;
    font-size: 18px;
    opacity: 0.85;
    line-height: 1.6;
   
}
/* КОНТАКТНЫЕ ССЫЛКИ ВНУТРИ ТЕКСТА */

.contact-text a {
    color: white;
    text-decoration: none;
    position: relative;
    transition: 0.3s ease;
}

/* underline анимация */
.contact-text a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;

    width: 0%;
    height: 1px;
    background: white;

    transition: 0.3s ease;
}

.contact-text a:hover::after {
    width: 100%;
}

.contact-text a:hover {
    opacity: 1;
}

/* =========================
   одинаковый мелкий текст
========================= */
.text-body {
    font-family: 'RalewayCustom', sans-serif;
    font-weight: 200;
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.85;
}


/* =========================
   ПРОЕКТЫ МОУШН
========================= */

.motion-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;

    padding: 0 var(--side-padding);
}
.motion-item {
    display: block;
    text-decoration: none;

    height: 360px; /* ← ВОТ ТУТ РЕГУЛИРУЕШЬ ВЫСОТУ */
    border-radius: 32px;

    overflow: hidden;
}

/* ВНУТРЕННИЙ КОНТЕЙНЕР */
.motion-inner {
    position: relative;
    width: 100%;
    height: 100%; /* ← важно: наследует высоту от motion-item */

    overflow: hidden;
    border-radius: 32px;

    transition: transform 0.4s ease, box-shadow 0.4s ease;
}


.motion-item:hover .motion-inner {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.motion-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ПАНЕЛЬ (как в карточках) */
.motion-label {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;

    background: rgba(255, 255, 255, 0.9);
    color: #000;

    font-size: 14px;
    font-weight: 500;
   
    border-radius: 0 0 32px 32px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 14px 10px 18px;

    transform: translateY(100%);
    transition: transform 0.25s ease;

    z-index: 2;
}

/* ХОВЕР — как у тебя в карточках */
.motion-item:hover .motion-label {
    transform: translateY(0);
}

/* стрелки */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
}

.arrow.left {
    left: 40px;
}

.arrow.right {
    right: 40px;
}

/* =========================
       СДЕЛАНО МНОЙ
========================= */

.footer-note {
    width: 100%;
    text-align: center;

    padding: 80px 0 40px;

    font-size: 14px;
    font-weight: 200;

    opacity: 0.6;
    color: white;

    letter-spacing: 0.5px;
}

/* =========================
       ДРУГИЕ РАБОТЫ
========================= */

.grid {
    padding: 0 var(--side-padding);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

/* важно: ссылка становится контейнером */
.grid a {
    display: block;
    aspect-ratio: 1 / 1.414; /* A4 */
    overflow: hidden;
    border-radius: 16px;
}

/* картинка заполняет контейнер */
.grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.grid img:hover {
    transform: scale(1.03);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 18px;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}
/* =========================
   MODAL
========================= */

.modal {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.9);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 80px 20px;

    opacity: 0;
    pointer-events: none;

    transition: 0.3s ease;
    z-index: 100;
}

.modal-content {
    width: 85vw;
    height: 80vh;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    transform: translateY(-30px);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal img {
    border-radius: 16px;
    object-fit: contain;
    display: block;

    max-width: 100%;
    max-height: 100%;

    transition: transform 0.25s ease;
    transform: translateY(-25px);
}

/* =========================
     КОНКРЕТНО КАРТОЧКА
========================= */

.project {
    position: relative;
    aspect-ratio: 1 / 1.414; /* твой A4 стиль */
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
}
.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
}

.project::after {
    content: "↗";
    position: absolute;
    left: 12px;
    bottom: 12px;

    color: white;
    font-size: 18px;

    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;

    z-index: 2;
}

.project:hover::after {
    opacity: 1;
    transform: translateY(-2px);
}

.project::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 35%;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0) 100%
    );

    opacity: 0;
    transition: opacity 0.25s ease;

    z-index: 1;
    pointer-events: none;
}

.project:hover::before {
    opacity: 1;
}

.project-gallery {
    width: 100%;
    padding: 90px var(--side-padding) 120px;
    box-sizing: border-box;
}

/* =========================
  МАЛЕНЬКИЕ КАРТИНКИ ВНИЗУ
========================= */

.extra-images {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(150px);

    display: flex;
    justify-content: center;
    gap: 8px;

    z-index: 200;
}

.extra-images img {
    width: 60px;
    height: 85px;
    opacity: 0.7;
    object-fit: cover;

    border-radius: 8px;
    opacity: 0.65;

    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform-origin: center;
}

/* =========================
  experimental notation
========================= */

.notation {
    padding: 60px var(--side-padding);
    margin-bottom: 0;
}

.notation-inner {
    display: grid;
    grid-template-columns: 1fr 520px;

    gap: 24px;
    align-items: end; /* ключ: низ выравнивается */
    margin-bottom: 0;
}
.notation-left {
    display: flex;
    flex-direction: column;

    gap: 24px; /* совпадает с общим ритмом */
    height: 100%;
}
.notation-text {
    max-width: 600px;
    font-size: 16px;
    line-height: 1.6;
}
.notation-posters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 16px; /* чуть плотнее, чем основной ритм */
    margin-top: auto;
}

.notation-posters img {
    width: 100%;
    aspect-ratio: 1 / 1.414;
    object-fit: cover;

    border-radius: 14px;

    transition: transform 0.25s ease;
}

.notation-posters img:hover {
    transform: scale(1.05);
}

.notation-video {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

/* =========================
 кнопка звука
========================= */

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;

    border-radius: 12px;
    object-fit: cover;
}
/* контейнер кнопок */
.video-controls {
    position: absolute;
    left: 12px;
    bottom: 12px;

    display: flex;
    align-items: center;
    gap: 10px;

    background: rgba(0,0,0,0.35);
    padding: 8px 10px;
    border-radius: 999px;

    backdrop-filter: blur(6px);
}

/* кнопка */
.mute-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
}

.icon {
    width: 18px;
    height: 18px;
    display: block;
}

.hidden {
    display: none;
}

/* громкость */
.volume-slider {
    width: 80px;
    accent-color: white;
}

/* =========================
видео второе
========================= */
.notationani video {
    width: 100%;
    height: auto;
}

.notationani-bottom {
    padding: 20px var(--side-padding);
}

.notationani-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.notationani-inner .video-wrapper {
    max-width: 100%;
    width: 830px;
   
}

.notationani-textblock {
    max-width: 500px;
}

.notationani-textblock p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 16px;
}
/* =========================
   EXPERIMENTAL SCROLL SCENE
========================= */

/* секция */
.ncards-section {
    width: 100%;
}

/* заголовок */
.ncards-title {
    text-align: center;
    font-size: 80px;
    font-weight: 200;
    margin: 60px 0 40px 0;
}

/* контейнер карточек */
.ncards-cards {
    display: flex;
    width: 100%;
    gap: 20px;
    padding: 0 20px;
    box-sizing: border-box;

/* карточка */
.ncards-card {
    flex: 1;
    aspect-ratio: 1 / 1.414;
    overflow: hidden;
}

/* картинка */
.ncards-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
