/* ============================================
   1017STUDIOS — GLOBAL STYLES v2
   Warm Dark Theme — easier on the eyes
   ============================================ */

:root {
    --bg:         #141414;
    --bg-2:       #1c1c1c;
    --bg-3:       #232323;
    --bg-card:    #1a1a1a;
    --border:     rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.18);

    --white:      #f0ede8;
    --white-pure: #ffffff;
    --off-white:  #e8e4de;
    --mid-gray:   #888;
    --light-gray: #555;

    --accent:     #d4c5a9;
    --accent-2:   #c8b896;

    --font-display: 'Bebas Neue', sans-serif;
    --font-serif:   'Instrument Serif', serif;
    --font-body:    'DM Sans', sans-serif;

    --nav-h:      86px;
    --section-gap: clamp(80px, 12vw, 160px);
    --container:  1320px;
    --ease:       cubic-bezier(0.16, 1, 0.3, 1);

    --shadow-sm:  0 2px 12px rgba(0,0,0,0.4);
    --shadow-md:  0 8px 32px rgba(0,0,0,0.5);
    --shadow-lg:  0 24px 64px rgba(0,0,0,0.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* ---- NOISE OVERLAY ---- */
.noise-overlay {
    position: fixed; inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.022;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px;
}

/* ================================================
   CUSTOM CURSOR — always visible, never lost
   ================================================ */
.cursor {
    width: 10px; height: 10px;
    background: #f0ede8;
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    will-change: left, top;
    transition: width 0.18s, height 0.18s, opacity 0.18s;
    /* mix-blend-mode makes it visible on ANY background */
    mix-blend-mode: difference;
}
.cursor.hover { width: 18px; height: 18px; }

.cursor-follower {
    width: 40px; height: 40px;
    border: 1.5px solid rgba(240,237,232,0.3);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    will-change: left, top;
    transition: width 0.28s var(--ease),
                height 0.28s var(--ease),
                border-color 0.28s,
                opacity 0.2s;
}
.cursor-follower.hover {
    width: 64px; height: 64px;
    border-color: rgba(240,237,232,0.5);
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 { line-height: 1; letter-spacing: -0.02em; }
h1 { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 14rem); }
h2 { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 8rem); }
h3 { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.5vw, 2.2rem); font-style: italic; }
p  { color: rgba(240,237,232,0.58); font-weight: 300; }
a  { text-decoration: none; color: inherit; }

.label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--mid-gray);
    font-weight: 500;
}

/* ---- LAYOUT ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px); }
.section   { padding: var(--section-gap) 0; }

/* ================================================
   NAVIGATION
   ================================================ */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 1000;
    transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(20,20,20,0.93);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: var(--border);
}
.nav-inner {
    max-width: var(--container); margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
    height: 100%;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-img  { height: 40px; width: auto; filter: brightness(0) invert(0.92); flex-shrink: 0; }

/* Tagline beside logo — hidden on scroll, visible always */
.nav-logo-tag {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(240,237,232,0.3);
    font-family: var(--font-body);
    font-weight: 400;
    padding-left: 12px;
    border-left: 1px solid rgba(240,237,232,0.12);
    line-height: 1.3;
    white-space: nowrap;
    transition: opacity 0.3s;
}
@media (max-width: 900px) { .nav-logo-tag { display: none; } }

.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-link {
    font-size: 0.82rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(240,237,232,0.48);
    transition: color 0.2s;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute; bottom: -4px; left: 0; right: 100%;
    height: 1px; background: var(--accent);
    transition: right 0.3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { right: 0; }

.nav-cta {
    font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase;
    font-weight: 500; padding: 10px 22px;
    border: 1px solid rgba(240,237,232,0.22);
    color: var(--white); transition: all 0.25s; background: transparent;
}
.nav-cta:hover { background: var(--white); color: var(--bg); border-color: var(--white); }

.nav-hamburger {
    display: none; flex-direction: column; gap: 6px;
    background: none; border: none; cursor: none; padding: 4px;
}
.nav-hamburger span {
    display: block; width: 24px; height: 1px; background: var(--white);
    transition: all 0.3s var(--ease); transform-origin: center;
}
.nav-hamburger.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-hamburger.open span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    position: fixed; inset: 0; background: var(--bg); z-index: 999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu-inner { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.mobile-link {
    font-family: var(--font-display); font-size: clamp(2.5rem, 10vw, 5rem);
    color: rgba(240,237,232,0.15); transition: color 0.2s; letter-spacing: 0.05em;
}
.mobile-link:hover { color: var(--white); }

/* ================================================
   BUTTONS
   ================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
    font-weight: 500; padding: 15px 34px;
    border: 1px solid rgba(240,237,232,0.22);
    color: var(--white); background: transparent; cursor: none;
    transition: all 0.25s var(--ease);
    position: relative; overflow: hidden;
}
.btn::before {
    content: ''; position: absolute; inset: 0;
    background: var(--white); transform: translateY(101%);
    transition: transform 0.3s var(--ease);
}
.btn:hover { color: var(--bg); border-color: var(--white); }
.btn:hover::before { transform: translateY(0); }
.btn span { position: relative; z-index: 1; }
.btn svg  { position: relative; z-index: 1; transition: transform 0.25s; }
.btn:hover svg { transform: translateX(4px); }

.btn-dark { background: var(--white); color: var(--bg); border-color: var(--white); }
.btn-dark::before { background: var(--bg-3); }
.btn-dark:hover   { color: var(--white); border-color: var(--bg-3); }

/* ================================================
   HERO
   ================================================ */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 0 clamp(20px, 5vw, 60px) 8vh;
    position: relative; overflow: hidden;
    background: var(--bg);
}
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 55% 55% at 75% 35%, rgba(212,197,169,0.055) 0%, transparent 70%),
        radial-gradient(ellipse 35% 35% at 20% 72%, rgba(255,255,255,0.022) 0%, transparent 60%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid-line { position: absolute; background: rgba(255,255,255,0.03); }
.hero-grid-line.v { width: 1px; top: 0; bottom: 0; }
.hero-grid-line.h { height: 1px; left: 0; right: 0; }

.hero-eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 2rem; }
.hero-eyebrow-line { width: 40px; height: 1px; background: rgba(240,237,232,0.22); }
.hero-content { max-width: var(--container); margin: 0 auto; width: 100%; position: relative; z-index: 1; }
.hero-title   { margin-bottom: 2rem; }
.hero-title span { display: block; }
.hero-title .italic { font-family: var(--font-serif); font-style: italic; color: var(--accent); }
.hero-sub { display: grid; grid-template-columns: 1fr 1fr; align-items: flex-end; gap: 2rem; }
.hero-desc { font-size: 1rem; max-width: 400px; line-height: 1.75; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }

.hero-scroll-indicator {
    position: absolute; right: clamp(20px, 5vw, 60px); top: 50%;
    transform: translateY(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    writing-mode: vertical-rl; z-index: 1;
}
.hero-scroll-text { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid-gray); }
.hero-scroll-line {
    width: 1px; height: 60px;
    background: linear-gradient(to bottom, rgba(240,237,232,0.28), transparent);
    animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ================================================
   MARQUEE
   ================================================ */
.marquee-section {
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 1.1rem 0; overflow: hidden; background: var(--bg-2);
}
.marquee-track {
    display: flex; gap: 4rem; align-items: center;
    animation: marquee 28s linear infinite; width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
    font-family: var(--font-display); font-size: clamp(0.9rem, 2vw, 1.25rem);
    letter-spacing: 0.12em; color: rgba(240,237,232,0.18);
    white-space: nowrap; display: flex; align-items: center; gap: 4rem;
}
.marquee-dot { width: 4px; height: 4px; background: var(--accent-2); opacity: 0.4; border-radius: 50%; flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ================================================
   SERVICES
   ================================================ */
.services-header {
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: flex-end; gap: 2rem; margin-bottom: 5rem;
}
.services-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    border: 1px solid var(--border); border-radius: 2px; overflow: hidden;
}
.service-card {
    padding: clamp(2rem, 4vw, 3.5rem);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s; background: var(--bg-card);
}
.service-card:nth-child(2n) { border-right: none; }
.service-card:nth-last-child(-n+2) { border-bottom: none; }
.service-card:hover { background: var(--bg-3); }
.service-num { font-family: var(--font-display); font-size: 0.85rem; color: rgba(240,237,232,0.1); letter-spacing: 0.1em; margin-bottom: 2rem; }
.service-icon { width: 44px; height: 44px; margin-bottom: 1.5rem; color: var(--accent); opacity: 0.7; }
.service-card h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-style: normal; letter-spacing: 0.05em; margin-bottom: 1rem; color: var(--white); }
.service-card p  { font-size: 0.9rem; line-height: 1.75; }
.service-tags    { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.service-tag {
    font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 4px 11px; border: 1px solid var(--border); color: rgba(240,237,232,0.32); border-radius: 1px;
    transition: border-color 0.2s, color 0.2s;
}
.service-tag:hover { border-color: var(--border-hover); color: var(--white); }

/* ================================================
   PORTFOLIO
   ================================================ */
.portfolio-header { margin-bottom: 4rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem; }
.portfolio-item { position: relative; overflow: hidden; cursor: none; border-radius: 2px; }
.portfolio-item:nth-child(1) { grid-column: span 7; }
.portfolio-item:nth-child(2) { grid-column: span 5; }
.portfolio-item:nth-child(3) { grid-column: span 5; }
.portfolio-item:nth-child(4) { grid-column: span 7; }
.portfolio-item:nth-child(5) { grid-column: span 12; }

.portfolio-img {
    width: 100%; aspect-ratio: 16/10; object-fit: cover;
    filter: grayscale(100%) brightness(0.82);
    transition: transform 0.6s var(--ease), filter 0.4s; display: block;
}
.portfolio-item:nth-child(5) .portfolio-img { aspect-ratio: 21/9; }
.portfolio-item:hover .portfolio-img { transform: scale(1.04); filter: grayscale(40%) brightness(0.88); }
.portfolio-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(14,14,14,0.95) 0%, rgba(14,14,14,0.3) 50%, transparent 100%);
    padding: 1.25rem;
    display: flex; flex-direction: column; justify-content: flex-end;
    gap: 0.2rem;
    opacity: 0; transition: opacity 0.35s;
    overflow: hidden;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

/* Label inside overlay — smaller, single line */
.portfolio-overlay .label {
    font-size: .6rem;
    letter-spacing: .14em;
    color: rgba(240,237,232,.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Title — clamp font size so it never overflows small cards */
.portfolio-overlay h4 {
    font-family: var(--font-display);
    font-size: clamp(.95rem, 1.8cqi, 1.5rem);
    letter-spacing: .04em;
    margin: 0;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Client name */
.portfolio-overlay .po-client {
    font-size: .72rem;
    color: rgba(240,237,232,.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    margin: 0;
}

/* Action link row */
.portfolio-overlay .po-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .65rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--white);
    border-bottom: 1px solid rgba(240,237,232,.3);
    padding-bottom: 2px;
    margin-top: .3rem;
    width: fit-content;
    white-space: nowrap;
}
.portfolio-placeholder { background: var(--bg-3); display: flex; align-items: center; justify-content: center; }

/* ================================================
   STATS (light bg)
   ================================================ */
.stats-section { background: var(--off-white); color: #1c1c1c; }
.stats-section p { color: rgba(28,28,28,0.55); }
.stats-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.stats-text h2   { color: #1c1c1c; }
.stats-text .label { color: rgba(28,28,28,0.4); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.stat-num { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 6rem); color: #1c1c1c; line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(28,28,28,0.38); }

/* ================================================
   TESTIMONIALS
   ================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.testimonial-card {
    border: 1px solid var(--border); padding: 2.5rem;
    background: var(--bg-card); transition: border-color 0.3s, background 0.3s; border-radius: 2px;
}
.testimonial-card:hover { border-color: var(--border-hover); background: var(--bg-3); }
.testimonial-quote { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; line-height: 1.65; color: rgba(240,237,232,0.8); margin-bottom: 2rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-3); object-fit: cover; filter: grayscale(100%); flex-shrink: 0; }
.testimonial-name { font-size: 0.84rem; font-weight: 500; color: var(--white); }
.testimonial-role { font-size: 0.73rem; color: var(--mid-gray); }

/* ================================================
   CONTACT
   ================================================ */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-info p  { margin-bottom: 2.5rem; }
.contact-methods { display: flex; flex-direction: column; gap: 0.85rem; }
.contact-method {
    display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.5rem;
    border: 1px solid var(--border); background: var(--bg-card); transition: all 0.25s; border-radius: 2px;
}
.contact-method:hover { border-color: var(--border-hover); background: var(--bg-3); }
.contact-method svg { flex-shrink: 0; opacity: 0.5; }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group   { display: flex; flex-direction: column; gap: 0.45rem; }
.form-label   { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mid-gray); }
.form-input, .form-textarea, .form-select {
    background: var(--bg-2); border: 1px solid var(--border);
    color: var(--white); padding: 13px 16px;
    font-family: var(--font-body); font-size: 0.92rem;
    outline: none; transition: border-color 0.25s, background 0.25s;
    width: 100%; border-radius: 2px;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: rgba(240,237,232,0.3); background: var(--bg-3); }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(240,237,232,0.18); }
.form-textarea { resize: vertical; min-height: 130px; }
.form-select option { background: var(--bg-2); }

/* ================================================
   FOOTER
   ================================================ */
.footer { border-top: 1px solid var(--border); padding: 5rem 0 2.5rem; background: var(--bg-2); }
.footer-grid {
    max-width: var(--container); margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem; margin-bottom: 4rem;
}
.footer-logo    { height: 42px; width: auto; filter: brightness(0) invert(0.88); margin-bottom: 1.2rem; }
.footer-tagline { font-size: 0.87rem; color: rgba(240,237,232,0.28); max-width: 240px; }
.footer-heading { font-size: 0.67rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.5rem; color: rgba(240,237,232,0.22); }
.footer-link { display: flex; align-items: center; gap: 8px; font-size: 0.87rem; color: rgba(240,237,232,0.38); transition: color 0.2s; margin-bottom: 0.75rem; }
.footer-link:hover { color: var(--white); }
.footer-bottom {
    max-width: var(--container); margin: 0 auto;
    padding: 2rem clamp(20px, 5vw, 60px) 0;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.77rem; color: rgba(240,237,232,0.2); }

/* ================================================
   WA FLOAT
   ================================================ */
.wa-float {
    position: fixed; bottom: 2rem; right: 2rem;
    display: flex; align-items: center; gap: 10px;
    background: var(--white); color: var(--bg);
    padding: 12px 20px 12px 14px; z-index: 500;
    box-shadow: var(--shadow-md); transition: all 0.25s var(--ease);
    font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 2px;
}
.wa-float svg { width: 20px; height: 20px; flex-shrink: 0; }
.wa-float:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ================================================
   ADMIN LAYOUT
   ================================================ */
.admin-layout { display: flex; min-height: 100vh; background: var(--bg); }
.admin-sidebar {
    width: 255px; flex-shrink: 0;
    border-right: 1px solid var(--border);
    position: fixed; top: 0; left: 0; bottom: 0;
    overflow-y: auto; background: var(--bg-2);
    scrollbar-width: thin; scrollbar-color: var(--bg-3) transparent;
}
.admin-sidebar-logo {
    padding: 1.6rem 1.5rem; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: var(--bg-2); z-index: 10;
}
.admin-sidebar-logo img { height: 34px; filter: brightness(0) invert(0.9); }
.admin-nav { padding: 1rem 0; }
.admin-nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 1.5rem; font-size: 0.83rem;
    color: rgba(240,237,232,0.36); transition: all 0.18s; letter-spacing: 0.03em;
    border-left: 2px solid transparent; width: 100%; text-align: left;
    background: none; border-top: none; border-right: none; border-bottom: none;
    font-family: var(--font-body); cursor: none;
}
.admin-nav-item:hover { color: var(--white); background: rgba(255,255,255,0.03); }
.admin-nav-item.active { color: var(--white); background: rgba(255,255,255,0.05); border-left-color: var(--accent); }
.admin-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.65; }
.admin-nav-section { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(240,237,232,0.17); padding: 1.4rem 1.5rem 0.4rem; }

.admin-main { margin-left: 255px; flex: 1; min-width: 0; }
.admin-topbar {
    height: 62px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2rem;
    background: rgba(20,20,20,0.88); backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 100;
}
.admin-content { padding: 2.5rem; }
.admin-page-title { font-family: var(--font-display); font-size: 2.4rem; letter-spacing: 0.05em; margin-bottom: 0.4rem; color: var(--white); }
.admin-page-sub   { font-size: 0.82rem; color: var(--mid-gray); margin-bottom: 2.5rem; }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.admin-stat-card {
    border: 1px solid var(--border); padding: 1.5rem;
    background: var(--bg-card); transition: border-color 0.2s, background 0.2s; border-radius: 2px;
}
.admin-stat-card:hover { border-color: var(--border-hover); background: var(--bg-3); }
.admin-stat-value { font-family: var(--font-display); font-size: 2.4rem; margin-bottom: 0.2rem; color: var(--white); }
.admin-stat-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid-gray); }

.admin-table-wrap { border: 1px solid var(--border); border-radius: 2px; overflow: hidden; background: var(--bg-card); }
.admin-table-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--border); background: var(--bg-2);
}
.admin-table-title { font-size: 0.76rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(240,237,232,0.45); }

table { width: 100%; border-collapse: collapse; }
thead th {
    text-align: left; padding: 0.9rem 1.5rem;
    font-size: 0.67rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: rgba(240,237,232,0.26); border-bottom: 1px solid var(--border); background: var(--bg-2);
}
tbody td { padding: 0.95rem 1.5rem; font-size: 0.85rem; color: rgba(240,237,232,0.68); border-bottom: 1px solid rgba(255,255,255,0.04); }
tbody tr:hover td { background: rgba(255,255,255,0.02); }
tbody tr:last-child td { border-bottom: none; }

.badge { display: inline-block; padding: 3px 9px; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 1px; }
.badge-active { color: rgba(212,197,169,0.85); border-color: rgba(212,197,169,0.22); }
.badge-draft  { color: var(--mid-gray); border-color: rgba(255,255,255,0.1); }

.admin-form     { display: flex; flex-direction: column; gap: 1.4rem; max-width: 720px; }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.admin-section-card { border: 1px solid var(--border); padding: 1.8rem; margin-bottom: 1.5rem; background: var(--bg-card); border-radius: 2px; }
.admin-section-card-title { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(240,237,232,0.26); margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }

.action-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 13px; font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase;
    border: 1px solid var(--border); color: rgba(240,237,232,0.5);
    transition: all 0.18s; cursor: none; background: none; border-radius: 1px; font-family: var(--font-body);
}
.action-btn:hover { border-color: var(--border-hover); color: var(--white); background: rgba(255,255,255,0.04); }
.action-btn.danger { border-color: rgba(220,80,80,0.18); color: rgba(220,110,110,0.6); }
.action-btn.danger:hover { border-color: rgba(220,80,80,0.45); color: rgb(230,100,100); background: rgba(220,80,80,0.05); }

.flash-message {
    background: rgba(212,197,169,0.07); border: 1px solid rgba(212,197,169,0.18);
    padding: 1rem 1.4rem; margin-bottom: 1.5rem; font-size: 0.85rem;
    color: var(--accent); border-radius: 2px; transition: opacity 0.4s;
}

/* ================================================
   ANIMATIONS
   ================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.visible   { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: 1fr; }
    .service-card  { border-right: none; }
    .service-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
    .service-card:last-child  { border-bottom: none; }
    .portfolio-item:nth-child(n) { grid-column: span 12; }
    .stats-inner  { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .contact-inner { grid-template-columns: 1fr; }
    .footer-grid  { grid-template-columns: 1fr 1fr; }
    .admin-stats  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --nav-h: 62px; }
    .nav-links    { display: none; }
    .nav-hamburger { display: flex; }
    .hero-sub     { grid-template-columns: 1fr; }
    .hero-actions { justify-content: flex-start; }
    .hero-scroll-indicator { display: none; }
    .services-header { grid-template-columns: 1fr; }
    .stats-grid   { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .admin-sidebar { position: static; width: 100%; }
    .admin-main   { margin-left: 0; }
    .admin-stats  { grid-template-columns: 1fr 1fr; }
    .admin-form-row { grid-template-columns: 1fr; }

    /* Mobile: restore native cursor */
    body { cursor: auto; }
    .cursor, .cursor-follower { display: none !important; }
}
