:root {
    --background: #f5f7fa;
    --surface: #ffffff;
    --surface-soft: #eef3f7;
    --border: #d9dee5;
    --text: #172033;
    --muted: #64748b;
    --blue: #1e3a5f;
    --blue-hover: #284d7a;
    --research: #b8002a;
    --understanding: #008c96;
    --systems: #0f2544;
    --shadow: 0 18px 45px rgba(15, 37, 68, 0.08);
    --radius: 18px;
    --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(0, 140, 150, 0.10), transparent 34rem),
        linear-gradient(180deg, #f8fafc 0%, var(--background) 100%);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}

.site-header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
}

.site-brand { display: flex; align-items: center; gap: 14px; color: var(--text); }
.site-brand__mark { width: 42px; display: grid; gap: 4px; }
.site-brand__bar { display: block; height: 6px; border-radius: 999px; }
.site-brand__bar--research { background: var(--research); }
.site-brand__bar--understanding { background: var(--understanding); }
.site-brand__bar--systems { background: var(--systems); }
.site-brand__text { display: grid; line-height: 1.15; }
.site-brand__name { color: var(--systems); font-size: 1.15rem; font-weight: 800; letter-spacing: 0.13em; }
.site-brand__tagline { color: var(--muted); font-size: 0.78rem; }

.site-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }

.site-nav__link,
.site-utility a,
.button {
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 650;
    font-size: 0.94rem;
}

.site-nav__link { color: var(--muted); }
.site-nav__link:hover,
.site-nav__link--current { color: var(--systems); background: var(--surface-soft); }
.site-utility { display: flex; align-items: center; gap: 10px; }
.site-utility a { color: var(--systems); border: 1px solid var(--border); background: var(--surface); }

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
}

.language-switch .language-switch__link {
    padding: 5px 8px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.language-switch .language-switch__link--current { background: var(--surface-soft); color: var(--systems); }

.site-main { max-width: var(--max-width); margin: 0 auto; padding: 56px 24px 84px; }
.hero { padding: 64px 0 42px; }
.hero--home { min-height: 520px; display: flex; flex-direction: column; justify-content: center; }

.hero__label,
.eyebrow {
    color: var(--understanding);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 980px;
    margin: 18px 0 24px;
    color: var(--systems);
    font-size: clamp(3rem, 7vw, 6.6rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero h1 span { color: var(--blue); }
.hero__lead { max-width: 780px; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); }

.method-line { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.method-line__item {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    padding: 8px 15px;
    font-weight: 750;
    box-shadow: 0 6px 18px rgba(15, 37, 68, 0.05);
}

.method-line__item--research { border-color: rgba(184, 0, 42, 0.25); }
.method-line__item--understanding { border-color: rgba(0, 140, 150, 0.30); }
.method-line__item--architecture,
.method-line__item--systems { border-color: rgba(15, 37, 68, 0.22); }
.method-line__arrow { color: var(--muted); }

.section { margin-top: 72px; }
.section--statement { margin-top: 24px; }

.statement {
    max-width: 980px;
    margin: 0;
    padding: 32px;
    border-left: 6px solid var(--understanding);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--systems);
    font-size: clamp(1.35rem, 3vw, 2.2rem);
    line-height: 1.25;
    box-shadow: var(--shadow);
}

.section__header { max-width: 760px; margin-bottom: 28px; }
.section__header h2,
.section--split h2,
.page-title h1 {
    margin: 8px 0 0;
    color: var(--systems);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid--four { grid-template-columns: repeat(4, 1fr); }

.card,
.system-card,
.publication-preview,
.empty-state,
.access-panel,
.principle-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 10px 28px rgba(15, 37, 68, 0.045);
}

.card h3,
.system-card h3,
.publication-preview h3,
.principle-item h3 { margin: 0 0 12px; color: var(--systems); font-size: 1.28rem; }
.card p,
.system-card p,
.publication-preview p,
.empty-state p,
.text-block p,
.principle-item p { color: var(--muted); }
.card--accent-research { border-top: 5px solid var(--research); }
.card--accent-understanding { border-top: 5px solid var(--understanding); }
.card--accent-architecture,
.card--accent-systems { border-top: 5px solid var(--systems); }

.method-flow--vertical { display: grid; gap: 18px; max-width: 980px; }

.method-step {
    position: relative;
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 26px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 6px);
    box-shadow: 0 10px 28px rgba(15, 37, 68, 0.045);
}

.method-step::before {
    content: "";
    position: absolute;
    left: 70px;
    top: 100%;
    width: 1px;
    height: 18px;
    background: var(--border);
}

.method-step:last-child::before { display: none; }
.method-step__number { color: var(--systems); font-size: 2rem; font-weight: 850; line-height: 1; opacity: 0.36; }
.method-step h2 { margin: 6px 0 12px; color: var(--systems); font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -0.035em; }
.method-step p { color: var(--muted); }
.method-step__meta { display: grid; gap: 6px; margin-top: 18px; font-size: 0.9rem; color: var(--systems); }
.method-step--observation { border-left: 6px solid var(--systems); }
.method-step--research { border-left: 6px solid var(--research); }
.method-step--understanding { border-left: 6px solid var(--understanding); }
.method-step--architecture,
.method-step--systems { border-left: 6px solid var(--systems); }

.principle-list { display: grid; gap: 16px; max-width: 980px; }

.principle-block {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 26px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 6px);
    box-shadow: 0 10px 28px rgba(15, 37, 68, 0.045);
}

.principle-block__number { color: var(--systems); font-size: 2rem; font-weight: 850; line-height: 1; opacity: 0.36; }
.principle-block h2 { margin: 0 0 12px; color: var(--systems); font-size: clamp(1.35rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -0.035em; }
.principle-block p { margin: 0; color: var(--muted); }
.principle-block--research { border-left: 6px solid var(--research); }
.principle-block--understanding { border-left: 6px solid var(--understanding); }
.principle-block--systems { border-left: 6px solid var(--systems); }

.system-list { display: grid; gap: 22px; }

.system-detail {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 8px);
    padding: 32px;
    box-shadow: 0 10px 28px rgba(15, 37, 68, 0.045);
}

.system-detail--research { border-left: 6px solid var(--research); }
.system-detail--understanding { border-left: 6px solid var(--understanding); }
.system-detail--systems { border-left: 6px solid var(--systems); }

.system-detail__header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 26px;
}

.system-detail__header h2 {
    margin: 0;
    color: var(--systems);
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.system-detail__header p { margin: 8px 0 0; color: var(--muted); }
.system-detail__type { color: var(--systems); font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; }
.system-detail__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.system-detail__grid p { color: var(--muted); }
.system-detail__grid .eyebrow { color: var(--systems); }

.section--split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 54px; align-items: start; }
.section--quiet { background: rgba(255, 255, 255, 0.6); border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px); padding: 36px; }
.text-block p:first-child { margin-top: 0; }
.strong-line { color: var(--systems) !important; font-weight: 800; }

.status-badge {
    display: inline-flex;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--systems);
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 750;
}

.button,
button { display: inline-flex; border: none; background: var(--systems); color: #ffffff; cursor: pointer; }
.button:hover,
button:hover { color: #ffffff; background: var(--blue-hover); }
.button--secondary { color: var(--systems); background: var(--surface); border: 1px solid var(--border); }
.button--secondary:hover { color: var(--systems); background: var(--surface-soft); }

.publication-list { display: grid; gap: 18px; }
.publication-preview__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9rem; }
.page-title { max-width: 860px; margin-bottom: 44px; }
.page-title p { color: var(--muted); font-size: 1.14rem; }
.access-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.publication-content {
    max-width: 860px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: 0 10px 28px rgba(15, 37, 68, 0.045);
}

.publication-content h1,
.publication-content h2,
.publication-content h3 { color: var(--systems); line-height: 1.15; }
.publication-content p,
.publication-content li { color: var(--text); }
.publication-content img { max-width: 100%; height: auto; border-radius: 12px; }
.publication-content blockquote { margin-left: 0; padding-left: 22px; border-left: 4px solid var(--understanding); color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.72); }
.site-footer__inner { max-width: var(--max-width); margin: 0 auto; padding: 34px 24px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: center; color: var(--muted); }
.site-footer strong { color: var(--systems); letter-spacing: 0.12em; }
.site-footer p { margin: 4px 0 0; }
.site-footer__statement { color: var(--systems); font-weight: 700; }
.site-footer__links { display: flex; gap: 14px; flex-wrap: wrap; }

table { width: 100%; border-collapse: collapse; background: var(--surface); }
table th,
table td { border: 1px solid var(--border); padding: 10px; text-align: left; }

form input,
form textarea,
form select,
input,
textarea,
select { width: 100%; max-width: 900px; border: 1px solid var(--border); border-radius: 10px; padding: 10px; }

@media (max-width: 960px) {
    .site-header__inner,
    .section--split,
    .site-footer__inner { grid-template-columns: 1fr; }
    .site-nav { justify-content: flex-start; }
    .site-utility { align-items: flex-start; flex-wrap: wrap; }
    .card-grid,
    .card-grid--four,
    .access-grid,
    .system-detail__grid { grid-template-columns: 1fr; }
    .method-step,
    .principle-block { grid-template-columns: 1fr; }
    .method-step::before { left: 34px; }
    .system-detail__header { display: grid; }
    .hero--home { min-height: auto; }
}
