/* ===========================
   光场 LightField Studio
   Glitch&Grit-style — dark, editorial, oversized type
   =========================== */

:root {
    --black: #0c0c0c;
    --bg: #0c0c0c;
    --white: #f4f2ee;
    --cream: #f4f2ee;
    --gray-400: #9a978f;
    --gray-500: #6f6d67;
    --gray-600: #4a4844;
    --line: rgba(244,242,238,0.14);
    --accent: #e8523f;
    --font-display: 'Bebas Neue', 'Noto Sans SC', sans-serif;
    --font-sans: 'Geist', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --pad: 32px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== Accessible focus =====
   Only shows for keyboard users (:focus-visible), never on mouse click.
   Accent ring reads clearly on both the dark and the cream backgrounds. */
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}
/* form fields keep their own bottom-border focus but also get the ring */
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* ===== Film grain overlay =====
   Fixed, non-interactive texture layer over everything (below the lightbox).
   Kept very subtle so it reads as filmic noise, not visible dots. */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}
.info-page::after { mix-blend-mode: multiply; opacity: 0.04; }

/* ===== Navigation =====
   Persistent nav stays high-contrast via a subtle scrim + text-shadow
   (no mix-blend-mode — that produced low-contrast mid-grey on neutral
   covers). On bright covers it flips to dark text via .on-light. */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px var(--pad);
    color: #fff;
    text-shadow: 0 1px 14px rgba(0,0,0,0.55);
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
/* subtle scrim behind the nav so text stays high-contrast on any cover */
.nav::before {
    content: '';
    position: absolute;
    left: -40px; right: -40px; top: -40px;
    height: 150px;
    background: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0));
    pointer-events: none;
    z-index: -1;
}
/* on bright covers, flip nav text to dark for contrast */
.nav.on-light { color: #0c0c0c; text-shadow: 0 1px 14px rgba(255,255,255,0.6); }
.nav.on-light::before { background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0)); }
/* hide-on-scroll-down, show-on-scroll-up */
.nav.nav-hidden { transform: translateY(-110%); }

.nav-logo {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 0.04em;
    line-height: 1;
    transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.65; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-link {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: currentColor;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: currentColor;
    transition: width var(--transition);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ===== Main ===== */
.main { min-height: 100vh; min-height: 100dvh; }

/* ============================================================
   HOME — full-screen project slides
   ============================================================ */
.home-slides {
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.home-slides::-webkit-scrollbar { display: none; }
.home-slide {
    position: relative;
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.home-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    will-change: transform;
    backface-visibility: hidden;
}
.home-slide-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    transition: transform 1.4s cubic-bezier(0.22,1,0.36,1);
}
/* Ken Burns slow zoom while the slide is active */
.home-slide.is-active .home-slide-bg img {
    transform: scale(1.0);
    will-change: transform;
    animation: kenburns 12s ease-out forwards;
}
@keyframes kenburns {
    from { transform: scale(1.0); }
    to   { transform: scale(1.08); }
}
.home-slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.12) 32%, rgba(0,0,0,0.18) 55%, rgba(0,0,0,0.7) 100%),
        linear-gradient(90deg, rgba(0,0,0,0) 58%, rgba(0,0,0,0.4) 100%);
}
.home-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 var(--pad);
}
/* --- staggered entrance: children start hidden, reveal when slide is active --- */
.home-slide-content > * {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1),
                transform 0.9s cubic-bezier(0.22,1,0.36,1);
}
.home-slide.is-active .home-slide-content > *,
.home-slide:first-child .home-slide-content > * {
    opacity: 1;
    transform: translateY(0);
}
.home-slide.is-active .home-slide-cats,
.home-slide:first-child .home-slide-cats   { transition-delay: 0.15s; }
.home-slide.is-active .home-slide-title,
.home-slide:first-child .home-slide-title  { transition-delay: 0.28s; }
.home-slide.is-active .home-slide-link,
.home-slide.is-active .home-slide-status,
.home-slide:first-child .home-slide-link,
.home-slide:first-child .home-slide-status { transition-delay: 0.45s; }

/* safety net: if JS is late or fails, at least the first slide is readable */
.home-slide:first-child .home-slide-title .char {
    opacity: 1;
    filter: blur(0);
    transform: none;
}

/* --- per-character title reveal (JS wraps each glyph in .char) ---
   When split is active the title container shows instantly and each
   character rises/rotates in on its own stagger delay. */
.home-slide-title.has-split {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
}
.home-slide-title .char {
    display: inline-block;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(0.5em) scale(1.06);
    transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1),
                filter 0.65s cubic-bezier(0.22,1,0.36,1),
                transform 0.65s cubic-bezier(0.22,1,0.36,1);
    will-change: transform, opacity, filter;
}
.home-slide-title .char.space { width: 0.28em; }
.home-slide.is-active .home-slide-title .char {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

.home-slide-cats {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}
.home-slide-cats span {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    padding: 5px 14px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 100px;
    backdrop-filter: blur(2px);
}
.home-slide-title {
    font-family: var(--font-display);
    font-size: clamp(56px, 10vw, 150px);
    line-height: 0.9;
    letter-spacing: 0.01em;
    color: var(--slide-color, #fff);
    margin-bottom: 28px;
    text-shadow: 0 2px 40px rgba(0,0,0,0.45);
}
.home-slide-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #fff;
    padding: 13px 30px;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
    z-index: 0;
    transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1),
                transform 0.9s cubic-bezier(0.22,1,0.36,1),
                border-color var(--transition);
}
.home-slide-link-text {
    position: relative;
    z-index: 1;
    mix-blend-mode: exclusion;
}
/* wipe-fill hover */
.home-slide-link::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.home-slide-link:hover { border-color: #fff; }
.home-slide-link:hover::before { transform: scaleX(1); }
.home-slide-status {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}

/* persistent scroll hint on home */
.home-scroll-hint {
    position: fixed;
    left: 50%; bottom: 26px;
    transform: translateX(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 12px rgba(0,0,0,0.6);
    pointer-events: none;
    transition: opacity var(--transition);
}
.home-scroll-hint.on-light { color: #0c0c0c; text-shadow: 0 1px 12px rgba(255,255,255,0.6); }
.home-scroll-hint .line {
    width: 1px; height: 34px;
    background: currentColor;
    transform-origin: top;
    animation: scrollLine 1.9s cubic-bezier(0.76,0,0.24,1) infinite;
}
@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    45%  { transform: scaleY(1); transform-origin: top; }
    55%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* slide index counter (right side, persistent) */
.home-counter {
    position: fixed;
    right: var(--pad); top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    color: #fff;
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.55));
    pointer-events: none;
}
.home-counter.on-light { color: #0c0c0c; filter: drop-shadow(0 0 6px rgba(255,255,255,0.55)); }
.home-counter .dot {
    width: 7px; height: 7px;
    border: 1px solid currentColor;
    border-radius: 50%;
    transition: all var(--transition);
}
.home-counter .dot.active { background: currentColor; transform: scale(1.3); }

/* ============================================================
   WORK — 3-column grid
   ============================================================ */
.work-page .main,
.work-page { background: var(--bg); }
.work-header {
    padding: 120px var(--pad) 40px;
}
.filter-bar {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 4px;
}
.filter-label {
    font-size: 15px;
    color: var(--gray-500);
    margin-right: 10px;
}
.filter-options {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px;
}
.filter-link {
    font-size: 15px;
    color: var(--gray-500);
    transition: color var(--transition);
}
.filter-link:hover, .filter-link.active { color: var(--white); }
.filter-comma { color: var(--gray-500); margin-right: 8px; }

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 0 var(--pad);
}
.work-card { display: block; group: card; }
.work-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #1a1a1a;
}
.work-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.work-card:hover .work-card-img img { transform: scale(1.05); }
.work-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 64px;
    color: var(--gray-600);
}
.work-card-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 4px 32px;
}
.work-card-num {
    font-size: 12px;
    color: var(--gray-500);
    font-variant-numeric: tabular-nums;
}
.work-card-title {
    font-size: 15px;
    font-weight: 500;
    flex: 1;
}
.work-card-status {
    font-size: 12px;
    color: var(--gray-500);
    transition: color var(--transition);
}
.work-card:hover .work-card-status { color: var(--white); }
.work-footer {
    padding: 40px var(--pad) 200px;
    text-align: center;
}
.work-footer-title {
    font-family: var(--font-display);
    font-size: clamp(80px, 20vw, 300px);
    line-height: 0.8;
    color: var(--white);
}

/* ============================================================
   PROJECT DETAIL
   ============================================================ */
.project-hero {
    padding: 160px var(--pad) 60px;
}
.project-hero-cats {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}
.project-hero-cats span {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-400);
    padding: 5px 14px;
    border: 1px solid var(--line);
    border-radius: 100px;
}
.project-hero-title {
    font-family: var(--font-display);
    font-size: clamp(60px, 12vw, 200px);
    line-height: 0.86;
    color: var(--project-color, #fff);
}
.project-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    padding: 40px var(--pad) 80px;
}
.project-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}
.project-meta-block {
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.project-meta-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 8px;
}
.project-meta-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--white);
}
.project-credit-line {
    font-size: 14px;
    color: var(--white);
    margin-bottom: 6px;
}
.credit-role { color: var(--gray-500); }
.project-media { min-width: 0; }
.project-video {
    margin-bottom: 4px;
}
.project-video video,
.project-video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    display: block;
}
.project-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}
.collage-item { overflow: hidden; background: #1a1a1a; }
.collage-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.collage-item:hover img { transform: scale(1.04); }
.collage-item.item-1 { grid-column: span 2; aspect-ratio: 16/9; }
.collage-item.item-2 { aspect-ratio: 3/4; }
.collage-item.item-3 { aspect-ratio: 3/4; }
.collage-item.item-4 { grid-column: span 2; aspect-ratio: 16/9; }
.collage-item.item-5 { aspect-ratio: 1; }
.project-description {
    margin-top: 40px;
    max-width: 640px;
}
.project-description p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-400);
}
.project-back {
    padding: 0 var(--pad) 200px;
}
.project-back a {
    font-size: 14px;
    color: var(--gray-400);
    transition: color var(--transition);
}
.project-back a:hover { color: var(--white); }

/* ============================================================
   INFO — cream background
   ============================================================ */
.info-page { background: var(--cream); color: var(--black); }
.info-hero {
    padding: 180px var(--pad) 80px;
}
.info-hero-title {
    font-family: var(--font-display);
    font-size: clamp(56px, 11vw, 170px);
    line-height: 0.88;
    color: var(--black);
}
.info-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 40px var(--pad) 100px;
}
.info-intro-img img { width: 100%; }
.info-intro-text p {
    font-size: 22px;
    line-height: 1.6;
    color: #2a2a2a;
}
.info-services {
    padding: 80px var(--pad);
    border-top: 1px solid rgba(0,0,0,0.12);
}
.info-section-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: 48px;
}
.info-service-row {
    padding: 32px 0;
    border-bottom: 1px solid rgba(0,0,0,0.12);
}
.info-service-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1;
    color: var(--black);
    margin-bottom: 16px;
}
.info-service-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}
.info-service-items li {
    font-size: 15px;
    color: var(--gray-600);
}
.info-why {
    padding: 80px var(--pad) 200px;
    border-top: 1px solid rgba(0,0,0,0.12);
    max-width: 900px;
}
.info-why-text {
    font-size: 24px;
    line-height: 1.6;
    color: #2a2a2a;
}

/* ============================================================
   SERVICES page (dark)
   ============================================================ */
.services-hero { padding: 160px var(--pad) 40px; }
.services-hero-title {
    font-family: var(--font-display);
    font-size: clamp(60px, 12vw, 180px);
    line-height: 0.86;
}
.services-list { padding: 20px var(--pad) 200px; }
.service-row {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    border-top: 1px solid var(--line);
}
.service-row-num {
    font-family: var(--font-display);
    font-size: 40px;
    color: var(--gray-600);
    min-width: 60px;
}
.service-row-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1;
    margin-bottom: 14px;
}
.service-row-desc {
    font-size: 16px;
    color: var(--gray-400);
    margin-bottom: 16px;
    max-width: 640px;
}
.service-row-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}
.service-row-items li {
    font-size: 14px;
    color: var(--gray-500);
}

/* ============================================================
   CONTACT (dark)
   ============================================================ */
.contact-hero { padding: 180px var(--pad) 60px; }
.contact-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 120px);
    line-height: 0.9;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    padding: 40px var(--pad) 200px;
}
.contact-info-block {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.contact-info-block h4 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 8px;
}
.contact-info-block a {
    font-size: 20px;
    transition: color var(--transition);
}
.contact-info-block a:hover { color: var(--accent); }
.contact-form .form-group { margin-bottom: 24px; }
.contact-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    font-family: inherit;
    color: var(--white);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    transition: border-color var(--transition);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--gray-600); }
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--white);
}
.contact-submit {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #fff;
    background: transparent;
    padding: 14px 32px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition);
}
.contact-submit:hover { background: #fff; color: #000; }
.form-messages { margin-bottom: 24px; }
.form-message {
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 8px;
    border: 1px solid var(--line);
}
.form-message.success { color: #7ee08a; }
.form-message.error { color: #e8523f; }

/* ============================================================
   SCROLL-REVEAL + MICRO ANIMATIONS
   ============================================================ */
/* base reveal: fade + rise, triggered by JS adding .is-visible */
.reveal {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity 1s cubic-bezier(0.22,1,0.36,1),
                transform 1s cubic-bezier(0.22,1,0.36,1);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
/* stagger helper: children reveal one after another */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1),
                transform 0.9s cubic-bezier(0.22,1,0.36,1);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.00s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.06s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.18s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.30s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.36s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.42s; }
.reveal-stagger.is-visible > *:nth-child(n+9) { transition-delay: 0.48s; }

/* image mask-reveal: cover slides away to unveil the image */
.img-reveal { position: relative; overflow: hidden; }
.img-reveal::after {
    content: '';
    position: absolute; inset: 0;
    background: var(--bg);
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 1s cubic-bezier(0.76,0,0.24,1);
    z-index: 1;
}
.img-reveal.is-visible::after { transform: scaleX(0); }
.info-page .img-reveal::after { background: var(--cream); }
.img-reveal img { transform: scale(1.12); transition: transform 1.4s cubic-bezier(0.22,1,0.36,1); }
.img-reveal.is-visible img { transform: scale(1); }

/* work cards: subtle lift + status arrow slide on hover */
.work-card { transition: transform var(--transition); }
.work-card:hover { transform: translateY(-4px); }
.work-card-status { display: inline-block; }
.work-card:hover .work-card-status { transform: translateX(3px); }

/* respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
    .reveal, .reveal-stagger > *, .home-slide-content > *,
    .home-slide-title .char { opacity: 1 !important; transform: none !important; }
    .img-reveal::after { display: none; }
    .home-slide-bg { transform: none !important; }
}

/* trim the oversized bottom paddings that used to clear the fixed bottom bar */
.work-footer { padding-bottom: 120px; }
.project-back { padding-bottom: 140px; }
.services-list { padding-bottom: 140px; }
.info-why { padding-bottom: 140px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .work-grid { grid-template-columns: repeat(2, 1fr); }
    .project-layout { grid-template-columns: 1fr; gap: 40px; }
    .project-sidebar { position: static; }
    .info-intro { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .project-collage { grid-template-columns: 1fr; }
    .collage-item.item-1, .collage-item.item-4 { grid-column: span 1; }
}
@media (max-width: 600px) {
    :root { --pad: 18px; }
    .work-grid { grid-template-columns: 1fr; }
    .nav { padding: 18px var(--pad); }
    .service-row { flex-direction: column; gap: 12px; }
}

/* ============================================================
   ADMIN (kept from before, dark-neutral)
   ============================================================ */
.admin-body { background: #f5f5f5; color: #0a0a0a; font-family: var(--font-sans); }
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: #0c0c0c; color: #fff; padding: 32px 0; position: fixed; width: 240px; height: 100vh; overflow-y: auto; }
.admin-sidebar-logo { padding: 0 24px 32px; border-bottom: 1px solid #333; margin-bottom: 24px; font-family: var(--font-display); font-size: 24px; }
.admin-nav { list-style: none; }
.admin-nav li a { display: flex; align-items: center; gap: 12px; padding: 12px 24px; font-size: 13px; color: #9a978f; transition: all var(--transition); border-left: 3px solid transparent; }
.admin-nav li a:hover, .admin-nav li a.active { color: #fff; background: rgba(255,255,255,0.05); border-left-color: var(--accent); }
.admin-main { margin-left: 240px; padding: 32px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid #e5e5e5; }
.admin-header h1 { font-size: 22px; font-weight: 700; }
.admin-content { background: #fff; padding: 32px; border: 1px solid #e5e5e5; }
.admin-form .form-section { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid #e5e5e5; }
.admin-form .form-section h3 { font-size: 15px; font-weight: 600; margin-bottom: 16px; color: #525252; }
.admin-form .form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.admin-form .form-group { margin-bottom: 16px; }
.admin-form label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: #525252; }
.admin-form input[type="text"], .admin-form input[type="email"], .admin-form input[type="password"], .admin-form input[type="number"], .admin-form input[type="url"], .admin-form input[type="color"], .admin-form textarea, .admin-form select { width: 100%; padding: 10px 14px; font-size: 14px; font-family: inherit; border: 1px solid #d4d4d4; background: #fff; }
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { outline: none; border-color: #0a0a0a; }
.admin-form textarea { min-height: 100px; resize: vertical; }
.admin-form .form-help { font-size: 11px; color: #a3a3a3; margin-top: 4px; }
.admin-form .checkbox-group { display: flex; align-items: center; gap: 8px; }
.admin-form .checkbox-group input[type="checkbox"] { width: 18px; height: 18px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #a3a3a3; border-bottom: 2px solid #e5e5e5; }
.admin-table td { padding: 16px; font-size: 13px; border-bottom: 1px solid #e5e5e5; vertical-align: middle; }
.admin-table tr:hover td { background: #fafafa; }
.admin-table .thumb { width: 80px; height: 50px; object-fit: cover; background: #e5e5e5; }
.admin-actions { display: flex; gap: 8px; }
.btn { display: inline-block; padding: 12px 28px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; border: 1.5px solid #0a0a0a; cursor: pointer; transition: all var(--transition); background: transparent; text-align: center; }
.btn-outline { color: #0a0a0a; }
.btn-outline:hover { background: #0a0a0a; color: #fff; }
.btn-primary { background: #0a0a0a; color: #fff; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-full { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 11px; border: 1px solid #d4d4d4; background: #fff; cursor: pointer; transition: all var(--transition); }
.btn-sm:hover { border-color: #0a0a0a; }
.btn-sm.btn-danger { color: #dc3545; border-color: #dc3545; }
.btn-sm.btn-danger:hover { background: #dc3545; color: #fff; }
.status-badge { display: inline-block; padding: 3px 10px; font-size: 10px; font-weight: 600; }
.status-published { background: #d4edda; color: #155724; }
.status-draft { background: #fff3cd; color: #856404; }
.status-coming { background: #cce5ff; color: #004085; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { background: #fff; padding: 24px; border: 1px solid #e5e5e5; }
.stat-card h3 { font-size: 32px; font-weight: 700; }
.stat-card p { font-size: 12px; color: #737373; }
.admin-login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f5f5f5; }
.admin-login-box { background: #fff; padding: 48px; width: 400px; border: 1px solid #e5e5e5; }
.admin-login-box h1 { font-family: var(--font-display); font-size: 32px; margin-bottom: 8px; text-align: center; }
.admin-login-box .subtitle { font-size: 13px; color: #737373; text-align: center; margin-bottom: 32px; }
.service-editor-item { background: #fff; padding: 24px; border: 1px solid #e5e5e5; margin-bottom: 16px; position: relative; }
.service-editor-item .remove-btn { position: absolute; top: 12px; right: 12px; background: none; border: none; color: #dc3545; cursor: pointer; font-size: 18px; }
.service-items-input { width: 100%; padding: 8px 12px; font-size: 13px; border: 1px solid #d4d4d4; margin-top: 8px; }
.admin-flashes { margin-bottom: 24px; }
.admin-flash { padding: 12px 16px; margin-bottom: 8px; font-size: 13px; border: 1px solid transparent; }
.admin-flash.success { background: #d4edda; color: #155724; border-color: #c3e6cb; }
.admin-flash.error { background: #f8d7da; color: #721c24; border-color: #f5c6cb; }
@media (max-width: 768px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: relative; width: 100%; height: auto; }
    .admin-main { margin-left: 0; }
    .admin-form .form-row { grid-template-columns: 1fr; }
}
