:root {
    --ink: #0d0d0f;
    --muted: #727278;
    --soft: #9a9aa0;
    --bg: #ffffff;
    --paper: #f8f7f5;
    --line: rgba(13, 13, 15, 0.08);
    --line-subtle: rgba(13, 13, 15, 0.04);
    --accent: #0d0d0f;
    --radius-card: 20px;
    --serif: "Instrument Serif", Georgia, serif;
    --sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    --hp: 0;
    --header-h: 74px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   THEME MODES & VISUAL PRESETS
   ========================================================================== */

/* Dark Cinematic Theme (Obsidian & Night Cinema) */
body[data-theme="dark"], body.theme-dark {
    --ink: #f5f5f7;
    --muted: #a1a1aa;
    --soft: #63636e;
    --bg: #09090b;
    --paper: #121216;
    --line: rgba(255, 255, 255, 0.09);
    --line-subtle: rgba(255, 255, 255, 0.04);
}

/* Warm Editorial Cream Theme */
body[data-theme="cream"], body.theme-cream {
    --ink: #181715;
    --muted: #7a766d;
    --soft: #aba69b;
    --bg: #f9f8f4;
    --paper: #f0eee7;
    --line: rgba(24, 23, 21, 0.09);
    --line-subtle: rgba(24, 23, 21, 0.04);
}

/* Titanium Slate Theme */
body[data-theme="titanium"], body.theme-titanium {
    --ink: #0f172a;
    --muted: #64748b;
    --soft: #94a3b8;
    --bg: #f1f5f9;
    --paper: #e2e8f0;
    --line: rgba(15, 23, 42, 0.09);
    --line-subtle: rgba(15, 23, 42, 0.04);
}

/* ACCENT COLORS */
body.accent-blue { --accent: #2563eb; }
body.accent-amber { --accent: #d97706; }
body.accent-emerald { --accent: #059669; }
body.accent-crimson { --accent: #dc2626; }
body.accent-ink { --accent: var(--ink); }

/* BORDER RADIUS */
body.radius-pill { --radius-card: 22px; }
body.radius-modern { --radius-card: 12px; }
body.radius-sharp { --radius-card: 4px; }

/* FONT PAIRINGS */
body.font-pure_sans { --serif: var(--sans); }
body.font-classic_serif { --serif: "Instrument Serif", Georgia, serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

img, video, iframe { display: block; max-width: 100%; }
button, a { color: inherit; }
button { font: inherit; background: none; border: 0; cursor: pointer; }
a { text-decoration: none; }

.wrap {
    width: min(1320px, calc(100% - 3.5rem));
    margin-inline: auto;
}

/* ==========================================================================
   HEADER / NAVBAR (Scroll-Morphing Frosted Glass Pill)
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    pointer-events: none;
    display: flex;
    justify-content: center;
    padding-top: calc(var(--hp) * 14px);
    transition: padding-top 0.35s var(--ease);
}

.header-bar {
    pointer-events: auto;
    width: calc(100% - (var(--hp) * (100% - min(820px, calc(100% - 32px)))));
    max-width: 100%;
    margin: 0 auto;
    min-height: calc(74px - (var(--hp) * 18px));
    height: calc(74px - (var(--hp) * 18px));
    padding: 0 calc(2.4rem - (var(--hp) * 1.15rem));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: rgba(255, 255, 255, calc(1 - (var(--hp) * 0.24)));
    backdrop-filter: blur(calc(var(--hp) * 24px)) saturate(190%);
    -webkit-backdrop-filter: blur(calc(var(--hp) * 24px)) saturate(190%);
    border-radius: calc(var(--hp) * 999px);
    border: 1px solid rgba(13, 13, 15, calc(0.06 + (var(--hp) * 0.03)));
    box-shadow: 0 calc(var(--hp) * 18px) calc(var(--hp) * 40px) -6px rgba(10, 10, 12, calc(var(--hp) * 0.08)),
                inset 0 0 0 1px rgba(255, 255, 255, calc(var(--hp) * 0.6));
    transition: width 0.35s var(--ease),
                height 0.35s var(--ease),
                min-height 0.35s var(--ease),
                padding 0.35s var(--ease),
                border-radius 0.35s var(--ease),
                box-shadow 0.35s var(--ease),
                background 0.35s var(--ease);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 400;
    flex: 0 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-family: var(--sans);
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brand-text small {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}

.brand-text-pure {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1;
}

.brand-logo-img {
    height: 36px;
    max-height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.header-right-side {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 1.15rem;
    border-radius: 999px;
    background: var(--accent, var(--ink));
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.25s var(--ease);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
}

.header-cta-btn svg {
    width: 12px;
    height: 12px;
    transition: transform 0.25s var(--ease);
}

.header-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.header-cta-btn:hover svg {
    transform: translate(2px, -2px);
}

.mobile-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    background: var(--accent, var(--ink));
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 1 !important;
}

/* ==========================================================================
   HEADER STYLE VARIANTS
   ========================================================================== */

/* Full-Width Sticky Bar */
body.header-full_width .site-header {
    padding-top: 0;
}
body.header-full_width .header-bar {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    min-height: 72px;
    height: 72px;
    padding: 0 3.5rem;
    border-left: 0;
    border-right: 0;
    border-top: 0;
}

/* Compact Sleek Bar */
body.header-compact .site-header {
    padding-top: calc(var(--hp) * 8px);
}
body.header-compact .header-bar {
    min-height: calc(58px - (var(--hp) * 8px));
    height: calc(58px - (var(--hp) * 8px));
    padding: 0 1.8rem;
}

/* Transparent Glass Bar */
body.header-transparent .header-bar {
    background: rgba(255, 255, 255, calc(var(--hp) * 0.85));
    border-color: rgba(13, 13, 15, calc(var(--hp) * 0.08));
    box-shadow: 0 calc(var(--hp) * 14px) calc(var(--hp) * 32px) -6px rgba(10, 10, 12, calc(var(--hp) * 0.08));
}

/* Header Alignment: Center */
.site-header.align-center .nav-desktop {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   THEME STYLES OVERRIDES (Dark, Cream, Titanium)
   ========================================================================== */

/* Dark Mode Overrides */
body.theme-dark .header-bar {
    background: rgba(18, 18, 22, calc(0.85 + (var(--hp) * 0.1)));
    border-color: rgba(255, 255, 255, calc(0.08 + (var(--hp) * 0.06)));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
body.theme-dark .brand-mark {
    background: #f5f5f7;
    color: #09090b;
}
body.theme-dark .nav-desktop a {
    color: #f5f5f7;
}
body.theme-dark .nav-desktop a::after {
    background: var(--accent, #f5f5f7);
}
body.theme-dark .nav-toggle span {
    background: #f5f5f7;
}
body.theme-dark .mobile-nav {
    background: rgba(9, 9, 11, 0.98);
    color: #f5f5f7;
}
body.theme-dark .card-badge {
    background: rgba(18, 18, 22, 0.88);
    color: #f5f5f7;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
body.theme-dark .work-card-media {
    background: #18181f;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
body.theme-dark .card-play-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #09090b;
}
body.theme-dark .more-btn {
    background: #121216;
    color: #f5f5f7;
    border-color: rgba(255, 255, 255, 0.2);
}
body.theme-dark .more-btn:hover {
    background: #f5f5f7;
    color: #09090b;
}
body.theme-dark .modal-dialog {
    background: #121216;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f5f5f7;
}
body.theme-dark .modal-close {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
body.theme-dark .grid-empty {
    background: #121216;
    border-color: rgba(255, 255, 255, 0.08);
}
body.theme-dark.header-transparent .header-bar {
    background: rgba(9, 9, 11, calc(var(--hp) * 0.9));
    border-color: rgba(255, 255, 255, calc(var(--hp) * 0.1));
}
body.theme-dark.accent-ink .header-cta-btn {
    background: #f5f5f7;
    color: #09090b;
}

/* Cream Mode Overrides */
body.theme-cream .header-bar {
    background: rgba(249, 248, 244, calc(1 - (var(--hp) * 0.2)));
    border-color: rgba(24, 23, 21, 0.08);
}
body.theme-cream .work-card-media {
    background: #e8e5dc;
}
body.theme-cream .more-btn {
    background: #f9f8f4;
}

/* Titanium Mode Overrides */
body.theme-titanium .header-bar {
    background: rgba(241, 245, 249, calc(1 - (var(--hp) * 0.2)));
    border-color: rgba(15, 23, 42, 0.08);
}
body.theme-titanium .work-card-media {
    background: #cbd5e1;
}
body.theme-titanium .more-btn {
    background: #f1f5f9;
}

.nav-desktop a {
    position: relative;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.55rem 0.85rem;
    color: var(--ink);
    opacity: 0.72;
    transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}

.nav-desktop a::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.25rem;
    height: 1.5px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

.nav-desktop a:hover {
    opacity: 1;
}

.nav-desktop a:hover::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    left: 11px;
    right: 11px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle.is-open span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle.is-open span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    display: grid;
    place-content: center;
    padding: 5rem 2rem;
    gap: 2rem;
}

.mobile-nav[hidden] { display: none; }

.mobile-nav-kicker {
    text-align: center;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 600;
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    text-align: center;
}

.mobile-nav a {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 8vw, 3.4rem);
    letter-spacing: -0.02em;
    transition: color 0.25s var(--ease);
}

.mobile-nav a:hover { color: var(--muted); }

/* ==========================================================================
   HERO SECTION (Full Screen 100vh)
   ========================================================================== */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    object-fit: cover;
    object-position: center;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.08) 42%, rgba(0,0,0,0.58) 100%);
    pointer-events: none;
}

.hero-copy {
    position: absolute;
    left: max(2rem, 7vw);
    bottom: 13vh;
    color: #fff;
    max-width: 22ch;
    z-index: 2;
}

.hero-kicker {
    margin-bottom: 0.9rem;
    font-size: 0.74rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.hero-copy h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(3.8rem, 10vw, 9.4rem);
    line-height: 0.88;
    letter-spacing: -0.04em;
    color: #ffffff;
    text-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}

.hero-sub {
    margin-top: 1.25rem;
    max-width: 32ch;
    font-size: 1.05rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
}

.hero-scroll {
    position: absolute;
    right: max(2rem, 6vw);
    bottom: 6.5vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    z-index: 2;
    opacity: 0.88;
    transition: opacity 0.3s var(--ease);
}

.hero-scroll:hover { opacity: 1; }

.hero-scroll i {
    display: block;
    width: 1.5px;
    height: 48px;
    background: linear-gradient(#fff, transparent);
    animation: scrollPulse 2s var(--ease) infinite;
}

/* ==========================================================================
   PORTFOLIO SECTIONS (Video, Grafik Tasarım, Video Edits)
   ========================================================================== */

.portfolio-section {
    padding: 7.5rem 0 3.5rem;
    background: var(--bg);
    position: relative;
}

.section-head {
    margin-bottom: 2.8rem;
}

.section-head h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.6rem, 5.2vw, 4.4rem);
    letter-spacing: -0.035em;
    line-height: 1;
    color: var(--ink);
}

.page-hero {
    padding: 8.5rem 0 2rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.page-kicker {
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 1rem;
}

.page-kicker a { color: var(--ink); }

.page-hero-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.page-hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(3rem, 6.5vw, 5.4rem);
    letter-spacing: -0.035em;
    line-height: 0.95;
    color: var(--ink);
}

.page-count {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
}

.archive-section {
    padding-top: 3.5rem;
}

/* ==========================================================================
   WORK CARDS & GRID
   ========================================================================== */

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.4rem 1.6rem;
    position: relative;
}

.work-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    overflow: visible;
    position: relative;
}

.work-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-card, 20px);
    background: #eeece7;
    aspect-ratio: 16 / 10;
    transform-origin: center center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04),
                inset 0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: transform 0.45s var(--ease);
    will-change: transform;
}

.work-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    opacity: 1;
    filter: none;
    transition: transform 0.65s var(--ease);
}

/* Hover effects */
.work-card.is-hovered {
    z-index: 10;
}

.work-card.is-hovered .work-card-media {
    transform: scale(1.05);
    box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.14),
                inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

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

.work-card.is-push-left .work-card-media {
    transform: translateX(-14px);
}

.work-card.is-push-right .work-card-media {
    transform: translateX(14px);
}

/* Play Badge */
.card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: grid;
    place-items: center;
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    opacity: 0.88;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), background 0.35s var(--ease);
    pointer-events: none;
}

.card-play-btn svg {
    width: 20px;
    height: 20px;
    margin-left: 3px;
}

.work-card:hover .card-play-btn {
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 1;
    background: #ffffff;
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Card Caption */
.work-card-info {
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    padding-inline: 0.2rem;
}

.work-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
    line-height: 1.3;
}

.work-card-desc {
    font-size: 0.84rem;
    color: var(--muted);
    font-weight: 400;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Empty State */
.grid-empty {
    display: grid;
    place-items: center;
    gap: 1.1rem;
    min-height: 260px;
    padding: 4rem 1rem;
    color: var(--muted);
    text-align: center;
}

.empty-frame {
    width: 80px;
    height: 52px;
    border: 1.5px dashed rgba(13, 13, 15, 0.2);
    border-radius: 14px;
}

/* ==========================================================================
   "DAHA FAZLASI" BUTTON
   ========================================================================== */

.section-cta {
    display: flex;
    justify-content: center;
    padding-top: 3.8rem;
}

.more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 52px;
    padding: 0.95rem 2.6rem;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: #ffffff;
    color: var(--ink);
    transition: background 0.35s var(--ease),
                color 0.35s var(--ease),
                transform 0.35s var(--ease),
                box-shadow 0.35s var(--ease);
}

.btn-arrow {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    position: relative;
    transition: transform 0.35s var(--ease);
}

.btn-arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: -3.5px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.more-btn:hover {
    background: var(--ink);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -4px rgba(10, 10, 12, 0.16);
}

.more-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   SITE FOOTER (Minimalist Clean White Style)
   ========================================================================== */

.site-footer {
    padding: 5.5rem 0 2.5rem;
    background: var(--bg);
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--line);
}

.footer-brand {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.footer-brand .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
}

.footer-brand-title {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
}

.footer-brand-desc {
    margin-top: 0.3rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.footer-note {
    margin-top: 0.8rem;
    font-size: 0.84rem;
    max-width: 36ch;
    color: var(--soft);
}

.footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.col-title {
    display: block;
    margin-bottom: 1.1rem;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    font-weight: 700;
}

.footer-nav a,
.footer-links-list a,
.footer-soon {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.86rem;
    color: var(--muted);
    transition: color 0.25s var(--ease);
}

.footer-nav a:hover,
.footer-links-list a:hover {
    color: var(--ink);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    font-size: 0.82rem;
}

.copyright-link {
    color: var(--ink);
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
    padding-bottom: 2px;
}

.copyright-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    opacity: 0.4;
    transition: opacity 0.25s;
}

.copyright-link:hover::after {
    opacity: 1;
}

.footer-brand-sub {
    color: var(--soft);
}

/* ==========================================================================
   MODAL / LIGHTBOX
   ========================================================================== */

.modal[hidden] { display: none; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 12, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.modal-dialog {
    position: relative;
    width: min(1140px, 100%);
    max-height: calc(100dvh - 3rem);
    overflow: auto;
    transform-origin: center;
    z-index: 2;
}

.modal.is-open .modal-backdrop { animation: fadeIn 0.35s var(--ease); }
.modal.is-open .modal-dialog { animation: popIn 0.42s var(--ease); }
.modal.is-leaving .modal-backdrop { animation: fadeOut 0.24s var(--ease) forwards; }
.modal.is-leaving .modal-dialog { animation: popOut 0.24s var(--ease) forwards; }

.modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #ffffff;
    display: grid;
    place-items: center;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: rotate(90deg);
}

.modal-media {
    background: #000000;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4),
                inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.modal-media img,
.modal-media video,
.modal-media iframe {
    width: 100%;
    max-height: min(82dvh, 920px);
    object-fit: contain;
    margin: 0 auto;
}

.modal-media iframe {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 45vh;
    border: 0;
}

.modal-meta {
    color: #ffffff;
    padding: 1.2rem 0.2rem 0;
}

.modal-meta h3 {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.modal-meta p {
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 300;
    font-size: 0.92rem;
}

.modal-meta p:empty,
.modal-meta h3:empty { display: none; }

/* ==========================================================================
   ANIMATIONS & REVEAL
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
}

.reveal.is-visible {
    animation: riseIn 0.85s var(--ease) forwards;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }

@keyframes popIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes popOut {
    to { opacity: 0; transform: scale(0.96); }
}

@keyframes riseIn {
    to { opacity: 1; transform: none; }
}

@keyframes scrollPulse {
    0% { transform: scaleY(0.35); transform-origin: top; opacity: 0.25; }
    50% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(0.35); transform-origin: bottom; opacity: 0.25; }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 960px) {
    .nav-desktop { display: none; }
    .nav-toggle { display: block; }
    .wrap { width: min(1320px, calc(100% - 2rem)); }
    .work-grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1rem; }
    .work-card-media { border-radius: 16px; }
    .hero-copy { max-width: 90%; bottom: 12vh; }
    .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .page-hero-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .work-grid { grid-template-columns: 1fr; gap: 2rem; }
    .page-hero { padding-top: 6.2rem; }
    .portfolio-section { padding-top: 5rem; }
    .brand-text small { display: none; }
    .hero-scroll { display: none; }
    .footer-cols { grid-template-columns: 1fr; gap: 1.8rem; }
    .modal-close { top: 8px; right: 8px; }
}

@media (hover: none) {
    .work-card.is-hovered .work-card-media,
    .work-card.is-hovered img,
    .work-card.is-push-left .work-card-media,
    .work-card.is-push-right .work-card-media { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .work-card-media,
    .work-card img,
    .more-btn,
    .reveal,
    .hero-scroll i { transition: none !important; animation: none !important; opacity: 1; transform: none; }
}
