/* --- SWISS INTERNATIONAL STYLE --- */
:root {
    --bg: #E5E5E5;
    --card: #F4F4F4;
    --ink: #111111;
    --line: #C0C0C0;
    --accent: #2E5CFF;

    --font-main: 'Inter', Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--font-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.system-container {
    width: 100%;
    max-width: 1000px;
    background-color: var(--card);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* --- HEADER / FOOTER --- */
.system-header,
.system-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 24px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    background: #fff;
    color: #666;
}

.system-footer {
    border-top: 1px solid var(--line);
    border-bottom: none;
    margin-top: auto;
}

.sys-id {
    color: var(--ink);
    font-weight: 700;
    margin-right: 12px;
}

/* --- GRID SYSTEM --- */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.cell {
    padding: 32px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    min-height: 320px;
    position: relative;
}

.cell:nth-child(2n) {
    border-right: none;
}

.label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: #888;
    display: block;
    margin-bottom: 24px;
}

/* --- ROW 1: BRAND --- */
.brand-cell {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo-type {
    font-size: 80px;
    line-height: 0.8;
    letter-spacing: -0.04em;
    margin: 0;
    font-weight: 600;
}

.brand-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.brand-meta p {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
}

/* --- ROW 1: MANIFESTO --- */
.lead {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 16px;
}

.body {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 38ch;
}

.link-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    cursor: pointer;
}

.link-btn:hover {
    text-decoration: underline;
}

/* --- ROWS 2, 3, 4: CARDS (Talks, Labs, etc) --- */
.card-cell {
    padding: 0;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
}

/* The Image Area */
.card-bg {
    height: 65%;
    width: 100%;
    background-size: cover;
    background-position: center;
    /* B&W by default */
    /*filter: grayscale(100%);
    transition: filter 0.4s ease;*/
    /* Only filter transitions */
    border-bottom: 1px solid var(--line);
}

.card-cell:hover .card-bg {
    /* Saturation Burst - NO TRANSFORM/SCALE */
    filter: grayscale(0%) saturate(1.2);
}

/* The Text Area */
.card-content {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--card);
    transition: background 0.2s;
}

.card-cell:hover .card-content {
    background: #fff;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-id {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    border: 1px solid var(--line);
    padding: 2px 6px;
    border-radius: 4px;
}

.card-bottom h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
}

.card-bottom p {
    margin: 0;
    font-size: 13px;
    color: #666;
}


/* --- ROW 5: FOUNDERS --- */
.full-row {
    grid-column: span 2;
    border-bottom: 1px solid var(--line);
    padding: 40px;
}

.founders-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 10px;
}

.founder-block {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    text-decoration: none;
    color: inherit;
    /* Link Reset */
}

/* Stamp Logic */
.stamp-frame {
    width: 130px;
    height: 100px;
    background: #fff;
    padding: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    /* Static rotation, no transition on hover requested */
}

.rotate-left {
    transform: rotate(-3deg);
}

.rotate-right {
    transform: rotate(2deg);
}

/* No hover effect on stamp frame requested */

.stamp-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*filter: grayscale(100%);*/
    display: block;
}

.founder-text .role {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent);
    display: block;
    margin-bottom: 6px;
}

.founder-text h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 600;
}

.founder-text p {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

/* --- ROW 6: CONTACT --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.input-line {
    display: flex;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 12px;
}

.input-line input {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 0;
    font-family: var(--font-mono);
    font-size: 14px;
    outline: none;
}

.input-line button {
    background: none;
    border: none;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.mail-link {
    font-size: 12px;
    color: #666;
    text-decoration: none;
}

.mail-link:hover {
    color: var(--accent);
}

/* --- MODAL --- */
dialog {
    padding: 0;
    border: none;
    background: transparent;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

dialog[open] {
    display: flex;
}

dialog::backdrop {
    background: rgba(255, 255, 255, 0.9);
}

.modal-card {
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--ink);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 32px;
}

.m-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    font-family: var(--font-mono);
    font-size: 11px;
}

#m-close {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

#m-title {
    font-size: 32px;
    margin: 0 0 16px;
    line-height: 1;
}

#m-body {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    overflow-y: auto;
    overscroll-behavior: contain;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
#m-body::-webkit-scrollbar {
    display: none;
}

#m-body ul {
    padding-left: 18px;
}

/* RESPONSIVE */
@media (max-width: 800px) {

    .grid-layout,
    .founders-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cell {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .full-row {
        grid-column: span 1;
    }

    .logo-type {
        font-size: 60px;
    }

    .card-cell {
        min-height: 280px;
    }
}