@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Manrope:wght@200;300;400;500;600;700;800&display=swap');

:root {
    --bg: #0B0B0A;
    --surface: #141412;
    --surface-light: #1D1D1A;
    --text: #F3F0E9;
    --muted: #A8A49C;
    --accent: #C6A77B;
    --accent-rgb: 198, 167, 123;
    --border: rgba(198, 167, 123, 0.12);
    --border-light: rgba(198, 167, 123, 0.25);
    
    --font-sans: 'Manrope', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
    
    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease-out;
}

/* ----------------------------------------------------
   1. RESET & BASICS
   ---------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, textarea, select {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* ----------------------------------------------------
   2. CUSTOM CURSOR
   ---------------------------------------------------- */
#custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

#custom-cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(198, 167, 123, 0.3);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

/* Cursor States */
body.hovering-interactive #custom-cursor {
    width: 14px;
    height: 14px;
    background: #ffffff;
}

body.hovering-interactive #custom-cursor-ring {
    width: 60px;
    height: 60px;
    border-color: rgba(255, 255, 255, 0.8);
}

/* Hide custom cursor on touch / mobile devices */
@media (hover: none), (pointer: coarse) {
    #custom-cursor,
    #custom-cursor-ring {
        display: none !important;
    }
}

/* ----------------------------------------------------
   3. TYPOGRAPHY
   ---------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-serif {
    font-family: var(--font-serif);
    font-weight: 300;
}

.title-large {
    font-size: clamp(3rem, 8vw, 8rem);
    font-family: var(--font-serif);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.title-medium {
    font-size: clamp(2rem, 5vw, 4rem);
    font-family: var(--font-serif);
    font-weight: 300;
    line-height: 1.1;
}

.title-small {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-family: var(--font-sans);
    font-weight: 300;
    letter-spacing: -0.02em;
}

.eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: inline-block;
}

.lead-text {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 300;
    color: var(--muted);
    line-height: 1.6;
}

/* ----------------------------------------------------
   4. LAYOUT & CONTAINERS
   ---------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

.section-padding {
    padding: 10rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 6rem 0;
    }
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

@media (max-width: 1024px) {
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-cols-2, .grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ----------------------------------------------------
   5. NAVIGATION
   ---------------------------------------------------- */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: var(--transition-medium);
}

.navbar-wrapper.scrolled {
    padding: 1rem 0;
    background: rgba(11, 11, 10, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text);
    display: flex;
    align-items: center;
}

.brand-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
}

.nav-link {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    color: var(--muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Burger Button — hidden on desktop, shown on mobile only */
.menu-toggle {
    display: none; /* hidden by default (desktop) */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1002;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex; /* show only on tablet/mobile */
    }
}

.menu-toggle span {
    width: 24px;
    height: 1px;
    background: var(--text);
    transition: var(--transition-fast);
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hide Book Experience button on mobile — show burger instead */
@media (max-width: 1024px) {
    .hidden-mobile {
        display: none !important;
    }
}

/* Mobile navbar layout */
@media (max-width: 1024px) {
    .navbar-wrapper {
        padding: 1.2rem 0;
    }
    .navbar-container {
        padding: 0 1.5rem;
    }
    .nav-right {
        gap: 1rem;
    }
}

/* Fullscreen Menu Overlay */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;                /* scrollable if content taller than screen */
    -webkit-overflow-scrolling: touch;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 7rem 2rem 4rem;        /* top padding clears the navbar */
    width: 100%;
}

.fullscreen-menu-link {
    font-size: clamp(1.6rem, 6vw, 4rem);
    font-family: var(--font-serif);
    color: var(--muted);
    transition: var(--transition-medium);
    text-align: center;
}

.fullscreen-menu-link:hover,
.fullscreen-menu-link:active {
    color: var(--text);
    transform: scale(1.05);
}

/* ----------------------------------------------------
   NAV DROPDOWN — Solutions vertical list
   ---------------------------------------------------- */
.nav-dropdown-wrapper {
    position: relative;
}

.nav-dropdown-trigger svg {
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-dropdown-wrapper:hover .nav-dropdown-trigger svg {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: 100%;           /* flush — no gap */
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    width: 280px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 2000;
    /* Invisible top padding acts as a hover bridge */
    padding-top: 1.2rem;
}

.nav-dropdown-wrapper:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-inner {
    background: rgba(14, 14, 12, 0.98);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.nav-dropdown-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    font-weight: 700;
    padding: 1.2rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
}

.nav-dropdown-list {
    display: flex;
    flex-direction: column;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease, color 0.2s ease;
    color: var(--muted);
}

.nav-dropdown-item:last-child {
    border-bottom: none;
}

.nav-dropdown-item:hover {
    background: var(--surface);
    color: var(--text);
}

.nav-dropdown-item-icon {
    color: var(--accent);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.nav-dropdown-item:hover .nav-dropdown-item-icon {
    opacity: 1;
}

.nav-dropdown-item-name {
    font-size: 13px;
    font-weight: 500;
    color: inherit;
}

/* ----------------------------------------------------
   6. PREMIUM BUTTONS & ELEMENTS
   ---------------------------------------------------- */
.btn-primary {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: var(--bg);
    background: var(--accent);
    padding: 1.2rem 2.5rem;
    border: 1px solid var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: var(--transition-medium);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
}

.btn-primary svg {
    transition: var(--transition-fast);
}

.btn-primary:hover svg {
    transform: translateX(5px);
}

.btn-secondary {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: var(--text);
    border: 1px solid var(--border-light);
    padding: 1.2rem 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: var(--transition-medium);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ----------------------------------------------------
   7. HERO & IMMERSIVE SCENE
   ---------------------------------------------------- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(11, 11, 10, 0.4) 0%, rgba(11, 11, 10, 0.95) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-title {
    margin-bottom: 2rem;
}

.hero-title span {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    margin-top: 3rem;
    animation: fadeInUp 1s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .hero-ctas {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

/* ----------------------------------------------------
   8. THE HOUSE EXPLORATION
   ---------------------------------------------------- */
.the-house-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 6rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .the-house-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.house-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.house-nav-item {
    font-size: 1.8rem;
    color: var(--muted);
    font-family: var(--font-serif);
    cursor: pointer;
    text-align: left;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    transition: var(--transition-medium);
}

.house-nav-item:hover, .house-nav-item.active {
    color: var(--accent);
    transform: translateX(10px);
}

.house-nav-item span {
    font-size: 11px;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-right: 1.5rem;
    color: var(--muted);
}

.house-nav-item.active span {
    color: var(--accent);
}

.house-visualizer {
    position: relative;
    border: 1px solid var(--border);
    background: var(--surface);
    height: 480px;
    overflow: hidden;
}

.house-visual-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
}

.house-visual-panel.active {
    opacity: 1;
    visibility: visible;
}

.house-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 11, 10, 0.9) 0%, rgba(11, 11, 10, 0.2) 60%);
    z-index: 1;
}

.house-panel-content {
    position: relative;
    z-index: 2;
    max-width: 400px;
}

/* ----------------------------------------------------
   9. INTERACTIVE SCENES
   ---------------------------------------------------- */
.scenes-wrapper {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.scenes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

@media (max-width: 1024px) {
    .scenes-grid {
        grid-template-columns: 1fr;
    }
}

.scenes-left {
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border);
}

@media (max-width: 768px) {
    .scenes-left {
        padding: 3rem 1.5rem;
    }
}

.scenes-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (max-width: 480px) {
    .scenes-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

.scene-btn {
    border: 1px solid var(--border);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    background: rgba(11, 11, 10, 0.3);
}

.scene-btn:hover {
    border-color: var(--accent);
}

.scene-btn.active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.scene-btn svg {
    transition: var(--transition-fast);
}

.scene-btn.active svg {
    stroke: var(--bg);
}

.scene-btn span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.scenes-right {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.scene-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.scene-bg-layer.active {
    opacity: 1;
    transform: scale(1);
}

.scene-bg-layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(11,11,10,0.2) 0%, rgba(11,11,10,0.85) 100%);
    z-index: 2;
}

.scenes-status-panel {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    right: 3rem;
    background: rgba(20, 20, 18, 0.7);
    border: 1px solid rgba(198, 167, 123, 0.2);
    backdrop-filter: blur(15px);
    padding: 2rem;
    z-index: 3;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.scenes-status-panel.active {
    display: grid;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 12px;
}

.status-indicator span:first-child {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ----------------------------------------------------
   10. A DAY AT U.HAUS
   ---------------------------------------------------- */
.day-timeline {
    position: relative;
    border-left: 1px solid var(--border);
    margin-left: 2rem;
    padding-left: 3rem;
}

.day-timeline-item {
    position: relative;
    margin-bottom: 5rem;
}

.day-timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: calc(-3rem - 4.5px);
    top: 0.3rem;
    width: 8px;
    height: 8px;
    background: var(--muted);
    border-radius: 50%;
    border: 1px solid var(--bg);
    transition: var(--transition-fast);
}

.day-timeline-item.active .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.timeline-time {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    display: block;
}

/* ----------------------------------------------------
   11. TECH PARTNERS / BRAND GALLERY
   ---------------------------------------------------- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
}

@media (max-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.partner-card {
    background: var(--bg);
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition-medium);
    cursor: pointer;
    min-height: 250px;
}

.partner-card:hover {
    background: var(--surface);
}

.partner-logo-fallback {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.partner-logo-fallback span {
    color: var(--accent);
}

.partner-category {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-top: 0.5rem;
}

/* ----------------------------------------------------
   12. CASE STUDY CARDS
   ---------------------------------------------------- */
.project-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
}

.project-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-slow);
    z-index: 1;
}

.project-card:hover .project-card-bg {
    transform: scale(1.05);
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 11, 10, 0.95) 0%, rgba(11, 11, 10, 0.2) 60%);
    z-index: 2;
}

.project-card-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* ----------------------------------------------------
   13. FORM CONTROLS
   ---------------------------------------------------- */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.form-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.2rem 1.5rem;
    color: var(--text);
    transition: var(--transition-medium);
}

.form-input:focus {
    border-color: var(--accent);
    background: var(--surface-light);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 480px) {
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 13px;
    color: var(--muted);
}

.checkbox-label input {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

/* Eye Toggle Password */
.password-wrapper {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--muted);
    transition: var(--transition-fast);
}

.password-toggle-btn:hover {
    color: var(--text);
}

/* Honeypot field */
.hp-field {
    display: none !important;
}

/* ----------------------------------------------------
   14. FOOTER
   ---------------------------------------------------- */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 6rem 0 3rem 0;
}

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

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link {
    color: var(--muted);
    font-size: 14px;
}

.footer-link:hover {
    color: var(--text);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ----------------------------------------------------
   15. ADMIN VIEW
   ---------------------------------------------------- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.admin-table th, .admin-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 600;
}

.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* ----------------------------------------------------
   16. INNER PAGE UTILITIES
   ---------------------------------------------------- */

/* Page Hero — used on all inner pages */
.page-hero {
    position: relative;
    width: 100%;
    min-height: 65vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    z-index: 1;
    transition: transform 8s ease-out;
}

.page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(11, 11, 10, 1) 0%,
        rgba(11, 11, 10, 0.55) 50%,
        rgba(11, 11, 10, 0.25) 100%
    );
    z-index: 2;
}

.page-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 6rem 4rem;
}

@media (max-width: 768px) {
    .page-hero-content {
        padding: 4rem 1.5rem;
    }
}

/* Sidebar nav used on Solutions & Projects detail */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 1px solid var(--border);
    padding-left: 2rem;
}

.sidebar-nav-link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--muted);
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition-medium);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-nav-link::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.sidebar-nav-link:hover,
.sidebar-nav-link.active {
    color: var(--text);
    padding-left: 0.5rem;
}

.sidebar-nav-link:hover::before,
.sidebar-nav-link.active::before {
    width: 20px;
}

.sidebar-nav-link.active {
    color: var(--accent);
}

/* Stat cards row — used on About page */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border);
}

@media (max-width: 1024px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
    }
}

.stat-card {
    padding: 4rem 3rem;
    border-right: 1px solid var(--border);
    text-align: center;
    transition: var(--transition-medium);
}

.stat-card:last-child {
    border-right: none;
}

@media (max-width: 1024px) {
    .stat-card:nth-child(2) { border-right: none; }
    .stat-card:nth-child(3) { border-right: 1px solid var(--border); }
    .stat-card:nth-child(1),
    .stat-card:nth-child(2) { border-bottom: 1px solid var(--border); }
}

.stat-card:hover {
    background: var(--surface-light);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 300;
    color: var(--accent);
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    font-weight: 600;
}

/* Pull-quote / manifesto */
.pull-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 300;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.02em;
    position: relative;
    padding-left: 3rem;
    border-left: 2px solid var(--accent);
}

/* Contact info block */
.contact-info-block {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
}

.contact-info-block:last-child {
    border-bottom: 1px solid var(--border);
}

.contact-info-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.contact-info-value {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 300;
    line-height: 1.6;
}

/* Feature capability item — Solutions page */
.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: var(--transition-medium);
    background: var(--surface);
}

.feature-item:hover {
    border-color: var(--accent);
    background: var(--surface-light);
}

.feature-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    transition: var(--transition-fast);
}

.feature-item:hover .feature-icon {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.feature-item h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.3rem;
}

/* Experience highlight list */
.exp-highlights {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.exp-highlight-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.exp-highlight-num {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--accent);
    opacity: 0.5;
    min-width: 32px;
    line-height: 1;
    padding-top: 0.1rem;
}

.exp-highlight-item h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.exp-highlight-item p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

/* Section label bar */
.section-label-bar {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 5rem;
}

.section-label-bar::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Ambient CTA full-bleed */
.ambient-cta {
    position: relative;
    padding: 8rem 4rem;
    overflow: hidden;
    border-top: 1px solid var(--border);
}

.ambient-cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

.ambient-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

/* Project explore row */
.project-explore-card {
    flex: 1;
    min-width: 280px;
    position: relative;
    min-height: 300px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
    transition: var(--transition-slow);
}

.project-explore-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: var(--transition-slow);
    z-index: 1;
}

.project-explore-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,11,10,0.95) 0%, rgba(11,11,10,0.2) 80%);
    z-index: 2;
}

.project-explore-card:hover .project-explore-card-bg {
    transform: scale(1.04);
}

.project-explore-card-content {
    position: relative;
    z-index: 3;
}

/* ====================================================
   17. MOBILE RESPONSIVENESS — Inner Pages
   All breakpoints: max-width 768px (phones)
   ==================================================== */

/* ---- Page Hero ---- */
@media (max-width: 768px) {
    .page-hero {
        min-height: 55vh !important;
    }
    .page-hero-content {
        padding: 3rem 1.5rem 3rem;
    }
    .page-hero-content .title-large {
        font-size: clamp(2.2rem, 10vw, 4rem);
        line-height: 1;
    }
    .page-hero-content .lead-text {
        font-size: 1rem;
    }
}

/* ---- Solutions & Projects: sidebar + content grid ---- */
/* These use inline style: grid-template-columns: 280px 1fr */
/* We override via the container div class */
@media (max-width: 900px) {
    /* Inline-styled sidebar grids — override using parent selector trick */
    .container > div[style*="280px"],
    .container > div[style*="grid-template-columns: 280px"] {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    /* Make sticky sidebars non-sticky on mobile */
    aside[style*="sticky"] {
        position: static !important;
        top: auto !important;
    }
}

/* ---- Stats Row — About Page ---- */
@media (max-width: 600px) {
    .stats-row {
        grid-template-columns: 1fr 1fr !important;
    }
    .stat-card {
        padding: 2.5rem 1.5rem;
    }
    .stat-number {
        font-size: 2.8rem;
    }
    /* Fix broken borders on 2-col layout */
    .stat-card:nth-child(2n) {
        border-right: none !important;
    }
    .stat-card:nth-child(-n+2) {
        border-bottom: 1px solid var(--border) !important;
    }
}

/* ---- Pull Quote — About ---- */
@media (max-width: 768px) {
    .pull-quote {
        font-size: 1.5rem;
        padding-left: 1.5rem;
    }
}

/* ---- Section Label Bar ---- */
@media (max-width: 768px) {
    .section-label-bar {
        margin-bottom: 2.5rem;
    }
}

/* ---- Sidebar Nav (Solutions / Projects) ---- */
@media (max-width: 900px) {
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 1rem;
    }
    .sidebar-nav-link {
        font-size: 1.1rem;
        padding: 0.7rem 1rem;
        border-bottom: none;
        border-right: 1px solid var(--border);
        flex-wrap: nowrap;
    }
    .sidebar-nav-link::before {
        display: none;
    }
}

/* ---- Feature items grid ---- */
@media (max-width: 600px) {
    .grid-cols-2.feature-grid,
    div[style*="grid-cols-2"] {
        grid-template-columns: 1fr;
    }
}

/* ---- Contact Info Blocks ---- */
@media (max-width: 768px) {
    .contact-info-value {
        font-size: 1rem;
    }
}

/* ---- Contact & Experience forms ---- */
@media (max-width: 768px) {
    form[data-ajax] {
        padding: 2rem 1.5rem !important;
    }
    /* Stack 2-col grid inside forms */
    form[data-ajax] .grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
}

/* ---- Experience highlights ---- */
@media (max-width: 600px) {
    .exp-highlight-item {
        gap: 1rem;
    }
    .exp-highlight-num {
        font-size: 1.1rem;
        min-width: 24px;
    }
}

/* ---- Ambient CTA ---- */
@media (max-width: 768px) {
    .ambient-cta {
        padding: 5rem 1.5rem;
    }
}

/* ---- Project cards ---- */
@media (max-width: 600px) {
    .project-card {
        min-height: 380px !important;
        padding: 2rem 1.5rem;
    }
}

/* ---- Project explore cards row ---- */
@media (max-width: 768px) {
    .project-explore-card {
        min-width: 100%;
        min-height: 220px;
    }
}

/* ---- About two-col philosophy grid ---- */
@media (max-width: 768px) {
    .grid-cols-2 {
        gap: 3rem !important;
    }
}

/* ---- Parallax divider — disable fixed attachment on mobile (performance) ---- */
@media (max-width: 768px) {
    div[style*="background-attachment: fixed"] {
        background-attachment: scroll !important;
    }
}

/* ---- Section padding on phones ---- */
@media (max-width: 600px) {
    .section-padding {
        padding: 4rem 0 !important;
    }
    .container {
        padding: 0 1.2rem !important;
    }
}

/* ---- Access bar (Experience Centre) ---- */
@media (max-width: 768px) {
    div[style*="display: flex; flex-wrap: wrap; gap: 3rem"] {
        gap: 1.2rem !important;
    }
}

/* ---- Count bar (Projects index) ---- */
@media (max-width: 600px) {
    div[style*="justify-content: space-between"] {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---- Footer grid on mobile ---- */
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .footer-bottom > div:last-child {
        flex-wrap: wrap;
        justify-content: center;
    }
}
