/* ============================================
   YUKARI AJANS — Ana Stil Dosyası
   Modern, Minimalist, Sanatsal
   ============================================ */

/* ---------- Özel Font Tanımlaması ---------- */
@font-face {
    font-family: 'CustomHeaderFont';
    src: url('../assets/fonts/custom-font.otf') format('opentype');
    font-weight: 200 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CustomTitleFont';
    src: url('../assets/fonts/custom-font-header.otf') format('opentype');
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}

/* ---------- Başlık Fontu Tanımlaması ---------- */
h1, h2, h3, h4, h5, h6, .section__title, .gallery__item-title {
    font-family: 'CustomTitleFont', sans-serif;
}

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Renkler */
    --color-black: #000000;
    --color-white: #EFEFEF;
    --color-light-gray: #F5F5F5;
    --color-mid-gray: #888888;
    --color-dark-gray: #1A1A1A;
    --color-overlay: rgba(0, 0, 0, 0.6);
    --color-glass-bg: rgba(255, 255, 255, 0.72);
    --color-glass-border: rgba(255, 255, 255, 0.18);

    /* Liquid Glass (iPhone) */
    --liquid-glass-bg: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.08) 40%,
            rgba(200, 220, 255, 0.12) 60%,
            rgba(255, 255, 255, 0.1) 100%);
    --liquid-glass-border: linear-gradient(135deg,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0.15) 30%,
            rgba(180, 200, 255, 0.3) 60%,
            rgba(255, 255, 255, 0.4) 100%);
    --liquid-glass-shadow:
        0 4px 30px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);

    /* Tipografi */
    --font-primary: 'Arial Nova', Arial, 'Helvetica Neue', sans-serif;
    --font-weight-regular: 400;
    --font-weight-bold: 700;
    --line-height-body: 1.7;
    --line-height-heading: 1.1;
    --letter-spacing-heading: 0.12em;
    --letter-spacing-nav: 0.08em;

    /* Boşluklar */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 10rem;

    /* Sayfa sistemi */
    --page-padding: clamp(1.25rem, 4vw, 4.5rem);
    --content-width: 1480px;
    --section-space: clamp(6rem, 11vw, 11rem);
    --project-gap: clamp(3.5rem, 7vw, 8rem);
    --radius-small: 0.25rem;
    --radius-large: clamp(1rem, 2vw, 1.75rem);
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --transition-fast: 180ms var(--ease-out-quart);
    --transition-medium: 420ms var(--ease-out-expo);

    /* Header */
    --header-height: 79px;

    /* Animasyonlar */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
    --duration-fast: 0.25s;
    --duration-normal: 0.5s;
    --duration-slow: 0.8s;
    --duration-very-slow: 1.2s;

    /* Geçiş */
    --transition-base: all var(--duration-fast) var(--ease-out-quart);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'CustomHeaderFont', Arial, sans-serif;
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body);
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;
    overflow-x: clip;
}

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

ul,
ol {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.svg-definitions {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

.skip-link {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10000;
    padding: 0.75rem 1rem;
    color: var(--color-white);
    background: var(--color-black);
    border-radius: 0.25rem;
    transform: translateY(-150%);
    transition: transform var(--duration-fast) var(--ease-out-quart);
}

.skip-link:focus {
    transform: translateY(0);
}

:where(a, button, [tabindex]):focus-visible {
    outline: 3px solid #00b7c7;
    outline-offset: 4px;
}

main:focus {
    outline: none;
}



/* ---------- Liquid Glass Background (Separate Layer) ---------- */
.liquid-glass-bg {
    --header-glass-blur: 0px;
    --header-glass-shadow-alpha: 0;
    --header-glass-inner-shadow-alpha: 0;
    --header-glass-layer-opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    box-shadow: 0 0 35px 3px rgba(255, 255, 255, var(--header-glass-shadow-alpha));
    z-index: 998;
    pointer-events: none;
    transform: none;
}

/* Tint and inner shadow layer */
.liquid-glass-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    box-shadow: inset 0 0 4px -8px rgba(255, 255, 255, var(--header-glass-inner-shadow-alpha));
    background-color: rgba(255, 255, 255, 0);
    pointer-events: none;
}

/* Backdrop blur + distortion layer
   isolation: isolate, backdrop-filter sonucunu SVG filter'ın
   SourceGraphic'i olarak kullanılabilir hale getirir. */
.liquid-glass-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    -webkit-backdrop-filter: blur(var(--header-glass-blur));
    backdrop-filter: blur(var(--header-glass-blur));
    opacity: var(--header-glass-layer-opacity);
    isolation: isolate;
    pointer-events: none;
}

.liquid-glass-bg.is-distorted::after {
    -webkit-filter: url(#glass-distortion);
    filter: url(#glass-distortion);
}

/* ---------- Header Content (Stacking Context for Entire Content Blending) ---------- */
.header-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 999;
    pointer-events: auto;

    font-family: var(--font-primary);

    mix-blend-mode: difference;
    color: #ffffff;
}

.card-content {
    position: relative;
    z-index: auto;
    /* IMPORTANT: Do not establish stacking context! */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px 0 0;
}

/* Logo */
.header__logo {
    display: flex;
    align-items: center;
    position: relative;
    flex: 0 1 auto;
    height: 100%;
    min-width: 0;
    z-index: 1000;
    transform: translateX(10%);
    /* Stits above liquid-glass-bg */
}

.header__logo-img {
    height: 190px;
    /* %8.16 daha küçültüldü */
    width: auto;

    /* mask-image yerine filter kullanıyoruz çünkü SVG içinde base64 raster var
       ve bazı tarayıcılar (WebKit) bunu mask olarak kullanmayı engelliyor.
       Logoyu tamamen beyaza çevirmek için bu filtreyi kullanıyoruz: */
    filter: brightness(0) invert(1);

    pointer-events: none;
    /* Sadece X ekseninde hizalama, dikeyde flexbox ortalamasına bırakıldı */
}

/* Navigasyon */
.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    position: relative;
    z-index: 1000;
    transform: translateX(-5vw);
    /* Sadece X ekseninde sola kaydırma, dikeyde flexbox ortalamasına bırakıldı */
}

.header__menu-toggle {
    position: relative;
    z-index: 1000;
    flex: 0 0 auto;
}

.nav-link {
    position: relative;
    font-family: 'CustomHeaderFont', Arial, sans-serif;
    font-size: 1.265rem;
    /* Navigasyon bağlantıları yeniden düzenlendi. */
    font-weight: var(--font-weight-regular);
    /* Bir ton inceltildi (bold -> regular) */
    letter-spacing: var(--letter-spacing-nav);
    text-transform: capitalize;
    /* Sadece baş harfler büyük */
    color: #ffffff;
    /* Difference blend için beyaz */
    padding: var(--space-xs) 0;
    transition: color var(--duration-fast) var(--ease-out-quart);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: #ffffff;
    /* Difference blend için beyaz */
    transition: width var(--duration-normal) var(--ease-out-expo);
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

.nav-link:hover {
    color: #ffffff;
    opacity: 0.7;
}

/* Mobile Menu Toggle */
.header__menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.header__menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    /* Difference blend için beyaz */
    transition: var(--transition-base);
    transform-origin: center;
}

.header__menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.header__menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Bölümü ---------- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    height: 100dvh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-black);
    z-index: 0;
}

/* Background Video */
.hero__video-bg {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    padding-top: 0 !important;
    z-index: 0;
    background-color: transparent !important;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transition: opacity 1.2s ease-in-out;
}

.hero__video-bg.is-playing {
    opacity: 1;
}

.hero__video-bg .vjs-tech {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__video-bg .vjs-poster {
    background-size: cover;
    background-position: center;
}

.hero__video-bg .vjs-loading-spinner,
.hero__video-bg .vjs-control-bar,
.hero__video-bg .vjs-big-play-button,
.hero__video-bg .vjs-error-display {
    display: none !important;
}

/* Grain Texture Overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    pointer-events: none;
    z-index: 1;
}

.hero__content {
    position: relative;
    text-align: center;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    /* z-index: 2 kaldırıldı ki altındaki videoya blend mode etki edebilsin */
}

.hero__glass-knockout-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    /* Backdrop filters for the glass effect inside the letters */
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
    filter: url(#glass-distortion);
    -webkit-filter: url(#glass-distortion);

    /* İlgili alan sadece SVG'deki text harfleri kadar kırpılıyor (Maske) */
    mask: url(#hero-text-mask);
    -webkit-mask: url(#hero-text-mask);

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

.hero__glass-difference-layer {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    mix-blend-mode: difference;
    /* Videoyu ters renklere çeviren parlayan katman */
}

.hero__glass-difference-layer text,
#hero-text-mask text {
    font-size: clamp(1.25rem, 5vw, 6rem);
}

.hero__title {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__logo-img {
    width: clamp(280px, 45vw, 620px);
    height: auto;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: heroLogoIn var(--duration-very-slow) var(--ease-out-expo) 0.6s forwards;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.08));
}

@keyframes heroLogoIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Scroll İndikatörü */
.hero__scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0;
    animation: scrollIndicatorIn var(--duration-slow) var(--ease-out-expo) 1.5s forwards;
}

@keyframes scrollIndicatorIn {
    to {
        opacity: 1;
    }
}

.hero__scroll-indicator span {
    font-size: 0.65rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-mid-gray);
    writing-mode: vertical-rl;
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--color-black), transparent);
    animation: scrollLinePulse 2s var(--ease-in-out) infinite;
}

@keyframes scrollLinePulse {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }
}

/* ---------- Content Reveal Wrapper ---------- */
.content-reveal-wrapper {
    position: relative;
    z-index: 2;
    background-color: var(--color-white);
    border-radius: 0;
    margin-top: 0;
    box-shadow: none;
    overflow: hidden;
    will-change: auto;
    transform: none;
}

/* ---------- Responsive — Tablet ---------- */
@media (max-width: 1024px) {
    :root {
        --header-height: 64px;
    }

    .header {
        padding: 0 var(--space-md);
    }
}

/* ---------- Responsive — Mobil ---------- */
@media (max-width: 640px) {
    :root {
        --header-height: 56px;
    }

    body {
        cursor: auto;
    }

    button {
        cursor: pointer;
    }

    .header {
        padding: 0 var(--space-sm);
    }

    .header__menu-toggle {
        display: flex;
    }

    .header-content {
        mix-blend-mode: normal;
    }

    .header__menu-toggle span {
        background-color: #ffffff;
    }

    .header--scrolled .header__logo-img {
        filter: brightness(0) invert(var(--header-logo-invert, 0));
    }

    .header--scrolled .header__menu-toggle span {
        background-color: #111111;
    }

    .card-content {
        padding-right: 0.75rem;
    }

    .header__logo-img {
        height: 150px;
        max-width: calc(100vw - 72px);
    }

    .header__nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: transparent;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--duration-normal) var(--ease-out-expo),
            opacity var(--duration-normal) var(--ease-out-expo);
    }

    .header__nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .header__nav .nav-link {
        color: #111111;
        font-size: 1.5rem;
        letter-spacing: 0.12em;
    }

    .hero__glass-difference-layer text,
    #hero-text-mask text {
        font-size: clamp(1rem, 5vw, 1.35rem);
        letter-spacing: -0.04em;
    }

    .hero__title {
        font-size: clamp(3rem, 18vw, 5rem);
    }

}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero__title,
    .hero__logo-img,
    .hero__scroll-indicator,
    .header {
        opacity: 1;
        transform: none;
    }

    .hero__video-bg {
        transition: none;
    }
}

@media (forced-colors: active) {
    .header-content {
        mix-blend-mode: normal;
    }

    .liquid-glass-bg {
        background: Canvas;
        border-bottom: 1px solid CanvasText;
    }

    .header__logo-img {
        filter: none;
    }
}

/* ---------- Selection ---------- */
::selection {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-white);
}

::-webkit-scrollbar-thumb {
    background: var(--color-mid-gray);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-dark-gray);
}

/* ---------- Nav linkler — liquid glass içindeki görünürlük ---------- */
.nav-link {
    position: relative;
    z-index: 2;
}
/* ============================================
   ANA SAYFA — Seçili İşler ve İçerik Sistemi
   ============================================ */
.page-home,
.page-work,
.page-project {
    font-family: 'CustomHeaderFont', Arial, sans-serif;
    background: #f5f4f0;
    color: #161616;
}

.page-home .content-reveal-wrapper {
    background: #f5f4f0;
}

.section-kicker {
    margin: 0 0 1rem;
    color: #6d6b66;
    font-size: 0.72rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.featured-work {
    width: min(100%, 1800px);
    margin-inline: auto;
    padding: clamp(4.2rem, 7.5vw, 6.2rem) var(--page-padding) var(--section-space); /* Üst boşluk %5 küçültüldü ve alt boşlukla eşitlendi */
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.featured-work__header,
.featured-work__grid,
.featured-work__all {
    width: 100%;
    margin-inline: auto;
}

.featured-work__header {
    margin-bottom: clamp(4.2rem, 7.5vw, 6.2rem); /* Üst alanla milimetrik olarak birebir eşitlendi */
}

.featured-work__title {
    max-width: 15ch;
    margin: 0;
    transform: none; /* Metni yukarı iten -15% kaydırma silindi, tam orta ortalandı */
    font-family: 'CustomHeaderFont', Arial, sans-serif;
    font-size: clamp(1.875rem, 2.8vw, 3.25rem);
    font-weight: var(--font-weight-light);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.featured-work__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    column-gap: clamp(1rem, 1.8vw, 1.875rem);
    row-gap: clamp(3.5rem, 7vw, 6.25rem);
}

.project-tile {
    min-width: 0;
}

.project-tile__link {
    display: block;
    min-height: 44px;
    color: inherit;
}

.project-tile__link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}

.project-tile__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #deddd8;
}

.project-tile__media--placeholder {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 58%),
        #deddd8;
}

.project-tile__media img,
.project-tile__media video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-tile__footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.75rem;
}

.project-tile__title {
    max-width: calc(100% - 2rem);
    margin: 0;
    font-family: 'CustomHeaderFont', Arial, sans-serif;
    font-size: clamp(1.01rem, 1.2vw, 1.22rem); /* %15 büyültüldü: 0.875rem -> 1.01rem, 1.0625rem -> 1.22rem */
    font-weight: var(--font-weight-regular);
    line-height: 1.25;
    letter-spacing: -0.015em;
    transition: opacity var(--transition-fast);
}

.project-tile__arrow {
    flex: 0 0 auto;
    font-size: 1.04rem; /* %15 ölçeklendi: 0.9rem -> 1.04rem */
    font-weight: var(--font-weight-regular);
    line-height: 1;
    transition: transform var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
    .project-tile__link:hover .project-tile__media img,
    .project-tile__link:hover .project-tile__media video {
        transform: scale(1.015);
    }

    .project-tile__link:hover .project-tile__title {
        opacity: 0.62;
    }

    .project-tile__link:hover .project-tile__arrow {
        transform: translate(3px, -3px);
    }
}

.project-tile__link:focus-visible .project-tile__media img,
.project-tile__link:focus-visible .project-tile__media video {
    transform: scale(1.015);
}

.project-tile__link:focus-visible .project-tile__title {
    opacity: 0.62;
}

.project-tile__link:focus-visible .project-tile__arrow {
    transform: translate(3px, -3px);
}

.featured-work__all {
    display: flex;
    justify-content: center;
    margin-top: clamp(3rem, 6vw, 6rem);
}

.featured-work__all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    color: #1d1d1b;
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    font-weight: var(--font-weight-regular);
    line-height: 1.2;
}

.featured-work__all-link span:last-child {
    transition: transform var(--transition-fast);
}

.featured-work__all-link:hover span:first-child,
.featured-work__all-link:focus-visible span:first-child {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.featured-work__all-link:hover span:last-child,
.featured-work__all-link:focus-visible span:last-child {
    transform: translate(3px, -3px);
}

.project-media {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-small);
    background-color: #deddd8;
    isolation: isolate;
}

.project-media::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.42) 50%, transparent 65%),
        linear-gradient(160deg, #d7d5cf 0%, #eeede9 100%);
    transform: scale(1.02);
    transition: transform var(--transition-medium);
}

.project-media--landscape {
    aspect-ratio: 16 / 9;
}

.project-media--portrait {
    aspect-ratio: 4 / 5;
}

.project-media--square {
    aspect-ratio: 1 / 1;
}

.project-media--website {
    aspect-ratio: 16 / 10;
}

.project-media__placeholder {
    padding: 1rem;
    color: #6f6d67;
    font-size: clamp(0.72rem, 1vw, 0.82rem);
    font-weight: var(--font-weight-regular);
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
}

.project-media__image,
.project-media__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Editorial Contact Section (Two-Column Architecture) ---------- */
.contact {
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-height: clamp(360px, 58svh, 540px);
    padding: clamp(2.8rem, 5vw, 4.5rem) 0;
    color: #171715;
    background: #f5f4f0;
    scroll-margin-top: var(--header-height);
    display: flex;
    align-items: center;
}

.contact__container {
    position: relative;
    z-index: 1;
    width: min(100%, 1800px);
    margin-inline: auto;
    padding-inline: var(--page-padding);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(2.5rem, 4.5vw, 5rem);
}

.contact__col-left {
    width: 52%;
    max-width: 48rem;
}

.contact__col-right {
    width: 42%;
    max-width: 38rem;
    transform: translateY(0.5rem); /* Optik ağırlık dengelemek için 8px indirme */
}

/* --- Left Column Typography --- */
.contact__heading-primary {
    margin: 0 0 clamp(1rem, 2vw, 1.35rem);
    font-family: 'CustomHeaderFont', var(--font-primary), sans-serif;
    font-size: clamp(2rem, 3.5vw, 4.2rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #171715;
}

.contact__subtext {
    margin: 0 0 clamp(1.35rem, 2.5vw, 1.85rem);
    max-width: 34rem;
    font-size: clamp(1.05rem, 1.25vw, 1.25rem);
    font-weight: 400;
    line-height: 1.5;
    color: #4d4a46;
}

.contact__link-work {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: max-content;
    gap: 0.45rem;
    min-height: 32px;
    font-size: clamp(1.05rem, 1.2vw, 1.2rem);
    font-weight: 400;
    color: #171715;
    text-decoration: none;
    border-bottom: 1px solid rgba(23, 23, 21, 0.3);
    padding-bottom: 0.25rem;
    transition: border-color var(--transition-fast), opacity var(--transition-fast);
    outline: none !important;
    box-shadow: none !important;
}

.contact__link-arrow {
    display: inline-block;
    transition: transform var(--transition-fast);
}

.contact__link-work:hover,
.contact__link-work:focus-visible {
    border-color: #171715;
    opacity: 0.9;
    outline: none !important;
    box-shadow: none !important;
}

.contact__link-work:hover .contact__link-arrow,
.contact__link-work:focus-visible .contact__link-arrow {
    transform: translate(3px, -3px);
}

/* --- Right Column Typography --- */
.contact__heading-secondary {
    margin: 0 0 clamp(1.2rem, 2.2vw, 1.6rem);
    font-family: 'CustomHeaderFont', var(--font-primary), sans-serif;
    font-size: clamp(1.6rem, 2.5vw, 3rem);
    font-weight: 300;
    line-height: 1.1;
    color: #171715;
}

.contact__mail-wrap {
    margin: 0;
    font-size: clamp(1.15rem, 1.4vw, 1.35rem);
    line-height: 1.5;
    border: none;
}

.contact__mail-link {
    color: #4d4a46;
    text-decoration: none;
    transition: color var(--transition-fast);
    display: inline;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.contact__mail-address {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: color var(--transition-fast), text-decoration-thickness var(--transition-fast);
}

.contact__mail-arrow {
    display: inline-block;
    transition: transform var(--transition-fast);
}

.contact__mail-link:hover,
.contact__mail-link:focus-visible,
.contact__mail-link:focus {
    color: #171715;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.contact__mail-link:hover .contact__mail-address,
.contact__mail-link:focus-visible .contact__mail-address {
    color: #171715;
    text-decoration-thickness: 2px;
}

.contact__mail-link:hover .contact__mail-arrow,
.contact__mail-link:focus-visible .contact__mail-arrow {
    transform: translate(3px, -3px);
}

/* --- Minimalist Reveal Motion --- */
.motion-ready .contact[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.motion-ready .contact[data-reveal].is-visible,
.motion-ready .contact.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .motion-ready .contact[data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .contact__link-work:hover .contact__link-arrow,
    .contact__mail-link:hover .contact__mail-arrow {
        transform: none;
    }
}

/* ---------- Footer ---------- */
.footer {
    position: relative;
    z-index: 2;
    padding: clamp(2.5rem, 4vw, 4rem) var(--page-padding) 1.25rem;
    color: #171715;
    background: #f5f4f0;
    border-top: 1px solid rgba(17, 17, 17, .14);
}

.footer__main,
.footer__bottom {
    width: min(calc(100vw - (2 * var(--page-padding))), var(--content-width));
    max-width: none;
    margin-inline: auto;
}

.footer__main {
    display: grid;
    grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
    align-items: flex-start;
    gap: clamp(3rem, 7vw, 8rem);
}

.footer__contact,
.footer__socials,
.footer__nav {
    display: grid;
    align-content: start;
    min-width: 0;
    gap: 0;
    font-style: normal;
}

.footer__contact {
    gap: 0.5rem;
}

.footer__link-area {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: start;
    min-width: 0;
    gap: clamp(2rem, 4vw, 4rem);
}

.footer__socials {
    display: flex;
    flex-wrap: wrap;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    gap: 0 clamp(1.25rem, 2vw, 2rem);
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    gap: 0.7rem clamp(1.25rem, 2vw, 2rem);
}

.footer a,
.footer__static,
.footer__blog,
.footer__policy-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-height: 28px;
    color: #77746e;
    font-size: 0.95rem;
    font-weight: var(--font-weight-regular);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.footer a,
.footer__static,
.footer__blog,
.footer__policy-link {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .22em;
}

.footer a {
    transition: color 200ms ease;
}

.footer a:hover,
.footer a:focus-visible {
    color: #171715;
}

.footer a:focus-visible {
    outline: 1px solid #171715;
    outline-offset: 3px;
}

.footer__static,
.footer__policy-link {
    cursor: default;
}

.footer__blog {
    color: #85827c;
    text-decoration: none;
    cursor: default;
}

.footer__email {
    color: #77746e;
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    line-height: 1.25;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: clamp(2.5rem, 4vw, 3.5rem);
    padding-top: 1.25rem;
}

.footer__copyright {
    color: #171715;
    font-size: 0.8rem;
    font-weight: var(--font-weight-regular);
    letter-spacing: 0.02em;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .footer__main {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .footer__link-area {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        display: grid;
        margin-top: 2rem;
        gap: clamp(1.5rem, 6vw, 3rem);
    }

    .footer__nav {
        display: grid;
        justify-self: stretch;
    }

    .footer__socials {
        display: grid;
        justify-self: stretch;
        gap: 0;
    }

    .footer a,
    .footer__static,
    .footer__blog,
    .footer__policy-link {
        min-height: 32px;
    }

}

@media (max-width: 640px) {
    .footer {
        padding-top: 1.5rem;
        padding-bottom: 0.75rem;
    }

    .footer__contact {
        gap: 0.5rem;
    }

    .footer__link-area {
        margin-top: 2rem;
        gap: 1.5rem;
    }

    .footer__bottom {
        margin-top: 2rem;
        padding-top: 0.875rem;
    }
}

.motion-ready [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 520ms var(--ease-out-expo), transform 520ms var(--ease-out-expo);
}

.motion-ready [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.motion-ready .project-tile[data-reveal] {
    transform: translateY(12px);
    transition-duration: 420ms;
}

.motion-ready .project-tile[data-reveal].is-visible {
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .featured-work__header {
        grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.75fr);
    }

    .contact {
        min-height: auto !important;
        padding: clamp(2.5rem, 5vw, 3.5rem) 0 4.25rem !important; /* Net ~68px alt boşluk (64-72px hedefi) */
    }

    .contact__container {
        flex-direction: column;
        gap: 3.25rem !important; /* 52px (48-56px dengeli hedef) */
    }

    .contact__col-left,
    .contact__col-right {
        width: 100%;
        max-width: none;
        transform: none !important; /* Masaüstü 8px optik kaydırmasını iptal et */
    }

}

@media (max-width: 820px) {
    :root {
        --header-height: 64px;
        --page-padding: clamp(1.1rem, 4.5vw, 2rem);
        --section-space: clamp(4.5rem, 16vw, 7rem);
        --project-gap: clamp(3.75rem, 14vw, 6rem);
    }

    .hero {
        position: fixed;
        top: 0;
        left: 0;
    }

    .content-reveal-wrapper {
        margin-top: 100vh;
        margin-top: 100dvh;
        box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.09);
        will-change: transform;
        transform: translateZ(0);
    }

    .header-content {
        mix-blend-mode: normal;
    }

    .card-content {
        padding-right: 0.75rem;
    }

    .header__logo-img {
        height: 160px;
        max-width: calc(100vw - 76px);
        filter: brightness(0) invert(var(--header-logo-invert, 1));
    }

    .header__menu-toggle {
        display: flex;
        background: transparent;
    }

    .header__menu-toggle span {
        background-color: #ffffff;
    }

    .header--scrolled .header__logo-img {
        filter: brightness(0) invert(var(--header-logo-invert, 0));
    }

    .header--scrolled .header__menu-toggle {
        background: transparent;
    }

    .header--scrolled .header__menu-toggle span {
        background-color: #111111;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 999;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: calc(var(--header-height) + 2rem) 2rem 2rem;
        overflow: hidden;
        background: transparent;
        transform: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 420ms ease-out, visibility 0s linear 420ms;
    }

    /* MenÃ¼ aÃ§Ä±kken header'Ä±n kendi cam katmanÄ± tam ekrana yayÄ±lÄ±r. */
    body.menu-open .liquid-glass-bg {
        --header-glass-blur: 13px !important;
        --header-glass-shadow-alpha: 0.3 !important;
        --header-glass-inner-shadow-alpha: 0.7 !important;
        --header-glass-layer-opacity: 1 !important;
        height: 100vh;
        height: 100dvh;
        min-height: 100%;
        opacity: 1;
        visibility: visible;
        transform: translateY(0) !important;
    }

    body.menu-open .liquid-glass-bg::after {
        filter: url(#glass-distortion);
        -webkit-filter: url(#glass-distortion);
    }

    /* Tek bir difference grubu, metinleri ve logoyu gerÃ§ek sayfa zeminine gÃ¶re tersler. */
    body.menu-open .header-content {
        mix-blend-mode: difference;
        color: #ffffff;
    }

    body.menu-open .header__logo-img {
        filter: brightness(0) invert(1);
    }

    body.menu-open .header__menu-toggle span {
        background-color: #ffffff;
    }

    body.menu-open .hero__content {
        opacity: 0;
    }

    .header__nav.is-open {
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 420ms ease-out, visibility 0s linear 0s;
    }

    .header__nav .nav-link {
        position: relative;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        min-height: 48.4px;
        padding: 0.35rem 0.75rem;
        color: #ffffff;
        font-size: clamp(1.76rem, 7.7vw, 2.42rem);
        letter-spacing: -0.02em;
    }

    .contact {
        min-height: auto !important;
        padding-top: 2.75rem;
        padding-bottom: 4.25rem !important; /* 68px: 64-72px alt boşluk */
    }

    .contact__container {
        flex-direction: column;
        gap: 3.25rem !important; /* 52px: 48px-56px dengeli blok aralığı */
    }

    .contact__col-left,
    .contact__col-right {
        transform: none !important;
    }

    .contact__heading-primary {
        margin-bottom: 0.75rem !important;
    }

    .contact__subtext {
        margin-bottom: 1.25rem !important;
        color: #4d4a46 !important;
    }

    .contact__heading-secondary {
        margin-bottom: 1.5rem !important; /* 24px sağ başlık -> e-posta boşluğu */
    }

    .contact__link-work,
    .contact__mail-link {
        min-height: 44px;
        outline: none !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
    }

}

@media (max-width: 767px) {
    .contact {
        min-height: auto !important;
        padding-top: 2.5rem;
        padding-bottom: 4.25rem !important; /* 68px net alt boşluk (64-72px aralığı) */
    }

    .contact__container {
        gap: 3.25rem !important; /* 52px (48-56px aralığı) */
    }

    .contact__col-left,
    .contact__col-right {
        transform: none !important;
    }

    .contact__heading-primary {
        font-size: clamp(1.85rem, 8vw, 2.5rem);
        margin-bottom: 0.75rem !important;
    }

    .contact__subtext {
        margin-bottom: 1.25rem !important; /* Başlık -> link arası 32px */
        color: #4d4a46 !important;
    }

    .contact__heading-secondary {
        font-size: clamp(1.5rem, 6.5vw, 2rem);
        margin-bottom: 1.5rem !important; /* 24px başlık -> e-posta aralığı */
    }

    .featured-work__title {
        font-size: clamp(1.75rem, 4vw, 1.875rem);
    }

    .featured-work__grid {
        grid-template-columns: 1fr;
        row-gap: clamp(3rem, 12vw, 4.5rem);
    }

    .featured-work__all {
        justify-content: flex-start;
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    @media (max-width: 820px) {
        body.menu-open .liquid-glass-bg::after {
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            filter: none;
            -webkit-filter: none;
        }

        body.menu-open .liquid-glass-bg::before {
            background: rgba(8, 12, 16, 0.38);
        }
    }
}

@media (max-width: 820px) and (prefers-reduced-transparency: reduce) {
    body.menu-open .liquid-glass-bg::after {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        filter: none;
        -webkit-filter: none;
    }

    body.menu-open .liquid-glass-bg::before {
        background: rgba(8, 12, 16, 0.88);
    }
}

@media (max-width: 820px) and (forced-colors: active) {
    .header__menu-toggle {
        border: 0;
        box-shadow: none;
        forced-color-adjust: auto;
    }

    .header__nav {
        background: Canvas;
    }

    .header__nav .nav-link,
    body.menu-open .header-content {
        color: ButtonText;
        mix-blend-mode: normal;
    }

    .header__menu-toggle span,
    .header--scrolled .header__menu-toggle span {
        background-color: ButtonText;
    }
}

@media (max-width: 430px) {
    :root {
        --header-height: 58px;
        --page-padding: 1rem;
    }

    .contact {
        min-height: auto !important;
        padding-top: 2.25rem;
        padding-bottom: 4.25rem !important; /* Net 68px alt boşluk (64-72px aralığı) */
    }

    .contact__container {
        gap: 3rem !important; /* 48px tam hedef aralığı (48-56px) */
    }

    .contact__col-left,
    .contact__col-right {
        transform: none !important;
    }

    .contact__heading-primary {
        margin-bottom: 0.75rem !important;
    }

    .contact__heading-secondary {
        margin-bottom: 1.5rem !important; /* 24px sağ başlık -> e-posta aralığı */
    }

    .contact__subtext {
        color: #4d4a46 !important;
        margin-bottom: 1.25rem !important; /* 32px başlık -> link net aralık */
    }

    .header__logo-img {
        height: 145px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .motion-ready [data-reveal],
    .motion-ready [data-reveal].is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .project-media::before,
    .project-tile__media img,
    .project-tile__media video,
    .project-tile__title,
    .project-tile__arrow,
    .featured-work__all-link span:last-child {
        transition: none;
    }

    .header__menu-toggle {
        transition: none;
    }

    .hero__glass-knockout-layer {
        filter: none;
        -webkit-filter: none;
    }
}

/* ---------- Page Transition ---------- */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    background-color: #ffffff;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.page-transition-overlay.is-active {
    opacity: 1;
    pointer-events: all;
}
