/* ═══════════════════════════════════════════════════════════
   DESIGN SYSTEM
   ═══════════════════════════════════════════════════════════ */

:root {
    /* Core Palette */
    --white: #FFFFFF;
    --black: #000000;
    --blue: #003153;
    --blue-glow: rgba(0, 49, 83, 0.15);

    /* Typography Scale (based on 1.333 ratio) */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.333rem;
    --text-xl: 1.777rem;
    --text-2xl: 2.369rem;
    --text-3xl: 3.157rem;
    --text-4xl: 4.209rem;
    --text-5xl: 5.61rem;

    /* Spacing (8px base) */
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 3rem;
    --space-6: 4rem;
    --space-7: 6rem;
    --space-8: 8rem;
    --space-9: 12rem;

    /* Grid */
    --max-width: 1200px;
    --content-width: 720px;
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════ */

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

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

body {
    font-family: "Helvetica Neue", Helvetica, "Archivo", sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

::selection {
    background: var(--blue);
    color: var(--white);
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT & UTILITIES
   ═══════════════════════════════════════════════════════════ */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.section {
    padding: var(--space-9) 0;
}

#contact {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
    scroll-margin-top: 0;
    min-height: 80vh;
}

#contact .contact-form {
    margin-top: var(--space-5);
    padding-bottom: var(--space-9);
}

.full-height-center {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */

.label {
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.5;
    margin-bottom: var(--space-2);
    display: block;
}

h1,
.h1 {
    font-size: var(--text-4xl);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h2,
.h2 {
    font-size: var(--text-2xl);
    font-weight: 300;
    letter-spacing: -0.02em;
}

h3,
.h3 {
    font-size: var(--text-lg);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════════════════════
   HEADER & FOOTER
   ═══════════════════════════════════════════════════════════ */

header {
    padding: var(--space-4) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 100;
}

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

.logo {
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--black);
    text-decoration: none;
}

nav {
    display: flex;
    gap: var(--space-4);
}

nav a {
    font-size: var(--text-sm);
    color: var(--black);
    position: relative;
    opacity: 1;
    /* Override default a:hover */
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--blue);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--blue);
    opacity: 1;
}

nav a:hover::after {
    width: 100%;
}

footer {
    margin-top: auto;
    padding: var(--space-6) 0;
    border-top: 1px solid #e5e5e5;
}

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

.footer-text {
    font-size: var(--text-xs);
    opacity: 0.4;
}

.social-links {
    display: flex;
    gap: var(--space-4);
}

.social-links a {
    font-size: var(--text-xs);
    color: var(--black);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.5;
}

.social-links a:hover {
    opacity: 1;
    color: var(--blue);
}

/* ═══════════════════════════════════════════════════════════
   COMPONENTS: BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: var(--space-2) var(--space-4);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    background: none;
    color: inherit;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 0 0 0 var(--blue-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 30px 5px var(--blue-glow);
    transform: translateY(-1px);
    opacity: 1;
}

.btn-ghost {
    color: var(--black);
    border-color: var(--black);
}

.btn-ghost:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    opacity: 1;
}

.btn-arrow {
    transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════
   COMPONENTS: FORMS
   ═══════════════════════════════════════════════════════════ */

.contact-form {
    max-width: var(--content-width);
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.form-label {
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
}

.form-control {
    font-family: inherit;
    font-size: var(--text-base);
    padding: var(--space-2) 0;
    background: none;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    color: var(--black);
    transition: border-color 0.3s ease;
    outline: none;
    width: 100%;
}

.form-control:focus {
    border-bottom-color: var(--blue);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════════════ */

.about {
    min-height: 100vh;
    padding-top: var(--space-8);
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
    align-items: center;
}

.about-content {
    max-width: 540px;
}

.about-description {
    font-size: var(--text-lg);
    font-weight: 300;
    line-height: 1.5;
    color: var(--black);
    opacity: 0.7;
    max-width: 460px;
    margin-bottom: var(--space-5);
}

.about-portrait {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portrait-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
}

.portrait-image {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.about-portrait:hover .portrait-image {
    filter: grayscale(0%);
}



.portrait-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
}

/* ═══════════════════════════════════════════════════════════
   WORK
   ═══════════════════════════════════════════════════════════ */

.section-header {
    margin-bottom: var(--space-7);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #e5e5e5;
}

.work-item {
    background: var(--white);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    transition: all 0.3s ease;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.work-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width 0.4s ease;
}

.work-item:hover::before {
    width: 100%;
}

.work-item:hover {
    background: #fafafa;
    opacity: 1;
}

.work-meta {
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: var(--space-2);
}

.work-description {
    font-size: var(--text-sm);
    line-height: 1.6;
    opacity: 0.6;
    flex-grow: 1;
}

.work-link {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: var(--space-3);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.work-item:hover .work-link {
    opacity: 1;
    transform: translateY(0);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.expertise-item {
    padding: var(--space-5) 0;
    border-top: 1px solid #e5e5e5;
}

.expertise-number {
    font-size: var(--text-3xl);
    font-weight: 300;
    color: var(--blue);
    opacity: 0.3;
    margin-bottom: var(--space-2);
}

.expertise-text {
    font-size: var(--text-sm);
    line-height: 1.7;
    opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════
   IMPRINT SPECIFIC
   ═══════════════════════════════════════════════════════════ */

.imprint-grid {
    margin-top: var(--space-4);
    display: grid;
    gap: var(--space-4);
    max-width: 600px;
}

.imprint-item {
    border-top: 1px solid #e5e5e5;
    padding-top: var(--space-2);
}

.imprint-title {
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.4;
    margin-bottom: 0.5rem;
}

.imprint-content {
    font-size: var(--text-lg);
    font-weight: 300;
}

.back-nav {
    margin-bottom: var(--space-4);
}

/* ═══════════════════════════════════════════════════════════
   UTILITY & PAGE SPECIFIC
   ═══════════════════════════════════════════════════════════ */

.imprint-page {
    padding-top: var(--space-9);
    padding-bottom: var(--space-9);
}

.imprint-form-container {
    margin-top: var(--space-8);
    border-top: 1px solid #e5e5e5;
    padding-top: var(--space-6);
}

.thank-you-message {
    font-size: var(--text-lg);
    font-weight: 300;
    opacity: 0.7;
    margin-bottom: var(--space-4);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    html {
        font-size: 16px;
    }

    .about .container {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .about {
        text-align: center;
    }

    .about-content {
        max-width: 100%;
        order: 2;
    }

    .about-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .about-portrait {
        order: 1;
    }

    .portrait-frame {
        max-width: 300px;
    }

    .cta-group {
        justify-content: center;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    .about-title,
    h1,
    .h1 {
        font-size: var(--text-3xl);
    }

    nav {
        gap: var(--space-3);
    }

    footer .container {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-content>* {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}

.about-label {
    animation-delay: 0.1s;
}

.about-title {
    animation-delay: 0.2s;
}

.about-description {
    animation-delay: 0.3s;
}

.cta-group {
    animation-delay: 0.4s;
}

.about-portrait {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}