/* ============================================
   yoozoo.de — Refreshed Dark Premium
   Self-hosted Outfit font, zero external requests
   ============================================ */

/* --- @font-face --- */
@font-face {
    font-family: 'Outfit';
    src: url('fonts/outfit-latin-ext.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Outfit';
    src: url('fonts/outfit-latin.woff2') format('woff2');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Custom Properties --- */
:root {
    --bg-base: #1C1C1E;
    --bg-surface: #252527;
    --bg-surface-2: #2E2E31;
    --bg-overlay: rgba(28, 28, 30, 0.82);
    --gold: #E8B931;
    --gold-dim: #C99A1A;
    --gold-glow: rgba(232, 185, 49, 0.15);
    --text-primary: #F0EDE6;
    --text-secondary: #A8A49C;
    --text-on-gold: #1C1C1E;
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-card: rgba(255, 255, 255, 0.1);
    --radius-card: 16px;
    --radius-sm: 8px;
    --transition: 0.25s ease;
    --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
    --max-width: 1160px;
    --section-pad: clamp(4rem, 8vw, 7rem);
}

/* --- Hide Kraken staging overlay on standalone site --- */
#area51-badge,
.callboard-trigger {
    display: none !important;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* --- Layout --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
    background: var(--bg-overlay);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-header__logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.site-header__nav {
    display: flex;
    gap: 2rem;
}

.site-header__nav a {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.9375rem;
    transition: color var(--transition);
}

.site-header__nav a:hover {
    color: var(--text-primary);
}

.site-header__nav .nav-active {
    color: var(--gold);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100svh;
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--bg-base);
    overflow: hidden;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(28, 28, 30, 0.85) 0%,
        rgba(28, 28, 30, 0.6) 50%,
        rgba(28, 28, 30, 0.78) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    padding-top: 7rem;
    padding-bottom: 4rem;
}

.hero__eyebrow {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hero__title em {
    font-style: normal;
    color: var(--gold);
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

.hero__scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    opacity: 0.6;
    animation: scroll-bounce 2s ease-in-out infinite;
}

.hero__scroll-cue svg {
    width: 24px;
    height: 24px;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--section-pad) 0;
}

.section__header {
    text-align: center;
    margin-bottom: clamp(3rem, 5vw, 4rem);
}

.section__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.section__subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   PROJECTS GRID
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ============================================
   PROJECT CARD
   ============================================ */
.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--gold-glow);
}

.project-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: visible;
}

.project-card__media-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.project-card__header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-card__header-img {
    transform: scale(1.04);
}

.project-card__logo-wrap {
    position: absolute;
    bottom: -20px;
    left: 1.25rem;
    width: 56px;
    height: 56px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.project-card__logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.project-card__body {
    padding: 2.5rem 1.25rem 1rem;
    flex: 1;
}

.project-card__name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.project-card__desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.project-card__footer {
    padding: 0 1.25rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.project-card__link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-surface-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: background var(--transition), color var(--transition);
}

.project-card__link:hover {
    background: var(--gold-glow);
    color: var(--gold);
}

.project-card__link svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.contact-wrap {
    max-width: 640px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
}

.form-input {
    background: var(--bg-base);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

textarea.form-input {
    min-height: 140px;
    resize: vertical;
}

.form-submit {
    align-self: flex-end;
    background: var(--gold);
    color: var(--text-on-gold);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.form-submit:hover {
    background: var(--gold-dim);
}

.form-submit:active {
    transform: scale(0.98);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 500;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    min-width: 240px;
    max-width: 400px;
    transform: translateY(1rem);
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast--success {
    border-left: 3px solid #4CAF50;
}

.toast--error {
    border-left: 3px solid #E53935;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0 1.5rem;
}

.footer-top {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.6;
}

.footer-address {
    font-style: normal;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: center;
}

.footer-address a {
    color: var(--text-secondary);
    transition: color var(--transition);
}

.footer-address a:hover {
    color: var(--gold);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 2.5rem;
}

.footer-nav a {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--text-primary);
}

.footer-divider {
    width: 100%;
    max-width: 640px;
    margin: 1.5rem auto 0;
    border: none;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom {
    max-width: 640px;
    margin: 1rem auto 0;
    text-align: center;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
    padding: calc(64px + 3rem) 0 4rem;
}

.legal-content {
    max-width: 720px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gold);
    margin: 2rem 0 0.75rem;
    letter-spacing: 0.02em;
}

.legal-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.legal-content a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-content ul {
    margin: 0.5rem 0 1rem 1.25rem;
    list-style: disc;
}

.legal-content li {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 0.25rem;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
    .site-header__nav {
        gap: 1.25rem;
    }

    .site-header__nav a {
        font-size: 0.8125rem;
    }

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

    .footer-address br {
        display: none;
    }

    .form-submit {
        align-self: stretch;
    }
}

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