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

:root {
    --color-black: #000000;
    --color-blue: #1e3a5f;
    --color-blue-light: #5a9fd4;
    --color-blue-bright: #7cb8e8;
    --color-blue-dim: #152a42;
    --color-white: #ffffff;
    --color-gray: #4a4a4a;
    --color-gray-light: #8a8a8a;
    --color-gray-text: #b0b0b0;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.6;
}

.page {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0 auto;
}

/* Navigation */
.nav {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.logo-mark {
    width: 44px;
    height: 44px;
    background-color: #0d1a2d;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    height: 100%;
}

.logo-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-white);
}

.logo-divider {
    width: 1px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.1);
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
}

.logo-text-top {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-white);
    opacity: 0.9;
    line-height: 1.2;
}

.logo-text-bottom {
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--color-gray-light);
    line-height: 1.2;
}

.nav-contact {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-contact:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
}

/* Hero - Desktop */
.hero {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-content: center;
    padding: 0 5rem;
    gap: 3rem;
    min-height: 0;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Chess Rook */
.monolith {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pixel-grid {
    display: grid;
    grid-template-columns: repeat(24, 8px);
    grid-template-rows: repeat(32, 8px);
    gap: 1px;
}

.pixel {
    width: 8px;
    height: 8px;
    background-color: transparent;
    border-radius: 0;
}

.pixel.active {
    background-color: var(--color-blue);
    animation: hammerGlow 6s ease-in-out infinite;
}

@keyframes hammerGlow {
    0%, 100% {
        background-color: var(--color-blue);
    }
    50% {
        background-color: var(--color-blue-light);
    }
}

.monolith::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 500px;
    background: radial-gradient(
        ellipse 50% 50% at 50% 50%,
        rgba(30, 58, 95, 0.3) 0%,
        rgba(30, 58, 95, 0.1) 50%,
        transparent 70%
    );
    filter: blur(50px);
    z-index: -1;
}

/* Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-tagline {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
    margin-left: 5px;
}

.hero-tagline span {
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gray-light);
}

.hero-tagline .divider {
    width: 10px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.hero-headline {
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--color-white);
    margin-bottom: 1.25rem;
}

.hero-sub {
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-gray-text);
    max-width: 340px;
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
}

/* Footer - Desktop */
.footer {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 1rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-center { 
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-right { justify-self: end; }

.footer-contact {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

.footer-location {
    font-size: 0.5625rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gray);
}

.footer-dash {
    font-size: 0.5rem;
    color: var(--color-gray);
    opacity: 0.4;
}

.footer-copyright {
    font-size: 0.5625rem;
    font-weight: 400;
    color: var(--color-gray);
    letter-spacing: 0.02em;
}

/* ============================================
   RESPONSIVE - TABLET & MOBILE
   ============================================ */

/* Desktop height adjustments */
@media (max-height: 800px) {
    .nav { padding: 0.75rem 2rem; }
    .logo-mark { width: 38px; height: 38px; }
    .logo-grid span { font-size: 0.5625rem; }
    .hero { padding: 0 4rem; gap: 2rem; }
    
    .pixel-grid {
        grid-template-columns: repeat(24, 7px);
        grid-template-rows: repeat(32, 7px);
    }
    .pixel { width: 7px; height: 7px; }
    
    .hero-headline { font-size: 2.25rem; margin-bottom: 1rem; }
    .hero-tagline { margin-bottom: 1rem; }
    .hero-sub { font-size: 0.75rem; margin-bottom: 1rem; }
    .footer { padding: 0.75rem 2rem; }
}

@media (max-height: 700px) {
    .pixel-grid {
        grid-template-columns: repeat(24, 6px);
        grid-template-rows: repeat(32, 6px);
    }
    .pixel { width: 6px; height: 6px; }
    .hero-headline { font-size: 2rem; }
}

/* iPad Pro 12.9" landscape */
@media (max-width: 1366px) and (min-width: 1025px) {
    .hero { padding: 0 3rem; gap: 2.5rem; }
    .pixel-grid {
        grid-template-columns: repeat(24, 7px);
        grid-template-rows: repeat(32, 7px);
    }
    .pixel { width: 7px; height: 7px; }
}

/* ============================================
   TABLET (iPad landscape & portrait)
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    /* Center the rook */
    .hero-grid { 
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .monolith {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Center ALL text content */
    .hero-content { 
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-tagline {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero-headline {
        text-align: center;
    }
    
    .hero-sub { 
        text-align: center;
        max-width: 450px;
    }
    
    .pixel-grid {
        grid-template-columns: repeat(24, 6px);
        grid-template-rows: repeat(32, 6px);
    }
    .pixel { width: 6px; height: 6px; }
    
    /* Footer - stack and center everything */
    .footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .footer-left,
    .footer-center,
    .footer-right {
        justify-self: center;
        text-align: center;
    }
}

/* iPad portrait */
@media (max-width: 834px) {
    .hero { 
        padding: 1.5rem; 
        gap: 1.25rem;
    }
    .pixel-grid {
        grid-template-columns: repeat(24, 5px);
        grid-template-rows: repeat(32, 5px);
    }
    .pixel { width: 5px; height: 5px; }
    .hero-headline { font-size: 2rem; }
}

/* Floating contact button (hidden on desktop) */
.floating-contact {
    display: none;
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 768px) {
    .nav { 
        padding: 0.5rem 1rem; 
    }
    .logo-divider, .logo-text-wrap { display: none; }
    
    .hero { 
        padding: 0;
        gap: 0.75rem;
        grid-template-rows: auto auto;
        align-content: center;
    }
    
    /* Rook - 30% bigger again (10px → 13px) */
    .hero-grid {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin-top: -1rem;
    }
    
    .monolith {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .pixel-grid {
        grid-template-columns: repeat(24, 13px);
        grid-template-rows: repeat(32, 13px);
        gap: 1px;
    }
    .pixel { width: 13px; height: 13px; }
    
    /* All text - with specific spacing adjustments */
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 1.25rem;
    }
    
    /* Tagline - moved down 40px total (20px + 20px more), shifted 10px left */
    .hero-tagline {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        margin-top: 40px;
        margin-bottom: 40px;
        margin-left: -10px;
    }
    
    /* Headline - 40px gap from tagline (10px + 30px more) */
    .hero-headline { 
        font-size: clamp(1.35rem, 4.5vw, 1.65rem);
        text-align: center;
        margin-bottom: 30px;
        line-height: 1.2;
    }
    
    .hero-headline br {
        display: none;
    }
    
    /* Sub - 30px gap from headline (10px + 20px more) */
    .hero-sub { 
        font-size: 0.7rem;
        max-width: 90%;
        text-align: center;
        line-height: 1.6;
        margin-bottom: 0;
    }
    
    /* Footer - simplified, no contact button on mobile */
    .footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }
    
    .footer-left {
        display: none;
    }
    
    /* Miami-Toronto-Boston shifted right 5px */
    .footer-center {
        order: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        margin-left: 5px;
    }
    
    .footer-right {
        order: 2;
        display: flex;
        justify-content: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero { gap: 0.875rem; }
    
    .pixel-grid {
        grid-template-columns: repeat(24, 4px);
        grid-template-rows: repeat(32, 4px);
    }
    .pixel { width: 4px; height: 4px; }
    
    .hero-headline { font-size: 1.5rem; }
    .hero-tagline span { font-size: 0.5rem; }
    .hero-sub { font-size: 0.6875rem; }
}

/* Very small mobile */
@media (max-width: 375px) {
    .pixel-grid {
        grid-template-columns: repeat(24, 4px);
        grid-template-rows: repeat(32, 4px);
    }
    .pixel { width: 4px; height: 4px; }
    .hero-headline { font-size: 1.35rem; }
}

/* Short mobile screens */
@media (max-height: 700px) and (max-width: 768px) {
    .pixel-grid {
        grid-template-columns: repeat(24, 4px);
        grid-template-rows: repeat(32, 4px);
    }
    .pixel { width: 4px; height: 4px; }
    .hero { gap: 0.75rem; }
    .hero-tagline { margin-bottom: 0.5rem; }
    .hero-headline { margin-bottom: 0.75rem; }
    .hero-sub { margin-bottom: 0; }
}
