@font-face {
    font-family: 'Josefin Sans';
    src: url('fonts/josefin-sans/JosefinSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Josefin Sans';
    src: url('fonts/josefin-sans/JosefinSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Josefin Sans';
    src: url('fonts/josefin-sans/JosefinSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Josefin Sans';
    src: url('fonts/josefin-sans/JosefinSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --cream: #FFFBF5;
    --cream-2: #F0E8D8;
    --ink: #14171A;
    --blue: #AEC9E7;
    --blue-soft: #D4E5F3;
    --teal: #12504B;
    --teal-2: #0D3B37;
    --tan: #CFB494;
    --line: rgba(18,80,75,0.18);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Josefin Sans', sans-serif;
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ── Hero ── */
.hero {
    position: relative;
    /* min-height: max(100vh, 71vw); */
    min-height: 100vh;
    background-color: var(--cream);
    overflow: hidden;
    background-image: url(assets/coming.png);
    background-size: 1440px;
    background-repeat: no-repeat;
    background-position: bottom left;
}
@media (max-width: 1550px) {
    .hero {
        background-size: 100vw;
    }
}
@media (max-height: 900px) and (min-width: 950px) {
    .hero {
        background-size: 900px;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    animation: fadeIn 1.2s ease-out;
}

.logo {
    width: 155px;
    min-width: 120px;
    height: auto;
    object-fit: contain;
    display: block;
}

.divider {
    width: 40px;
    height: 1px;
    background: var(--tan);
    margin: 1.3vw 0;
    opacity: 0.6;
    animation: drawLine 1.4s ease-out 0.4s both;
}

@keyframes drawLine {
    from { width: 0; opacity: 0; }
    to   { width: 40px; opacity: 0.6; }
}

.stay-tuned {
    font-weight: 400;
    font-size: 20px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--teal);
    text-align: center;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-weight: 400;
    font-size: 16px;
    color: var(--tan);
    text-align: center;
}

/* ── Coming Soon background text ── */
.coming-soon {
    position: absolute;
    bottom: -2%;
    left: -2%;
    z-index: 1;
    font-weight: 700;
    font-size: 371px;
    line-height: 0.83;
    letter-spacing: -0.08em;
    color: var(--blue);
    display: flex;
    flex-direction: column;
    pointer-events: none;
    user-select: none;
    animation: fadeIn 1.4s ease-out 0.3s both;
}

.coming-soon span {
    display: block;
    white-space: nowrap;
}

/* ── Illustration ── */
.illustration {
    position: absolute;
    bottom: -10%;
    right: 40px;
    transform: translateX(-50%) rotate(3.86deg);
    z-index: 3;
    width: 19vw;
    min-width: 150px;
    transform-origin: center bottom;
    animation: fadeIn 1.2s ease-out 0.6s both;
}

.illustration img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Hero nav links ── */
.hero-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-top: 36px;
    animation: fadeIn 1.2s ease-out 0.6s both;
}

.hero-nav-link {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 2.42px;
    text-transform: uppercase;
    color: var(--blue);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.hero-nav-link:hover {
    opacity: 0.7;
}

/* ── Impressum link (subtle, for legal accessibility) ── */
.impressum-link {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 2.42px;
    text-transform: uppercase;
    color: var(--tan);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    animation: fadeIn 1.2s ease-out 1s both;
    margin-left: -41px;
}

.impressum-link:hover {
    opacity: 1;
}

/* ── Impressum Section ── */
.impressum {
    position: relative;
    background-color: var(--teal);
    color: var(--cream);
    padding: 5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.impressum-content {
    max-width: 420px;
    width: 100%;
}

.impressum-content h2 {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2.42px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 2rem;
}

.impressum-content p {
    font-weight: 300;
    font-size: 14px;
    line-height: 26px;
    color: var(--cream);
}

.impressum-content .label {
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 2.42px;
    text-transform: uppercase;
    color: var(--tan);
    display: block;
    margin-top: 1.5rem;
    margin-bottom: 0.3rem;
}

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

.impressum-content a:hover {
    opacity: 0.7;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 3rem;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 2.42px;
    text-transform: uppercase;
    color: var(--blue) !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.7;
}

.moka-pot {
    position: absolute;
    width: 44px;
    height: auto;
    bottom: 5rem;
    right: calc(50% - 120px);
    opacity: 0.35;
}

/* ── Animations ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1800px) {
    .illustration {
        width: 272px;
    }
}

.comingsoon-img {
    display: none;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .hero {
        background-image: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
    }
    .comingsoon-img {
        display: block;
    }
    .comingsoon-img img {
        max-width: 100%;
    }
    .hero-content {
        padding-top: 8vw;
    }
    .illustration {
        left: inherit;
        bottom: 0;
        width: 192px;
        min-width: 150px;
        right: 0;
        margin-left: 0;
        position: relative;
        margin-bottom: -100px;
    }
    .impressum {
        padding: 3.5rem 1.5rem;
    }
    .impressum-link {
        bottom: 1rem;
    }
    .moka-pot {
        right: 120px;
        bottom: 3rem;
    }
    .impressum-content {
        max-width: 225px;
    }
}

@media (max-width: 400px) {
    .stay-tuned {
        font-size: 17px;
        letter-spacing: 5px;
    }
    .subtitle {
        font-size: 14px;
    }
    .illustration {
        width: 160px;
    }
}

@media (max-width: 500px) {
    .hero-nav {
        gap: 16px;
    }
    .hero-nav-link {
        letter-spacing: 1px;
    }
}

/* ── Selection ── */
::selection {
    background: var(--teal);
    color: var(--cream);
}

/* ── Site Header (careers page) ── */
.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    padding-bottom: 0;
    background: var(--cream);
}
.site-header .logo {
    width: 155px;
    min-width: 120px;
    height: auto;
    object-fit: contain;
    display: block;
    animation: fadeIn 1.2s ease-out both;
}
.site-header .divider {
    width: 40px;
    height: 1px;
    background: var(--tan);
    margin: 1.3vw 0;
    opacity: 0.6;
    animation: drawLine 1.4s ease-out 0.4s both;
}
.site-header .stay-tuned {
    font-weight: 400;
    font-size: 20px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--teal);
    text-align: center;
    margin-bottom: 0.5rem;
    animation: fadeIn 1.2s ease-out 0.3s both;
}
.site-header .subtitle {
    font-weight: 400;
    font-size: 16px;
    color: var(--tan);
    text-align: center;
    animation: fadeIn 1.2s ease-out 0.5s both;
}

@media (max-width: 768px) {
    .site-header {
        padding-top: 8vw;
    }
}

/* ── Careers Section ── */
.section {
    padding: 104px 6vw;
    max-width: 1200px;
    margin: 0 auto;
}
.head {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: end;
    margin-bottom: 72px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 18px;
}
.eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
}
h1.title {
    margin: 0;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(40px, 5.4vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--teal);
}
h1.title .ital {
    font-weight: 400;
    color: var(--tan);
    font-size: 0.6em;
    letter-spacing: 0;
    margin-left: 0.16em;
    vertical-align: 0.16em;
}
.intro {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    opacity: .8;
    max-width: 56ch;
}

/* ── Cards Grid ── */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.card {
    position: relative;
    background: var(--cream-2);
    border-radius: 6px;
    padding: 32px 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 360px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), background .25s ease;
}
.card:hover {
    transform: translateY(-4px);
    background: #E8DCC8;
}
.card:nth-child(2) { background: var(--blue-soft); }
.card:nth-child(2):hover { background: #BDD3E8; }
.card:nth-child(3) { background: var(--cream-2); }
.card::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 165px;
    height: 165px;
    background-image: url('assets/smiley.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}
.card-role {
    font-weight: 700;
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--teal);
    margin: 0 0 6px;
    text-wrap: balance;
    min-height: 90px;
}
.card-mw {
    display: block;
    font-weight: 400;
    font-size: 14px;
    color: var(--teal);
    margin-top: 2px;
}
.card-meta {
    margin-top: 56px;
    padding-top: 28px;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 18px;
    row-gap: 10px;
    border-top: 1px solid var(--line);
    position: relative;
    z-index: 1;
}
.card-meta dt {
    font-weight: 400;
    font-size: 10.5px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--teal);
    padding-top: 2px;
}
.card-meta dd {
    margin: 0;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--teal);
    line-height: 1.4;
}

/* ── Careers CTA ── */
.cta {
    margin-top: 56px;
    padding: 32px 36px;
    background: var(--teal);
    color: var(--cream);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}
.cta-text {
    font-size: 15.5px;
    line-height: 1.55;
    max-width: 60ch;
}
.cta-text strong { font-weight: 600; }
.cta-text .small {
    display: block;
    font-size: 18px;
    color: var(--blue);
    margin-top: 6px;
}
.mail-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--cream);
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 999px;
    transition: background .2s ease, transform .2s ease;
}
.mail-btn:hover {
    background: var(--blue);
    transform: translateY(-1px);
}
.mail-btn svg { width: 16px; height: 16px; }

@media (max-width: 940px) {
    .grid { grid-template-columns: 1fr; }
    .head { grid-template-columns: 1fr; gap: 20px; }
    .card { min-height: 280px; }
    .cta { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 940px) {
    .card-meta { min-height: 120px; }
}

/* ── Cards: clickable ── */
.card { cursor: pointer; }

/* ── Job Detail Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 59, 55, 0.75);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--cream);
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(28px);
    transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}

.modal-overlay.is-open .modal-box {
    transform: translateY(0);
}

.modal-topbar {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    padding: 18px 20px 0;
    background: var(--cream);
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--teal);
    padding: 6px;
    border-radius: 4px;
    opacity: 0.45;
    transition: opacity 0.2s ease;
    line-height: 0;
}

.modal-close:hover {
    opacity: 1;
}

.modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 4px 48px 52px;
    scrollbar-width: thin;
    scrollbar-color: var(--tan) transparent;
}

.modal-content::-webkit-scrollbar { width: 4px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: var(--tan); border-radius: 4px; }

/* Modal header */
.modal-header {
    padding-bottom: 28px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--line);
}

.modal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 14px;
}

.modal-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--teal);
    margin: 0 0 6px;
}

.modal-mw {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 15px;
    color: var(--tan);
    margin-bottom: 22px;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-tag {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    background: var(--cream-2);
    border-radius: 6px;
    padding: 10px 16px;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--teal);
}

.modal-tag-key {
    font-weight: 400;
    font-size: 9.5px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--tan);
}

/* Modal body — Poppins for content */
.modal-body {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.modal-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-section-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 10.5px;
    letter-spacing: 2.42px;
    text-transform: uppercase;
    color: var(--tan);
    display: block;
}

.modal-body p {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.8;
    color: var(--ink);
    margin: 0;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-body li {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink);
    padding-left: 18px;
    position: relative;
}

.modal-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal);
    opacity: 0.4;
}

/* Apply section */
.modal-apply {
    background: var(--teal);
    border-radius: 8px;
    padding: 28px 32px;
    gap: 14px;
}

.modal-apply .modal-section-label {
    color: var(--blue);
}

.modal-apply p {
    color: var(--cream);
    opacity: 0.85;
}

.modal-apply .modal-note {
    font-size: 13px;
    font-style: italic;
    opacity: 0.6;
}

.modal-mail-btn {
    margin-top: 8px;
    align-self: flex-start;
}

/* Modal responsive */
@media (max-width: 600px) {
    .modal-overlay {
        padding: 0;
    }
    .modal-box {
        border-radius: 16px;
        max-height: 90vh;
        max-width: 90vw;
    }
    .modal-content {
        padding: 4px 24px 44px;
    }
    .modal-tag {
        padding: 8px 12px;
        font-size: 12px;
    }
    .modal-apply {
        padding: 22px 24px;
    }
}
