/*
Theme Name: Ripon Theme
Text Domain: ripon
Theme URI: https://ripondigital.com
Author: Ahmet Tekeci
Author URI: https://tekeci.co
Description: Custom WordPress theme by Ripon Digital. Hand-crafted CSS architecture with utility-first approach.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Ripon Digital
License URI: https://ripondigital.com
*/


/* ---------- CSS Variables (Renk Sistemi) ---------- */

:root {
    /* Primary Colors */
    --primary: #0f172a;
    --primary-50: #f8fafc;
    --primary-100: #f1f5f9;
    --primary-200: #e2e8f0;
    --primary-300: #cbd5e1;
    --primary-400: #94a3b8;
    --primary-500: #64748b;
    --primary-600: #475569;
    --primary-700: #334155;
    --primary-800: #1e293b;
    --primary-900: #0f172a;

    /* Secondary Colors (Accent) */
    --secondary: #3b82f6;
    --secondary-50: #eff6ff;
    --secondary-100: #dbeafe;
    --secondary-200: #bfdbfe;
    --secondary-300: #93c5fd;
    --secondary-400: #60a5fa;
    --secondary-500: #3b82f6;
    --secondary-600: #2563eb;
    --secondary-700: #1d4ed8;
    --secondary-800: #1e40af;
    --secondary-900: #1e3a8a;

    /* Neutral Colors (Grayscale) */
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #9CA3AF;
    --text-inverse: #FFFFFF;

    /* Background Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F2F5FA;
    --bg-dark: #060720;
    --bg-overlay: rgba(6, 7, 32, 0.5);

    /* Border Colors */
    --border-primary: #e5e7eb;
    --border-secondary: #D1D5DB;
    --border-dark: #374151;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}


/* ---------- Renk Utility Classes ---------- */

/* Text Colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }
.text-black { color: var(--black); }

.text-primary-500 { color: var(--primary-500); }
.text-primary-600 { color: var(--primary-600); }
.text-primary-700 { color: var(--primary-700); }

.text-secondary-400 { color: var(--secondary-400); }
.text-secondary-500 { color: var(--secondary-500); }
.text-secondary-600 { color: var(--secondary-600); }

.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }

/* Background Colors */
.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-tertiary { background-color: var(--bg-tertiary); }
.bg-dark { background-color: var(--bg-dark); }
.bg-white { background-color: var(--white); }
.bg-black { background-color: var(--black); }
.bg-light { background-color: #F5F5F5; }

.bg-primary-50 { background-color: var(--primary-50); }
.bg-primary-500 { background-color: var(--primary-500); }
.bg-primary-600 { background-color: var(--primary-600); }
.bg-primary-700 { background-color: var(--primary-700); }

.bg-secondary-50 { background-color: var(--secondary-50); }
.bg-secondary-400 { background-color: var(--secondary-400); }
.bg-secondary-500 { background-color: var(--secondary-500); }

.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gray-200 { background-color: var(--gray-200); }
.bg-gray-800 { background-color: var(--gray-800); }
.bg-gray-900 { background-color: var(--gray-900); }

/* Border Colors */
.border-primary { border-color: var(--border-primary); }
.border-secondary { border-color: var(--border-secondary); }
.border-dark { border-color: var(--border-dark); }


/* ---------- Temel ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: #F5F5F5;
}

.site {
    color: #09090a;
}

/* ---------- Sayfa geçiş perdesi (dark curtain) ----------
   İç linke tıklayınca perde kararır → tam sayfa yüklenir → perde açılır.
   Tam reload korunduğu için GSAP/ScrollTrigger inline script'ler doğal çalışır. */
#page-transition {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: #09090a;
    transform: translateY(100%);          /* varsayılan: ekranın altında, gizli */
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
    will-change: transform;
}

#page-transition.is-cover  { transform: translateY(0); pointer-events: auto; } /* ekranı kaplar */
#page-transition.is-reveal { transform: translateY(-100%); }                   /* yukarı çıkıp açılır */
#page-transition.no-anim   { transition: none; }                              /* anlık konumlama */

.page-transition-logo {
    font-family: 'FormulaCondensed', 'Impact', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1;
    color: #fff;
    opacity: 0;                 /* default gizli — çıkışta görünmez */
    transform: scale(0.96);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Logo dissolve in — yeni sayfa yüklendikten sonra */
#page-transition.is-logo .page-transition-logo {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    #page-transition { display: none; }
}

.site button,
.site select,
.site form,
.site input {
    font-family: 'NHaasGrotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

section {
    margin: 0;
    padding: 0;
    display: flow-root;
}

.site h1, .site h2, .site h3, .site h4, .site h5, .site h6 { font-family: 'FormulaCondensed', 'Impact', sans-serif; font-weight: 700; text-wrap: balance; text-transform: uppercase; }
.site p, .site ul, .site ol, .site dl { text-wrap: pretty; }

/* ============================================================
   TİPOGRAFİ ÖLÇEĞİ — tek harmonik modüler skala (oran ~1.45)
   Tier büyüdükçe line-height sıkılaşır (0.86→1.0). Tracking
   başlıklarda 0/negatif, sadece eyebrow'da geniş. Font ailesi
   .site h*'tan (FormulaCondensed) miras; burada yalnız size/lh/ls.
   ============================================================ */
:root {
    --t-display-size: clamp(4.5rem, 11vw, 9rem);
    --t-display-lh: 0.86;
    --t-display-ls: -0.01em;

    --t-h1-size: clamp(3.25rem, 8vw, 6.25rem);
    --t-h1-lh: 0.88;
    --t-h1-ls: -0.005em;

    --t-h2-size: clamp(2.5rem, 5.5vw, 4.25rem);
    --t-h2-lh: 0.92;
    --t-h2-ls: 0;

    --t-h3-size: clamp(1.6rem, 2.4vw, 2.25rem);
    --t-h3-lh: 1;
    --t-h3-ls: 0;

    --t-subtitle-size: clamp(1.2rem, 1.8vw, 1.6rem);
    --t-subtitle-lh: 1.2;

    --t-lead-size: clamp(1.125rem, 1.4vw, 1.375rem);
    --t-lead-lh: 1.5;

    --t-eyebrow-ls: 0.12em;
}

.t-display { font-size: var(--t-display-size); line-height: var(--t-display-lh); letter-spacing: var(--t-display-ls); }
.t-h1      { font-size: var(--t-h1-size);      line-height: var(--t-h1-lh);      letter-spacing: var(--t-h1-ls); }
.t-h2      { font-size: var(--t-h2-size);      line-height: var(--t-h2-lh);      letter-spacing: var(--t-h2-ls); }
.t-h3      { font-size: var(--t-h3-size);      line-height: var(--t-h3-lh);      letter-spacing: var(--t-h3-ls); }

.t-subtitle {
    font-family: 'NHaasGrotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: var(--t-subtitle-size);
    line-height: var(--t-subtitle-lh);
    letter-spacing: 0;
    text-transform: none;
}

.t-lead {
    font-family: 'NHaasGrotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: var(--t-lead-size);
    line-height: var(--t-lead-lh);
    letter-spacing: 0;
    text-transform: none;
}

.t-eyebrow {
    font-family: 'NHaasGrotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.75rem;
    line-height: 1.1;
    letter-spacing: var(--t-eyebrow-ls);
    text-transform: uppercase;
}

/* UA varsayılan blok marjlarını sıfırla. :where() sayesinde specificity (0,0,1) —
   böylece utility margin class'ları (.mb-6 = 0,1,0) bunu ezebilir (override katmanı). */
:where(.site) h1, :where(.site) h2, :where(.site) h3, :where(.site) h4, :where(.site) h5, :where(.site) h6,
:where(.site) p, :where(.site) ul, :where(.site) ol, :where(.site) dl { margin-block-start: 0; margin-block-end: 0; }

:focus {
    outline: 0;
    background: none;
}


/* ---------- bolumler > nav.php ---------- */
/* Nav spacer for fixed nav */
.navust-spacer {
    height: 88px;
}

.admin-bar .navust-spacer {
    height: 120px;
}

.navust {
    transition: 0.3s all ease;
}

/* Blur backdrop disabled */
.navust-blur {
    display: none;
}

/* Logo: ayrı fixed katman, mix-blend-difference ile arka plana göre otomatik dark/light.
   Beyaz logo + difference → açık zeminde siyah, koyu zeminde beyaz (per-piksel, JS yok). */
.site-logo-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 60;
    padding-top: 1.5rem;
    pointer-events: none;
    mix-blend-mode: difference;
}

.site-logo-blend {
    display: inline-block;
    pointer-events: auto;
}

.admin-bar .site-logo-bar { top: 32px; }

@media (max-width: 782px) {
    .admin-bar .site-logo-bar { top: 46px; }
}

/* Logo: default dark, front-page uses light */
.navust .nav-logo-light { display: none; }

.navust .nav-grid-3 {
    grid-template-columns: 1fr auto 1fr;
}

.navust .main-nav {
    justify-content: center;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: all 0.3s;
}

.navust .main-nav ul {
    display: flex;
    align-items: center;
    gap: 48px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navust .main-nav li a {
    position: relative;
    color: var(--black);
    text-decoration: none;
    padding: 2px 0;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    cursor: pointer;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 200;
}

.navust .main-nav li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--black);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.navust .main-nav li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Light Menu (dark background pages) */
.home .navust,
.nav-light .navust {
    border-bottom: none;
}

.nav-light .navust .nav-logo-dark { display: none; }
.nav-light .navust .nav-logo-light { display: block; }

.home .navust .main-nav li a,
.nav-light .navust .main-nav li a { color: #fff; }
.home .navust .main-nav li a::after,
.nav-light .navust .main-nav li a::after { background: #fff; }
.home .navust .nav-mid svg,
.nav-light .navust .nav-mid svg { color: #fff; }

.home .navust .nav-right .cta-button,
.nav-light .navust .nav-right .cta-button {
    background-color: #ffffff1a;
    backdrop-filter: blur(1em);
    -webkit-backdrop-filter: blur(1em);
    color: #fff;
}

/* Admin bar offset */
.admin-bar .navust {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .navust {
        top: 46px;
    }
}

/* Scrolled state — nav shrinks slightly */
.navust.scrolled {
    padding-top: 1rem;
    padding-bottom: 1rem;
}


/* ---------- Global Components ---------- */

/* Eyebrow */
.eyebrow { color: var(--text-primary); }
.eyebrow svg { flex-shrink: 0; }
.eyebrow span {
    font-size: 0.750rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: var(--t-eyebrow-ls);
}
.eyebrow-light { color: var(--white); }

/* Gradient Text */
.gradient-text {
    background: linear-gradient(180deg, var(--secondary-500) 0%, var(--secondary-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Image Zoom */
.hero-img-zoom { animation: heroZoom 20s ease-in-out infinite; }
@keyframes heroZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(calc(-50% - 15px)); }
}


/* ---------- Section Hero ---------- */
.hero-headline {
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
}

.section-hero .hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    z-index: 1;
}


/* ---------- Footer ---------- */
.section-footer .border-top { border-top: 1px solid var(--border-primary); }

.section-footer .border-left {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--border-primary);
}

.section-footer .eyebrow.small span {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-400);
}

.section-footer .footer-menu { margin-top: 1.5rem; }
.section-footer .footer-menu .link { list-style: none; }

.footer-cta-email {
    color: inherit;
    text-decoration: none;
}

/* Footer mail hover — dikey-roll + rotate swap (hydeandseek tekniği).
   İki kopya üst üste; hover'da üstteki yukarı çıkar, alttaki içeri girer. */
.email-roll {
    position: relative;
    display: inline-block;
}

.email-roll-text {
    display: inline-block;
    position: relative;
    overflow: hidden;
    vertical-align: top;
}

.email-roll-primary,
.email-roll-secondary {
    display: inline-block;
    white-space: nowrap;
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}

.email-roll-primary {
    transform: translateY(0%) rotate(0.001deg);
    transition-delay: -0.05s;
}

.email-roll-secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(140%) rotate(10deg);
    transition-delay: 0s;
}

.email-roll:hover .email-roll-primary {
    transform: translateY(-140%) rotate(-10deg);
    transition-delay: 0s;
}

.email-roll:hover .email-roll-secondary {
    transform: translateY(0%) rotate(0.001deg);
    transition-delay: -0.05s;
}

/* ---- Scroll Reveal: satır satır maskeli text reveal ---- */
.scroll-reveal .line-wrapper {
    display: block;
    overflow: hidden;
    padding: 0.1em 0;
    margin: -0.1em 0;
}

.scroll-reveal .line {
    display: block;
    will-change: transform, opacity;
}

/* Footer büyük marka logosu: mobilde tam genişlik (taşmasın),
   desktopta sabit 128px yükseklik. */
.footer-brand-logo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}
@media (min-width: 768px) {
    .footer-brand-logo {
        width: auto;
        height: 8rem;
    }
}

.section-footer .footer-menu,
.section-footer .footer-menu li {
    list-style: none;
}

.section-footer .footer-menu li a,
.section-footer .footer-menu li .link-click {
    color: inherit;
    text-decoration: none;
    font-size: 1.125rem;
    transition: opacity 0.3s ease;
}

.section-footer .footer-menu li a:hover { opacity: 0.6; }

.full-w { width: 100%; }


/* Nav CTA button */
.nav-cta {
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.nav-cta:hover {
    opacity: 0.8;
}


/* ---------- Morph Menu ---------- */

:root {
    --morph-w: 100px;
    --morph-h: 40px;
    --morph-expanded-w: 300px;
    --morph-expanded-h: 450px;
}

.morph-menu {
    position: relative;
    height: var(--morph-h);
    z-index: 1000;
}

.morph-box {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--morph-w);
    height: var(--morph-h);
    border: 2px solid var(--black);
    background-color: var(--gray-100);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                height 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                max-width 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-sizing: border-box;
    will-change: width, height;
    cursor: pointer;
}

.morph-menu.open .morph-box {
    width: var(--morph-expanded-w);
    max-width: 90vw;
    height: var(--morph-expanded-h);
    cursor: default;
}

/* Header bar */
.morph-header {
    display: flex;
    height: calc(var(--morph-h) - 4px);
    flex-shrink: 0;
    border-bottom: 0px solid transparent;
    transition: border-bottom 0.3s ease;
}

.morph-menu.open .morph-header {
    border-bottom: 2px solid var(--black);
}

/* Icon area */
.morph-icon {
    aspect-ratio: 1;
    height: 100%;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

/* Icon wrapper for CSS transition */
.morph-icon .icon-wrapper {
    position: relative;
    width: 20px;
    height: 20px;
}

.morph-hamburger, .morph-close {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
}

.morph-menu.open .morph-hamburger { opacity: 0; transform: rotate(90deg); }
.morph-menu:not(.open) .morph-close { opacity: 0; transform: rotate(-90deg); }

.morph-hamburger span, .morph-close span {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--white);
}

.morph-hamburger span:not(:last-child) { margin-bottom: 4px; }
.morph-close span:first-child { transform: rotate(45deg); position: absolute; }
.morph-close span:last-child { transform: rotate(-45deg); position: absolute; }

/* Label area */
.morph-label {
    background: var(--white);
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 12px;
    cursor: pointer;
    min-width: 0;
}

.morph-label-text {
    font-family: 'FormulaCondensed', 'Impact', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--black);
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 1px;
}

/* Menu content */
.morph-content {
    flex: 1;
    padding: 1rem;
    display: none;
}

.morph-menu.open .morph-content {
    display: block;
    animation: morphFadeIn 0.3s ease 0.25s both;
}

@keyframes morphFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Nav links */
.morph-nav li { list-style: none; }

.morph-nav li a {
    font-family: 'FormulaCondensed', 'Impact', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--black);
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease, color 0.2s ease;
}

.morph-nav li a:hover {
    transform: translateX(10px);
    color: var(--gray-600);
}



/* ---------- DNA Section ---------- */

.dna-link {
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.3s ease;
}

.dna-link:hover {
    opacity: 0.6;
}


/* ---------- Single Work ---------- */

.work-hero-bg-outer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.work-hero-bg-wrap {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#work-hero-img {
    opacity: 0.9;
}

.work-hero-gradient {
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0.3;
}

.work-detail-title {
    font-size: 8vw;
}

@media (max-width: 767px) {
    .work-detail-title {
        font-size: 12vw;
    }
}

.work-summary-text br {
    display: block;
    content: '';
    margin-bottom: 1.5rem;
}


/* ---------- Works Stack ---------- */

.works-stack {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    perspective: 1500px;
    background: var(--black);
}

.stack-panel {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: var(--black);
    text-decoration: none;
    will-change: transform;
}

.stack-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.stack-content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* İçerik .container içinde; logo HER ZAMAN ortada (1fr auto 1fr), yan yazılar kenarlarda */
.stack-content-inner {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

/* Logo: yüklenen dosyadan BAĞIMSIZ tutarlı boyut (max kutu + contain) */
.stack-logo {
    justify-self: center;
    height: auto;
    width: auto;
    /* Yükseklik-öncelikli normalizasyon: yüklenen logo hangi boyutta/oranda olursa
       olsun bu kutuya sığar (object-fit: contain). max-width geniş wordmark'ların da
       yükseklik kazanması için bol tutuldu. */
    max-height: 84px;
    max-width: 260px;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.5);
    filter: brightness(0) invert(1);
}

.stack-title {
    justify-self: center;
    font-family: 'FormulaCondensed', 'Impact', sans-serif;
    font-weight: 700;
    font-size: 4rem;
    color: var(--white);
    text-transform: uppercase;
    text-align: center;
    opacity: 0;
    transform: scale(0.5);
}

.stack-side-text {
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(30px);
}

.stack-left {
    justify-self: start;
}

.stack-right {
    justify-self: end;
    text-align: right;
}

/* Telefon/küçük tablet: kategori + logo + başlık alt alta */
@media (max-width: 768px) {
    .stack-content-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 1.25rem;
        text-align: center;
    }

    .stack-side-text {
        font-size: 0.75rem;
        white-space: normal;
    }

    .stack-left,
    .stack-right {
        justify-self: center;
        text-align: center;
    }

    .stack-logo {
        max-height: 56px;
        max-width: 70%;
    }

    .stack-title {
        font-size: clamp(2rem, 9vw, 3rem);
        line-height: 1;
    }
}


/* ---------- Work Card ---------- */

.work-card {
    text-decoration: none;
    color: var(--text-primary);
}

.work-card img {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.work-card:hover img {
    transform: scale(1.03);
}


/* ---------- Client Logos ---------- */

.section-clients {
    overflow: hidden;
}

.client-logo-box {
    position: relative;
    width: 100%;
    aspect-ratio: 349 / 230;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--text-primary);
}

.client-logo-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.client-logo-img {
    max-width: 160px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0);
}



/* ---------- DNA Section ---------- */

/* DNA değerler: eşit CSS grid — mobil 1, tablet 2x2, desktop 4 sütun.
   Her sütunun üstünde tek çizgi (eski eğri dikey divider'lar yerine). */
.dna-values-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.dna-values-grid .dna-value {
    padding: 2rem 0;
    border-top: 1px solid var(--border-primary);
}

@media (min-width: 640px) {
    .dna-values-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .dna-values-grid {
        grid-template-columns: repeat(4, 1fr);
        column-gap: 2.5rem;
    }
    .dna-values-grid .dna-value {
        padding: 2.25rem 0 0;
    }
}

.dna-number {
    font-family: 'FormulaCondensed', sans-serif;
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--gray-200);
    display: block;
    margin-bottom: 1.25rem;
}

/* font-family/uppercase .site h3'ten (FormulaCondensed) gelir — burada yalnız ölçek */
.dna-value-title {
    font-size: var(--t-subtitle-size);
    line-height: 1.1;
    letter-spacing: 0;
    margin-bottom: 1rem;
    text-wrap: balance;
}

.dna-value-desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-secondary);
    text-wrap: pretty;
}


/* ---------- Intro Screen ---------- */

#intro-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

#intro-screen.done {
    transform: translateY(-100%);
}

.intro-letters {
    display: flex;
}

/* Wrapper clips the letter — creates the "rising from behind a line" effect */
.intro-letter-wrap {
    overflow: hidden;
    display: inline-block;
    line-height: 1;
}

/* Letter: slides up from below the clip, fills via background gradient */
.intro-letter {
    --fill: 0%;
    font-family: 'FormulaCondensed', 'Impact', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    text-transform: uppercase;
    line-height: 1;
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    /* Gradient fill: bottom = full white, top = dim white */
    color: transparent;
    background: linear-gradient(to top,
        rgba(255,255,255,1) var(--fill),
        rgba(255,255,255,0.15) var(--fill)
    );
    -webkit-background-clip: text;
    background-clip: text;
}

.intro-letter.visible {
    transform: translateY(0);
}


/* ---------- Hero Play Button ---------- */

.hero-play-btn {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hero-play-icon {
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: difference;
}

.hero-play-btn:hover .hero-play-icon {
    opacity: 1;
}

.hero-play-icon svg {
    width: 2.5rem;
    height: auto;
}

/* ---------- Cinema Mode ---------- */

.cinema-mode {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.cinema-mode.open {
    opacity: 1;
    visibility: visible;
}

.cinema-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--white);
    font-family: 'NHaasGrotesk', sans-serif;
    font-size: 0.875rem;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    z-index: 10;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cinema-close:hover {
    opacity: 1;
}

.cinema-video {
    width: 70%;
    max-width: 1100px;
    border-radius: 12px;
    overflow: hidden;
}

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


/* ---------- Single Blog ---------- */

.blog-hero {
    /* Mobil: sabit yükseklik yerine içeriğe göre büyür (uzun başlık kırpılmasın);
       üstte fixed nav, altta meta-bar için boşluk. Kısa başlık ortada kalsın. */
    height: auto;
    min-height: 75vh;
    padding-top: 96px;
    padding-bottom: 76px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (min-width: 768px) {
    .blog-hero {
        height: 65vh;
        min-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

.parallax-img {
    height: 140%;
    top: -20%;
    transform: scale(1.2);
    transform-origin: center center;
    will-change: transform;
}

.parallax-text-wrap {
    will-change: transform, opacity;
}

.blog-meta-bar {
    will-change: opacity, transform;
}

.blog-content-area {
    background: var(--gray-50);
}

.blog-more-news {
    background: var(--gray-100);
}

.blog-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.blog-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-content img {
    border-radius: 0.75rem;
    margin: 2rem 0;
}

.blog-content a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-content strong {
    font-weight: 700;
}

.blog-content em {
    font-style: italic;
}


/* ---------- Blog Archive ---------- */

.blog-col-75 { flex: 0 0 75%; max-width: 75%; }
.blog-col-25 { flex: 0 0 25%; max-width: 25%; }
.blog-col-33 { flex: 0 0 calc(33.333% - 0.35rem); max-width: calc(33.333% - 0.35rem); }

@media (max-width: 767px) {
    .blog-col-75,
    .blog-col-25,
    .blog-col-33 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.blog-card {
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}

.blog-card-img {
    aspect-ratio: 16 / 10;
    background: var(--gray-100);
}

.blog-card-img img {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.03);
}

.blog-card-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--white);
    color: var(--text-primary);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--t-eyebrow-ls);
    border-radius: 6px;
}

.blog-card-read {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--t-eyebrow-ls);
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-family: 'FormulaCondensed', 'Impact', sans-serif;
    font-size: var(--t-h3-size);
    font-weight: 700;
    line-height: var(--t-h3-lh);
    letter-spacing: var(--t-h3-ls);
}


/* ---------- Work Archive ---------- */

.archive-work-title {
    font-size: 5vw;
    line-height: 1.1;
}

.site button.archive-cat-link {
    color: var(--text-primary);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'FormulaCondensed', 'Impact', sans-serif;
    font-size: inherit;
    font-weight: 700;
    text-transform: uppercase;
    line-height: inherit;
    padding: 0;
    transition: opacity 0.3s ease;
}

.archive-cat-sep {
    transition: opacity 0.3s ease;
}

.archive-work-title:hover .archive-cat-link,
.archive-work-title:hover .archive-cat-sep {
    opacity: 0.3;
}

.archive-work-title .archive-cat-link:hover {
    opacity: 1;
}

.archive-cat-sep {
    color: var(--text-primary);
    margin: 0 0.1em;
}

/* View toggle buttons */
.view-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-primary);
    background: none;
    cursor: pointer;
    color: var(--gray-400);
    transition: all 0.2s ease;
}

.view-toggle.active {
    color: var(--white);
    background: var(--black);
    border-color: var(--black);
}

/* Archive Work — Page Hero */
.archive-work-hero {
    text-align: left;
    padding-top: 3rem;
    padding-bottom: 1rem;
    margin-bottom: 4rem;
}

.archive-work-hero .archive-work-hero-title {
    font-size: var(--t-h1-size);
    line-height: var(--t-h1-lh);
    letter-spacing: var(--t-h1-ls);
    text-wrap: balance;
    max-width: 40rem;
    margin: 0 0 2.5rem;
}

.archive-work-hero .archive-work-hero-desc {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 38rem;
    margin: 0;
    text-wrap: pretty;
}

@media (min-width: 768px) {
    .archive-work-hero {
        padding-top: 4rem;
        margin-bottom: 5rem;
    }
}

/* List view */
.work-list-item {
    text-decoration: none;
    color: var(--text-primary);
    transition: opacity 0.3s ease;
}

.works-list-view:hover .work-list-item {
    opacity: 0.4;
}

.works-list-view .work-list-item:hover {
    opacity: 1;
}

.work-list-title {
    font-family: 'FormulaCondensed', 'Impact', sans-serif;
    font-weight: 700;
    font-size: var(--t-h2-size);
    text-transform: uppercase;
    line-height: var(--t-h2-lh);
    letter-spacing: var(--t-h2-ls);
}

.work-list-thumb {
    width: 420px;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 16px;
}

/* .flex-1 utility utility.css'te tanımsız; archive-work'a scoped fix */
.work-list-item > .flex-1 {
    flex: 1 1 0%;
    min-width: 0;
}

/* Zigzag: tek satır thumb sağda, çift satır thumb solda + içerik sağ kenara yaslı */
.works-list-view .work-list-item:nth-child(even) .work-list-thumb {
    order: -1;
}
.works-list-view .work-list-item:nth-child(even) > .flex-1 {
    align-items: flex-end;
    text-align: right;
}

/* List CTA — default'ta underline görünür, hover'da SIRALI swap
   1) Önce eski çizgi (::after) sağa doğru süpürülür
   2) Sonra yeni çizgi (::before) soldan girer */

/* ::after = default visible underline, origin RIGHT (hover'da sağdan sıyrılsın) */
.work-list-cta.btn-plain::after {
    transform: scaleX(1);
    transform-origin: bottom right;
    transition: transform 0.3s ease-in;
}

/* ::before = hover'da soldan giren yeni underline */
.work-list-cta.btn-plain::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: bottom left;
    transition: transform 0.3s ease-out 0.3s; /* 0.3s delay: ::after gittikten sonra */
}

/* Satır hover */
.work-list-item:hover .work-list-cta.btn-plain::after {
    transform: scaleX(0);          /* sağdan sola süpürülür */
}

.work-list-item:hover .work-list-cta.btn-plain::before {
    transform: scaleX(1);          /* soldan sağa dolar */
}

/* Yeni CTA (yuvarlak ok) kart içinde: KART hover'ında tetiklensin
   (buton kendisi <a> olamaz — kart zaten link; bu yüzden div + kart-hover) */
.work-list-item:hover .statement-cta .icon-1 { transform: translate(150%, -50%); }
.work-list-item:hover .statement-cta .icon-2 { transform: translate(-50%, -50%); }
.work-list-item:hover .statement-cta .label-wrapper { transform: translateY(-50%); }
.work-list-item:hover .statement-cta--light .statement-cta-icon { background: #222; }

@media (min-width: 768px) and (max-width: 1023px) {
    .work-list-thumb {
        width: 340px;
    }
}

@media (max-width: 767px) {
    .archive-work-title {
        font-size: 10vw;
    }
}


/* ---------- Work Gallery Slider ---------- */

.work-slide {
    aspect-ratio: 16 / 9;
}

.work-slide img,
.work-slide video {
    aspect-ratio: 16 / 9;
}

.work-slide-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 50%);
}

.work-slide-title {
    font-family: 'FormulaCondensed', 'Impact', sans-serif;
    font-weight: 700;
    font-size: var(--t-h2-size);
    text-transform: uppercase;
    line-height: var(--t-h2-lh);
    letter-spacing: var(--t-h2-ls);
    -webkit-text-stroke: 1px rgba(255,255,255,0.8);
    color: transparent;
}

.work-gallery-splide .splide__list {
    align-items: center;
}

/* Progress bar (sliding indicator) */
.work-progress-track {
    width: 100%;
    height: 2px;
    background: var(--gray-800);
    position: relative;
}

.work-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--white);
    transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}


/* ---------- Work Play Button ---------- */
/* Same visual as hero-play-btn but always visible + label */

.work-play-btn {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #fff;
    mix-blend-mode: difference;
}

.work-play-btn:hover {
    opacity: 0.8;
}

.work-play-svg {
    width: 2.5rem;
    height: auto;
    fill: currentColor;
}

.work-play-label {
    font-family: 'NHaasGrotesk', sans-serif;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: currentColor;
}


/* ---------- Responsive ---------- */

@media (max-width: 767px) {
    .morph-menu {
        --morph-w: 110px;
        --morph-h: 36px;
        height: var(--morph-h);
    }
    .morph-icon { width: 36px; }
    .morph-label-text { font-size: 0.95rem; }
    .morph-menu.open .morph-box {
        height: 400px;
    }
    .morph-nav li a { font-size: 2rem; }
    .nav-cta span {
        display: none;
    }
    .nav-cta {
        padding: 0.65rem;
        border-radius: 9999px;
    }
    .hero-play-icon {
        width: 48px;
        height: 48px;
    }
    .hero-play-icon svg {
        width: 18px;
        height: 18px;
    }
    .cinema-video {
        width: 90%;
    }
    .cinema-close {
        top: 16px;
        right: 16px;
    }
}


/* ---------- Contact Hero ---------- */

.contact-hero {
    padding: 8rem 0 6rem;
}

.contact-hero-top {
    padding-bottom: 6rem;
}

.contact-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 768px) {
    .contact-hero-grid {
        grid-template-columns: 1fr 1fr 1fr;
        column-gap: 4rem;
    }
}

.contact-hero-form-col {
    grid-column: 1 / -1;
}
@media (min-width: 768px) {
    .contact-hero-form-col {
        grid-column: 2 / -1;
    }
}

.contact-hero-link {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 4px;
    transition: opacity 0.25s ease;
}

.contact-hero-link:hover {
    text-decoration: underline;
    opacity: 0.6;
}

.contact-hero-form-section {
    padding-top: 4rem;
    margin-top: 2rem;
}



/* ---------- Contact Form (CF7) ---------- */

.contact-hero .wpcf7-form label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-bottom: 0;
}

.contact-hero .wpcf7-form input[type="text"],
.contact-hero .wpcf7-form input[type="email"],
.contact-hero .wpcf7-form select,
.contact-hero .wpcf7-form textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--border-primary);
    background: transparent;
    padding: 0.5rem 0 1rem;
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-family: 'NHaasGrotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition-base);
    border-radius: 0;
    -webkit-appearance: none;
}

.contact-hero .wpcf7-form input[type="text"]:focus,
.contact-hero .wpcf7-form input[type="email"]:focus,
.contact-hero .wpcf7-form select:focus,
.contact-hero .wpcf7-form textarea:focus {
    border-bottom-color: var(--text-primary);
}

.contact-hero .wpcf7-form input::placeholder,
.contact-hero .wpcf7-form textarea::placeholder {
    color: var(--gray-300);
    font-weight: 200;
}

/* Radio grid */
.contact-hero .wpcf7-form .wpcf7-radio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 0.75rem;
}

.contact-hero .wpcf7-form .wpcf7-radio .wpcf7-list-item {
    margin: 0;
}

.contact-hero .wpcf7-form .wpcf7-radio .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.contact-hero .wpcf7-form .wpcf7-radio .wpcf7-list-item label:hover {
    border-color: var(--gray-400);
}

.contact-hero .wpcf7-form .wpcf7-radio input[type="radio"] {
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--gray-300);
    border-radius: 6px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    flex-shrink: 0;
    background: var(--white);
    transition: all var(--transition-fast);
    position: relative;
}

.contact-hero .wpcf7-form .wpcf7-radio input[type="radio"]:checked {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

.contact-hero .wpcf7-form .wpcf7-radio input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 7px;
    width: 6px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.contact-hero .wpcf7-form select {
    cursor: pointer;
    color: var(--text-primary);
}

.contact-hero .wpcf7-form textarea {
    min-height: 80px;
    resize: vertical;
}

.contact-hero .wpcf7-form p {
    margin-bottom: 2rem;
}

.contact-hero .wpcf7-form p:last-of-type {
    text-align: right;
    margin-top: 1rem;
}

.contact-hero .wpcf7-form input[type="submit"] {
    display: inline-block;
    background: var(--text-primary);
    color: var(--white);
    border: 1px solid var(--text-primary);
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'NHaasGrotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-transform: none;
    cursor: pointer;
    transition: all var(--transition-base);
    border-radius: 999px;
}

.contact-hero .wpcf7-form input[type="submit"]:hover {
    background: transparent;
    color: var(--text-primary);
}

.contact-hero .wpcf7-form .wpcf7-response-output {
    border: none;
    padding: 1rem 0;
    margin: 1rem 0 0;
    font-size: 0.875rem;
}

.contact-hero .wpcf7-form .wpcf7-not-valid-tip {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 0.25rem;
}


/* ---------- Works Horizontal Scroll ---------- */

.works-scroll {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--gray-50);
}

.works-scroll-heading {
    position: absolute;
    left: 0;
    right: 0;
    top: 10vh;
    z-index: 10;
    pointer-events: none;
}

.works-scroll-heading h2 {
    font-size: var(--t-display-size);
    line-height: var(--t-display-lh);
    letter-spacing: var(--t-display-ls);
}

.works-scroll-track {
    display: flex;
    padding-left: 35vw;
    padding-right: 10vw;
    height: 100%;
    align-items: center;
    will-change: transform;
}

.works-scroll-card {
    flex-shrink: 0;
    width: 700px;
    margin-right: 80px;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}

.works-scroll-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 20px;
}

.works-scroll-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.works-scroll-card:hover .works-scroll-img img {
    transform: scale(1.05);
}

.works-scroll-title {
    font-family: 'NHaasGrotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    text-transform: none;
    font-size: var(--t-subtitle-size);
    line-height: var(--t-subtitle-lh);
    margin-bottom: 6px;
}

.works-scroll-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
}

.works-scroll-meta span {
    color: var(--text-primary);
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 2px;
    margin-left: 8px;
}

@media (max-width: 768px) {
    /* Mobilde de GSAP scroll-driven yatay kayma çalışır; sadece başlık üstte (overlap fix).
       Base'deki height:100vh + overflow:hidden korunur (pin + track clip için gerekli). */
    .works-scroll {
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
    }
    .works-scroll-heading {
        position: relative;
        left: 0;
        top: 0;
        padding: 0 0 1.5rem;
    }
    .works-scroll-heading h2 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
    .works-scroll-track {
        height: auto;
        width: max-content;   /* stretch olmasın; offsetWidth = kartların toplamı (GSAP scrollAmount doğru olsun) */
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .works-scroll-card {
        width: 85vw;
        margin-right: 20px;
    }
}


/* ---------- Team Section ---------- */

/* ---------- Works Shuffle ---------- */

.shuffle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    flex-wrap: nowrap;
}

.shuffle-title {
    font-family: 'FormulaCondensed', 'Impact', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1;
    text-transform: uppercase;
    color: #ffffff;
    white-space: nowrap;
}

.shuffle-brand {
    font-family: 'FormulaCondensed', 'Impact', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1;
    color: var(--gray-500);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    overflow: hidden;
    height: 1em;
    vertical-align: baseline;
    white-space: nowrap;
    will-change: width;
    margin-left: 0.2em;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* Marka ismine hover: tıklanabilir olduğunu belli et (gri → beyaz) */
.shuffle-brand:hover {
    color: var(--white);
}

.shuffle-brand-line {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    white-space: nowrap;
    will-change: transform, opacity;
}

.shuffle-brand-line.is-current {
    position: relative;
}

.shuffle-card-wrap {
    position: relative;
    width: 12vw;
    height: 16vw;
    max-width: 160px;
    max-height: 220px;
    min-width: 96px;
    min-height: 128px;
    z-index: 10;
    margin: 0 20px;
    transform: translateY(-32px);
    cursor: grab;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.shuffle-card-wrap.dragging {
    cursor: grabbing;
}

.shuffle-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.shuffle-front {
    z-index: 5;
    transform: rotate(-3deg) scale(1.05);
    opacity: 1;
}

.shuffle-back {
    z-index: 1;
    transform: translate(10px, 10px) rotate(5deg) scale(0.9);
    opacity: 0.4;
}

/* Arkadaki kart önce arkada kalır (z düşük) → arkadan yukarı yükselir, sonra öne iner. Jump yok. */
.shuffle-rising {
    z-index: 2 !important;
    transform: translate(0, -72%) rotate(-2deg) scale(1.06) !important;
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .shuffle-row { gap: 8px; }
    .shuffle-card-wrap { margin: 0 8px; min-width: 82px; }
}

/* Telefon: dev kelimeler + kart 360px satıra sığsın (mobil taşma fix) */
@media (max-width: 480px) {
    .shuffle-title,
    .shuffle-brand { font-size: clamp(2.2rem, 10vw, 2.8rem); }
    .shuffle-card-wrap {
        margin: 0 6px;
        width: 17vw;
        height: 23vw;
        min-width: 68px;
        min-height: 92px;
        transform: translateY(-22px);
    }
}

/* Cursor'ı takip eden pill — ortak (shuffle: SÜRÜKLE, works-scroll/works-stack: GÖR, hero: OYNAT) */
.cursor-pill {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    background: var(--white);
    color: var(--black);
    border-radius: 999px;
    font-family: 'PublicSans', 'NHaasGrotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, left, top;
}

.cursor-pill.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cursor-pill svg {
    display: block;
}

/* Hover'lı cihazlarda hedefte sistem cursor'ını gizle (pill onun yerine geçer) */
@media (hover: hover) and (pointer: fine) {
    .shuffle-card-wrap,
    .shuffle-card-wrap.dragging,
    .works-scroll-card,
    .stack-panel,
    .hero-video-box {
        cursor: none;
    }
}


/* ---------- Clients Dark ---------- */

.clients-dark-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0 1rem;
}

.clients-dark-logo img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.35;
    transition: opacity var(--transition-base);
}

.clients-dark-logo:hover img {
    opacity: 0.6;
}


/* ---------- Services Hero ---------- */

.services-hero {
    padding: 8rem 0 5rem;
    margin-top: -88px;
}

.services-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.services-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #000000 0%, rgba(0,0,0,0.8) 25%, rgba(0,0,0,0.3) 50%, transparent 70%);
}

.services-hero-headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
}

.services-hero-heading,
.services-hero-serif {
    display: block;
    font-family: 'FormulaCondensed', 'Impact', sans-serif;
    font-weight: 700;
    font-size: var(--t-display-size);
    line-height: var(--t-display-lh);
    letter-spacing: var(--t-display-ls);
    text-transform: uppercase;
    color: var(--white);
}

.services-hero-desc {
    max-width: 360px;
    padding-bottom: 1rem;
    margin-left: auto;
}

.services-hero-desc p {
    font-size: 1.125rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .services-hero {
        padding: 5rem 0;
    }
}


/* ---------- Services Grid ---------- */

.services-grid-icon {
    display: block;
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.services-grid-title {
    font-family: 'NHaasGrotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: var(--t-subtitle-size);
    line-height: var(--t-subtitle-lh);
    font-weight: 400;
    color: var(--white);
    text-transform: none;
}

.services-grid-num {
    color: var(--gray-600);
    font-size: 0.875rem;
    padding-top: 2px;
    flex-shrink: 0;
    width: 1.5rem;
}

.services-grid-desc {
    color: var(--gray-400);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 28rem;
}


/* ---------- Team Section ---------- */

.team-section {
    position: relative;
    width: 100%;
}

.team-fixed-header {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 8rem;
    z-index: 1;
    pointer-events: none;
}

.team-main-title {
    font-size: var(--t-h1-size);
    line-height: var(--t-h1-lh);
    letter-spacing: var(--t-h1-ls);
}

.team-description {
    max-width: 420px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: right;
    align-self: flex-end;
    margin-top: 1rem;
}

/* Floating asymmetric members */
.team-floating {
    position: relative;
    z-index: 60;
    margin-top: -55vh;
    margin-bottom: -50vh;
}

.team-member-item {
    position: relative;
    display: block;
    margin-bottom: 12vh;
}

.team-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.team-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.6s ease, transform 0.8s ease;
}

.team-member-item:hover .team-image-container img {
    filter: grayscale(0%);
    transform: scale(1.08);
}

.team-member-info {
    padding-top: 15px;
}

.team-member-info h3 {
    font-family: 'FormulaCondensed', 'Impact', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    text-transform: uppercase;
    mix-blend-mode: difference;
    color: var(--black);
}

.team-member-info p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
    mix-blend-mode: difference;
    color: var(--gray-400);
}

/* Asymmetric positioning */
.team-member-item:nth-child(1) { width: 32%; margin-left: 0; }
.team-member-item:nth-child(2) { width: 22%; margin-left: 60%; margin-top: -15vh; }
.team-member-item:nth-child(3) { width: 28%; margin-left: 15%; }
.team-member-item:nth-child(4) { width: 30%; margin-left: 65%; margin-top: -5vh; }
.team-member-item:nth-child(5) { width: 25%; margin-left: 5%; }
.team-member-item:nth-child(6) { width: 28%; margin-left: 45%; }

@media (max-width: 768px) {
    /* Mobil: asimetrik parallax scatter yerine düz 2 kolon grid.
       (Scatter mobilde sığmıyor: sağa taşma + footer çakışması. GSAP parallax JS'te kapatıldı.) */
    .team-fixed-header {
        position: static;
        height: auto;
        padding-top: 0;
        padding-bottom: 2rem;
    }
    .team-description {
        font-size: 0.9rem;
        max-width: 100%;
        text-align: left;
        align-self: auto;
        margin-top: 0.75rem;
    }
    .team-floating {
        margin-top: 0;
        margin-bottom: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem 1rem;
    }
    .team-member-item,
    .team-member-item:nth-child(1),
    .team-member-item:nth-child(2),
    .team-member-item:nth-child(3),
    .team-member-item:nth-child(4),
    .team-member-item:nth-child(5),
    .team-member-item:nth-child(6) {
        width: auto;
        margin: 0;
        transform: none !important;
    }
    .team-member-info h3 {
        font-size: 1.1rem;
        mix-blend-mode: normal;
    }
    .team-member-info p {
        font-size: 0.65rem;
        mix-blend-mode: normal;
    }
}


/* ============================================================
   Kariyer (Career)
   ============================================================ */

/* Pozisyon kutusu — etkileşimli component (utility.css'te tam .border / hover yok).
   Layout, tipografi, padding, radius: markup'taki utility class'lar. */
.career-box {
    border: 1px solid var(--border-primary);
    cursor: pointer;
    transition: background var(--transition-base);
}

/* Hover: border rengi DEĞİŞMEZ; karta belli belirsiz gri ton */
.career-box:hover,
.career-box:focus-visible {
    background: rgba(15, 23, 42, 0.035);
    outline: none;
}

/* Kart hover'ında içteki CTA (Başvur) animasyonu tetiklensin */
.career-box:hover .statement-cta .icon-1 { transform: translate(150%, -50%); }
.career-box:hover .statement-cta .icon-2 { transform: translate(-50%, -50%); }
.career-box:hover .statement-cta .label-wrapper { transform: translateY(-50%); }
.career-box:hover .statement-cta--light .statement-cta-icon { background: #222; }

/* ---------- Başvuru Drawer (Notion usulü, sağdan kayar) ---------- */

.career-drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    overflow: hidden;
    pointer-events: none;
}

.career-drawer.open {
    pointer-events: auto;
}

.career-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.career-drawer.open .career-drawer-overlay {
    opacity: 1;
}

.career-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(560px, 100%);
    background: var(--white);
    overflow-y: auto;
    padding: 4rem 3rem 3rem;
    box-shadow: -12px 0 48px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.career-drawer.open .career-drawer-panel {
    transform: translateX(0);
}

.career-drawer-close {
    position: absolute;
    top: 1.5rem;
    right: 1.75rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'NHaasGrotesk', sans-serif;
    font-size: 0.875rem;
    color: var(--text-primary);
    opacity: 0.6;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.3s ease;
}

.career-drawer-close:hover {
    opacity: 1;
}

.career-drawer-eyebrow {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}

.career-drawer-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.05;
    margin-bottom: 2rem;
}

/* Drawer içindeki CF7 formu — contact form stilini paylaşır, sadece padding sıfırlanır */
.career-drawer-form.contact-hero {
    padding: 0;
}

/* Gizli pozisyon alanı */
.career-hidden {
    display: none;
}

/* Drawer form alanları: contact ile aynı dil, daha kompakt boyut */
.career-drawer-form .wpcf7-form input[type="text"],
.career-drawer-form .wpcf7-form input[type="email"],
.career-drawer-form .wpcf7-form input[type="tel"],
.career-drawer-form .wpcf7-form textarea {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.career-drawer-form .wpcf7-form input[type="tel"] {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--border-primary);
    background: transparent;
    padding: 0.5rem 0 0.9rem;
    font-family: 'NHaasGrotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    color: var(--text-primary);
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
    transition: border-color var(--transition-base);
}

.career-drawer-form .wpcf7-form input[type="tel"]:focus {
    border-bottom-color: var(--text-primary);
}

/* Native file input gizli (erişilebilir kalır), JS ile özel trigger açılır */
.career-drawer-form .wpcf7-form input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Özel CV yükleme alanı */
.career-file {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 0;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-primary);
    cursor: pointer;
    text-align: left;
    color: var(--text-secondary);
    font-family: 'NHaasGrotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    transition: border-color var(--transition-base), color var(--transition-base);
}

.career-file:hover,
.career-file:focus-visible {
    border-bottom-color: var(--text-primary);
    color: var(--text-primary);
    outline: none;
}

.career-file svg {
    flex: 0 0 auto;
    opacity: 0.7;
}

.career-file.has-file {
    color: var(--text-primary);
}

.career-file.has-file svg {
    opacity: 1;
}

.career-file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Telefon: drawer full-screen olduğunda forma daha çok yatay alan */
@media (max-width: 480px) {
    .career-drawer-panel {
        padding: 3.75rem 1.5rem 2rem;
    }
}


/* ---------- Single Work: Sonraki Proje ---------- */
.next-project-img img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.next-project:hover .next-project-img img {
    transform: scale(1.04);
}

/* Foto'yu küçült + sağa hizala (utility.css'te ml-auto / responsive max-w yok) */
@media (min-width: 768px) {
    .next-project-media {
        max-width: 22rem;
        margin-left: auto;
    }
}


/* ---------- CTA Butonu (tekrar kullanılabilir) ----------
   Markup: bolumler/cta-button.php
   Kullanım: get_template_part('bolumler/cta-button', null, ['text'=>..., 'url'=>...]); */
.statement-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}

/* Daire + ok (yatay slide) — VARSAYILAN: koyu zemin → beyaz daire, siyah ok, beyaz yazı */
.statement-cta-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #fff;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.statement-cta-icon svg {
    width: 18px;
    height: 18px;
    position: absolute;
    top: 50%;
    left: 50%;
    color: #000;
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

.statement-cta .icon-1 { transform: translate(-50%, -50%); }
.statement-cta .icon-2 { transform: translate(-180%, -50%); }
.statement-cta:hover .icon-1 { transform: translate(150%, -50%); }
.statement-cta:hover .icon-2 { transform: translate(-50%, -50%); }

/* Yazı (dikey slide) */
.statement-cta-label {
    position: relative;
    height: 20px;
    overflow: hidden;
}

.statement-cta-label .label-wrapper {
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

.statement-cta-label .label-wrapper span {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 20px;
    height: 20px;
}

.statement-cta:hover .label-wrapper {
    transform: translateY(-50%);
}

.statement-cta:hover .statement-cta-icon {
    background: #e2e2e2;
}

/* Light varyant: açık zemin → siyah daire, beyaz ok, siyah yazı
   Kullanım: get_template_part(..., ['theme'=>'light', ...]) */
.statement-cta--light {
    color: #000;
}

.statement-cta--light .statement-cta-icon {
    background: #000;
}

.statement-cta--light .statement-cta-icon svg {
    color: #fff;
}

.statement-cta--light:hover .statement-cta-icon {
    background: #222;
}


/* ---------- Yetenekler (Capabilities) — koyu, tema dili ----------
   Başlık ve sütun başlıkları FormulaCondensed kalır (.site h2/h3 — override yok). */
.capabilities-col-head {
    border-top: 1px solid var(--gray-800);
    padding-top: 1.25rem;
    margin-bottom: 1.5rem;
}

.capabilities-col-num {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 0.85rem;
}

.capabilities .capabilities-col-title {
    font-size: var(--t-h3-size);
    line-height: var(--t-h3-lh);
    letter-spacing: var(--t-h3-ls);
    color: var(--white);
}

.capabilities-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.capabilities-items li {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.3;
    transition: color 0.25s ease, transform 0.25s ease;
}

.capabilities-items li:hover {
    color: var(--white);
    transform: translateX(4px);
}


/* ---------- Demo bildirimi (toast — sağ alt) ---------- */
.site-notice {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 9000;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    width: 360px;
    max-width: calc(100vw - 3rem);
    padding: 1.05rem 1.15rem;
    background: #ffffff;
    border: 1px solid rgba(9, 9, 10, 0.07);
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(9, 9, 10, 0.13);
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.site-notice.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.site-notice-dot {
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: #C9A0DC;
    box-shadow: 0 0 0 4px rgba(201, 160, 220, 0.18);
    flex-shrink: 0;
}

.site-notice-body {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.site-notice-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-family: 'NHaasGrotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.site-notice-text strong {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #09090a;
}

.site-notice-text span {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #5b616e;
}

.site-notice-actions {
    display: flex;
    gap: 0.5rem;
}

.site-notice-btn {
    font-family: 'NHaasGrotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.5rem 0.9rem;
    border-radius: 9px;
    border: 1px solid rgba(9, 9, 10, 0.12);
    background: transparent;
    color: #09090a;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-notice-btn:hover {
    background: rgba(9, 9, 10, 0.05);
}

.site-notice-btn.is-primary {
    background: #09090a;
    border-color: #09090a;
    color: #fff;
}

.site-notice-btn.is-primary:hover {
    background: #000;
}


/* ---------- Mobil engel (mobil sürüm hazır olana dek) ---------- */
.mobile-block {
    display: none;
}

@media (max-width: 767px) {
    .mobile-block {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 100000;
        background: #09090a;
        color: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }

    .mobile-block-logo {
        font-family: 'FormulaCondensed', 'Impact', sans-serif;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 2.75rem;
        line-height: 1;
    }

    .mobile-block p {
        font-size: 1rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.7);
        max-width: 320px;
        margin: 0;
    }

    body { overflow: hidden; }
    .site-notice { display: none; }
}
