/* ========================================================
   STUDIO VISUALS — CINEMATIC PORTFOLIO DESIGN SYSTEM
   ======================================================== */

:root {
    --bg-canvas: #0a0b0f;
    --bg-surface-dark: #050508;
    --surface-glass: rgba(230, 234, 242, 0.04);
    --border-glass: rgba(200, 208, 220, 0.1);

    --accent-brand: #c8d0dc;
    --accent-warm: #8a9bb5;
    --text-primary: #f0f2f6;
    --text-muted: #7a8090;
    --text-soft: #a8b0be;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;

    --ease-cinematic: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-ui: cubic-bezier(0.33, 1, 0.68, 1);

    --t-ui-fast: 250ms;
    --t-ui-medium: 600ms;
    --t-transition-curtain: 750ms;

    --fs-body: 1.05rem;
    --fs-small: 0.8rem;
    --fs-tagline: 0.75rem;
    --fs-hero-title: clamp(2.8rem, 6vw, 5rem);
    --fs-section-title: clamp(2.4rem, 4vw, 3.6rem);
}

/* BASE & TYPOGRAPHY */
html, body {
    margin: 0; padding: 0; width: 100%;
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1320px; margin: 0 auto; }

/* CUSTOM SCROLLBAR POLISH */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-surface-dark); }
::-webkit-scrollbar-thumb { background: var(--border-glass); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-warm); }

/* ACCESSIBILITY FOCUS STATES */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--accent-brand);
    outline-offset: 4px;
}

/* CINEMATIC SWEEP CURTAIN */
.transition-curtain {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--bg-surface-dark); z-index: 10000; pointer-events: none;
    display: flex; align-items: center; justify-content: center;
    transform-origin: top; transform: scaleY(1);
    transition: transform var(--t-transition-curtain) var(--ease-cinematic);
}
.curtain-logo {
    font-family: var(--font-display); font-size: 2rem; letter-spacing: 8px;
    color: var(--accent-brand); opacity: 1; transition: opacity 0.35s ease;
    font-weight: 400; text-transform: uppercase;
}
.transition-curtain.is-opening { transform: scaleY(0); }
.transition-curtain.is-opening .curtain-logo { opacity: 0; }
.transition-curtain.is-closing { transform-origin: bottom; transform: scaleY(1); }

/* SCROLL REVEALS */
.reveal {
    opacity: 0; transform: translateY(40px) translateZ(0);
    will-change: transform, opacity;
    transition: opacity 1s var(--ease-cinematic), transform 1s var(--ease-cinematic);
}
.reveal-fade { transform: translateY(0) translateZ(0); }
.reveal.in-view { opacity: 1; transform: translateY(0) translateZ(0); }
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }

/* HEADER */
.glass-header {
    position: fixed; top: 0; left: 0; width: 100%;
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000; padding: 1.4rem 0;
    transition: background-color var(--t-ui-medium) var(--ease-ui), transform var(--t-ui-medium) var(--ease-cinematic), padding var(--t-ui-medium) ease;
}
.glass-header.nav-scrolled {
    background-color: rgba(10, 11, 15, 0.92);
    border-bottom-color: rgba(200, 208, 220, 0.22);
    padding: 0.9rem 0;
}
.glass-header.nav-hidden { transform: translateY(-100%); }

.nav-container { display: flex; justify-content: space-between; align-items: center; width: 90%; max-width: 1320px; margin: 0 auto; }
.brand-logo { text-decoration: none; display: flex; flex-direction: column; }
.logo-main {
    font-family: var(--font-display); font-size: 1.55rem; letter-spacing: 5px;
    color: var(--text-primary); font-weight: 500; text-transform: uppercase;
}
.logo-sub {
    font-size: 0.62rem; letter-spacing: 4px; color: var(--accent-brand);
    font-weight: 400; text-transform: uppercase; margin-top: 3px;
}

.nav-links { display: flex; gap: 3rem; }
.nav-links a {
    text-decoration: none; color: var(--text-muted); font-size: var(--fs-small);
    letter-spacing: 2.5px; text-transform: uppercase; font-weight: 400;
    position: relative; padding: 0.4rem 0; transition: color var(--t-ui-medium) ease;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 1px;
    background-color: var(--accent-brand);
    transition: width var(--t-ui-medium) var(--ease-cinematic), left var(--t-ui-medium) var(--ease-cinematic);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; left: 0; }

/* HERO */
.homepage-hero {
    height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
    position: relative; overflow: hidden;
}
.parallax-wrapper { position: absolute; top: -10%; left: 0; width: 100%; height: 120%; z-index: 0; }
.parallax-bg {
    width: 100%; height: 100%; background-position: center;
    background-size: cover; background-repeat: no-repeat; will-change: transform;
}
.hero-background-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, rgba(10,11,15,0.3) 0%, rgba(10,11,15,0.85) 70%, rgba(5,5,8,0.97) 100%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 860px; padding: 0 2rem; }
.hero-tagline {
    font-size: var(--fs-tagline); text-transform: uppercase; letter-spacing: 5px;
    color: var(--accent-brand); font-weight: 400; display: block; margin-bottom: 1.75rem;
}
.hero-title {
    font-family: var(--font-display); font-size: var(--fs-hero-title);
    font-weight: 400; line-height: 1.08; margin: 0 0 1.25rem; letter-spacing: 1px;
}
.hero-lead {
    font-size: 1.1rem; color: var(--text-soft); font-weight: 300;
    margin: 0 auto 3rem; max-width: 600px; line-height: 1.85;
}
.hero-actions { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2.4rem; font-size: var(--fs-small); font-weight: 400; letter-spacing: 2.5px;
    text-transform: uppercase; text-decoration: none; border: 1px solid transparent;
    position: relative; overflow: hidden; z-index: 1; cursor: pointer;
    transition: transform var(--t-ui-medium) var(--ease-cinematic), opacity 0.3s ease;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn-text { position: relative; z-index: 2; pointer-events: none; transition: color 0.4s ease; }
.btn-hover-fill {
    position: absolute; top: 100%; left: 0; width: 100%; height: 100%;
    z-index: 1; transform-origin: top center; transition: transform 0.6s var(--ease-cinematic);
}
.btn-solid { background-color: var(--accent-brand); color: var(--bg-canvas); border-color: var(--accent-brand); }
.btn-solid .btn-hover-fill { background-color: var(--bg-canvas); transform: scaleY(0); }
.btn-solid:hover .btn-text { color: white; }
.btn-solid:hover .btn-hover-fill { transform: scaleY(1); transform-origin: bottom center; }
.btn-outline { border-color: rgba(240, 242, 246, 0.3); color: var(--text-primary); background: transparent; }
.btn-outline .btn-hover-fill { background-color: var(--text-primary); transform: scaleY(0); }
.btn-outline:hover .btn-text { color: white; }
.btn-outline:hover .btn-hover-fill { transform: scaleY(1); transform-origin: bottom center; }
.block-btn { width: 100%; }

/* PHILOSOPHY */
.philosophy-section { padding: 10rem 0; border-top: 1px solid var(--border-glass); }
.grid-half { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.phil-image { position: relative; height: 620px; overflow: hidden; }
.phil-image::after {
    content: ''; position: absolute; inset: 0;
    border: 1px solid rgba(200, 208, 220, 0.18); margin: 1.25rem; pointer-events: none;
}
.phil-image img { width: 100%; height: 100%; object-fit: cover; }
.phil-text h2 {
    font-family: var(--font-display); font-size: var(--fs-section-title);
    line-height: 1.12; margin: 0 0 1.75rem; font-weight: 400;
}
.phil-text p { color: var(--text-muted); font-size: var(--fs-body); line-height: 1.9; margin-bottom: 1.5rem; }

.capabilities-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
    margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border-glass);
}
.capability-item span {
    display: block; font-size: var(--fs-tagline); letter-spacing: 3px;
    text-transform: uppercase; color: var(--accent-brand); margin-bottom: 0.5rem;
}
.capability-item p { margin: 0; font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* PORTFOLIO PAGE */
.subpage-wrapper { padding: 11rem 0 7rem; min-height: 60vh; }
.section-intro { text-align: center; max-width: 640px; margin: 0 auto 5rem; }
.tagline {
    font-size: var(--fs-tagline); text-transform: uppercase; letter-spacing: 4px;
    color: var(--accent-brand); display: block; margin-bottom: 0.85rem;
}
.section-intro h2 {
    font-family: var(--font-display); font-size: var(--fs-section-title);
    font-weight: 400; margin: 0 0 1.25rem; line-height: 1.1;
}
.section-intro p { color: var(--text-muted); font-size: var(--fs-body); line-height: 1.8; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 2.5rem; }
.portfolio-card {
    position: relative; height: 480px; background: var(--surface-glass);
    overflow: hidden; transition: transform var(--t-ui-medium) var(--ease-cinematic);
    text-decoration: none; color: inherit; display: block; cursor: pointer;
}
.portfolio-card:hover { transform: translateY(-8px); }

.card-media-box { width: 100%; height: 100%; position: relative; overflow: hidden; background-color: #000; }
.card-media-box img, .card-media-box video {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.5s var(--ease-cinematic), filter 1s ease;
}
.portfolio-card:hover .card-media-box img,
.portfolio-card:hover .card-media-box video { transform: scale(1.06); filter: brightness(0.5); }

.card-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 3rem 2.5rem; box-sizing: border-box;
    background: linear-gradient(to top, rgba(10,11,15,0.95) 0%, transparent 100%);
    transform: translateY(24px); opacity: 0;
    transition: transform 0.8s var(--ease-cinematic), opacity 0.8s ease;
}
.portfolio-card:hover .card-overlay { transform: translateY(0); opacity: 1; }

.card-tag {
    font-size: 0.7rem; text-transform: uppercase; color: var(--accent-brand);
    letter-spacing: 3px; display: block; margin-bottom: 0.6rem;
}
.card-overlay h3 {
    font-family: var(--font-display); font-size: 1.9rem; margin: 0 0 0.5rem; font-weight: 400;
}
.card-overlay p { margin: 0; color: var(--text-soft); font-size: 0.95rem; line-height: 1.6; }

.featured-card {
    border: 1px solid rgba(200, 208, 220, 0.25);
    background: linear-gradient(145deg, rgba(138, 155, 181, 0.1) 0%, rgba(10, 11, 15, 0.7) 100%);
    height: 480px; display: flex; flex-direction: column; justify-content: center;
    align-items: center; padding: 3rem; box-sizing: border-box; text-align: center;
}
.featured-card .featured-icon {
    width: 56px; height: 56px; border-radius: 50%;
    border: 1px solid var(--accent-brand); display: flex; align-items: center; justify-content: center;
    color: var(--accent-brand); font-size: 1.3rem; margin-bottom: 1.5rem;
}
.featured-card h3 { font-family: var(--font-display); font-size: 1.75rem; margin: 0 0 0.75rem; font-weight: 400; }
.featured-card p { margin: 0; font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; max-width: 280px; }
.featured-card .price-tag {
    margin-top: 1.25rem; font-family: var(--font-display); font-size: 2rem;
    color: var(--text-primary); letter-spacing: 1px;
}
.featured-card .btn { margin-top: 1.5rem; }

.upload-slot { border: 1px dashed rgba(200, 208, 220, 0.3); background: rgba(200, 208, 220, 0.02); }
.upload-slot:hover { background: rgba(200, 208, 220, 0.05); }
.upload-label {
    width: 100%; height: 100%; display: flex; flex-direction: column;
    justify-content: center; align-items: center; padding: 3rem;
    box-sizing: border-box; text-align: center; cursor: pointer;
}
.upload-icon-box {
    width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--accent-brand);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-brand); font-size: 1.4rem; margin-bottom: 1.5rem;
    transition: background-color 0.5s ease, color 0.5s ease;
}
.upload-slot:hover .upload-icon-box { background-color: var(--accent-brand); color: var(--bg-canvas); }
.upload-label h3 { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 0.75rem; font-weight: 400; color: var(--text-primary); }
.upload-label p { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; max-width: 280px; }

.animate-entry { animation: cardRevealEntry 0.8s var(--ease-cinematic) forwards; }
@keyframes cardRevealEntry {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CONTACT */
.contact-text h2 {
    font-family: var(--font-display); font-size: var(--fs-section-title);
    font-weight: 400; line-height: 1.12; margin: 0 0 1.5rem;
}
.contact-image { position: relative; height: 100%; min-height: 580px; }
.contact-image::after {
    content: ''; position: absolute; inset: 0;
    border: 1px solid rgba(200, 208, 220, 0.15); margin: 1rem; pointer-events: none;
}
.contact-image img { width: 100%; height: 100%; object-fit: cover; }

.floating-form .form-row { position: relative; margin-bottom: 3rem; }
.floating-form input, .floating-form textarea, .floating-form select {
    width: 100%; padding: 0.9rem 0; background: transparent; border: none;
    border-bottom: 1px solid rgba(240, 242, 246, 0.18); color: var(--text-primary);
    font-family: var(--font-body); font-size: 1rem; font-weight: 300;
    appearance: none; -webkit-appearance: none; border-radius: 0;
}
.floating-form select {
    cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237a8090' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0 center;
}
.floating-form select option { background: var(--bg-canvas); color: var(--text-primary); }
.floating-form input:focus, .floating-form textarea:focus, .floating-form select:focus { outline: none; border-color: transparent; }
.input-bar {
    position: absolute; bottom: 0; left: 50%; width: 0; height: 1px;
    background-color: var(--accent-brand);
    transition: width 0.6s var(--ease-cinematic), left 0.6s var(--ease-cinematic);
}
.floating-form input:focus ~ .input-bar,
.floating-form textarea:focus ~ .input-bar,
.floating-form select:focus ~ .input-bar { width: 100%; left: 0; }
.floating-form label {
    position: absolute; left: 0; top: 0.9rem; color: var(--text-muted); font-size: 1rem;
    transition: transform 0.5s var(--ease-cinematic), color 0.5s ease;
    pointer-events: none; transform-origin: left top;
}
.floating-form input:focus ~ label, .floating-form input:not(:placeholder-shown) ~ label,
.floating-form textarea:focus ~ label, .floating-form textarea:not(:placeholder-shown) ~ label,
.floating-form select:focus ~ label, .floating-form select:valid ~ label {
    transform: translateY(-1.75rem) scale(0.78); color: var(--accent-brand);
    letter-spacing: 2px; text-transform: uppercase; font-size: 0.85rem;
}

/* FOOTER */
.site-footer {
    background-color: var(--bg-surface-dark); padding: 7rem 0 3.5rem;
    position: relative; z-index: 10; border-top: 1px solid var(--border-glass);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-col h3 {
    font-size: var(--fs-tagline); text-transform: uppercase; letter-spacing: 3px;
    color: var(--accent-brand); margin-bottom: 1.75rem; font-weight: 400;
}
.footer-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.85; max-width: 340px; margin-top: 1.25rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 1rem; }
.footer-col ul li a { text-decoration: none; color: var(--text-muted); font-size: 0.95rem; transition: color 0.3s ease; }
.footer-col ul li a:hover { color: var(--text-primary); }
.contact-item { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
.contact-item strong {
    display: block; font-size: var(--fs-tagline); color: rgba(240, 242, 246, 0.4);
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.25rem; font-weight: 400;
}
.contact-item a { color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; }
.contact-item a:hover { color: var(--accent-brand); }
.footer-divider { border: none; height: 1px; background: var(--border-glass); margin-bottom: 2.5rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 3rem; }
.legal-wrapper { max-width: 75%; }
.copyright { font-size: 0.85rem; margin-bottom: 0.6rem; color: var(--text-soft); }
.uk-statutory { font-size: 0.78rem; color: #5a5f6a; line-height: 1.7; margin: 0; }
.privacy-links { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.privacy-links a { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; }
.privacy-links a:hover { color: var(--accent-brand); }

/* ========================================================
   ADMIN DASHBOARD SYSTEM (admin.html)
   ======================================================== */

#security-gate {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(5, 5, 8, 0.95); backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; transition: opacity 0.6s ease, visibility 0.6s;
}

.login-box {
    background: var(--surface-glass); border: 1px solid var(--border-glass);
    padding: 4rem; text-align: center; max-width: 400px; width: 100%;
}

.login-box h2 { 
    font-family: var(--font-display); 
    margin-bottom: 2rem; 
    color: var(--text-primary);
}

.error-msg { 
    color: #d9534f; 
    font-size: 0.9rem; 
    margin-top: 1rem; 
    display: none; 
}

#admin-dashboard { 
    display: none; 
    padding-top: 100px; 
    opacity: 0; 
    transition: opacity 0.8s ease; 
}

.admin-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 3rem; border-bottom: 1px solid var(--border-glass); padding-bottom: 1rem;
}

.admin-header h2 {
    font-family: var(--font-display); 
    font-size: var(--fs-section-title); 
    margin: 0; font-weight: 400;
}

.upload-section {
    background: var(--surface-glass); border: 1px dashed var(--border-glass);
    padding: 3rem; text-align: center; margin-bottom: 4rem; transition: background 0.3s ease;
}

.upload-section:hover { 
    background: rgba(200, 208, 220, 0.05); 
}

.upload-section h3 {
    font-family: var(--font-display); 
    font-size: 1.6rem; 
    margin: 0 0 0.5rem; 
    font-weight: 400;
}

.delete-btn {
    position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.8);
    color: white; border: none; padding: 0.5rem 1rem; cursor: pointer;
    font-family: var(--font-body); font-size: 0.8rem; z-index: 10;
    transition: background 0.3s ease;
}

.delete-btn:hover { 
    background: #d9534f; 
}

/* MEDIA QUERIES */
@media (max-width: 1024px) {
    .grid-half { grid-template-columns: 1fr; gap: 3.5rem; }
    .phil-image { height: 460px; }
    .capabilities-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .brand-col { grid-column: span 2; }
    .footer-bottom { flex-direction: column; }
    .legal-wrapper { max-width: 100%; }
}

@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-card, .featured-card { height: 400px; }
    .nav-links { display: none; }
    .philosophy-section { padding: 7rem 0; }
    .admin-header { flex-direction: column; text-align: center; gap: 1.5rem; }
}