:root {
    --navy: #0b1f4d;
    --navy-soft: #132f73;
    --blue: #1f6feb;
    --green: #1a8f5a;
    --gold: #f1c44f;
    --red: #d92d20;
    --white: #ffffff;
    --ink: #10203a;
    --muted: #5a6881;
    --border: rgba(10, 31, 77, 0.12);
    --surface: #f4f7fb;
    --shadow: 0 20px 50px rgba(11, 31, 77, 0.09);
    --radius: 24px;
    --radius-sm: 16px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f9fbff 0%, #ffffff 18%, #f7f9fc 100%);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}
.top-ribbon {
    position: relative;
    height: 26px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}
.top-ribbon .stripe { display: block; }
.top-ribbon .blue { background: #1f5fbf; }
.top-ribbon .white { background: #fff; }
.top-ribbon .green { background: #23945c; }
.top-ribbon .yellow { background: #f0c33c; }
.top-ribbon .vertical-red {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 22px;
    height: 100%;
    background: var(--red);
    box-shadow: 0 0 18px rgba(217, 45, 32, 0.35);
}
.top-ribbon .star {
    position: absolute;
    right: 18px;
    top: 1px;
    font-size: 18px;
    color: #ffd84d;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10,31,77,0.08);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}
.brand img {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
}
.brand strong {
    display: block;
    font-size: 1rem;
    color: var(--navy);
}
.brand span {
    display: block;
    font-size: 0.88rem;
    color: var(--muted);
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.site-nav a {
    padding: 0.72rem 0.92rem;
    border-radius: 999px;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.site-nav a:hover,
.site-nav a.active {
    background: rgba(31,111,235,0.10);
    color: var(--navy-soft);
    transform: translateY(-1px);
}
.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--white);
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    color: var(--navy);
}
.hero-banner {
    position: relative;
    min-height: clamp(560px, 78vh, 860px);
    overflow: hidden;
    background: #08162d;
}
.hero-banner__media {
    position: absolute;
    inset: 0;
}
.hero-banner__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.hero-banner__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 10, 20, 0.82) 0%, rgba(4, 10, 20, 0.56) 42%, rgba(4, 10, 20, 0.28) 100%),
        linear-gradient(180deg, rgba(4, 10, 20, 0.18) 0%, rgba(4, 10, 20, 0.42) 100%);
}
.hero-banner__content {
    position: relative;
    z-index: 1;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(4rem, 9vw, 7.5rem) 0;
    color: var(--white);
}
.hero-banner .kicker {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}
.hero-banner h1 {
    margin: 0 0 1rem;
    color: var(--white);
    font-size: clamp(3rem, 8vw, 6.6rem);
    line-height: 0.92;
    letter-spacing: 0.08em;
    max-width: 6.5ch;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
}
.hero-banner h1 span {
    display: block;
}
.hero-banner .lead,
.hero-banner .intro-text {
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.hero-banner .btn-primary {
    background: var(--white);
    color: var(--navy);
}
.hero-banner .btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.28);
}
.hero-section {
    position: relative;
    padding: 4.8rem 0 3rem;
}
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 560px;
    background: radial-gradient(circle at 10% 20%, rgba(31,111,235,0.14), transparent 30%),
                radial-gradient(circle at 90% 15%, rgba(241,196,79,0.22), transparent 28%),
                linear-gradient(180deg, rgba(11,31,77,0.06), transparent 75%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
}
.hero-copy h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.25rem, 4vw, 4.3rem);
    line-height: 1.05;
    color: var(--navy);
    max-width: 13ch;
}
.kicker {
    margin: 0 0 0.8rem;
    font-weight: 800;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
}
.lead {
    margin: 0;
    max-width: 62ch;
    color: var(--muted);
    font-size: 1.08rem;
}
.intro-text {
    margin: 1rem 0 0;
    max-width: 68ch;
    color: var(--ink);
    font-size: 1.02rem;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.82rem 1.15rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 14px 30px rgba(11,31,77,0.18);
}
.btn-secondary {
    background: rgba(255,255,255,0.84);
    color: var(--navy);
    border: 1px solid var(--border);
}
.hero-visual {
    display: flex;
    justify-content: center;
}
.brand-panel,
.diagram-card,
.contact-panel,
.stack-cards,
.quote-box,
.card,
.mini-card,
.brand-panel.compact {
    backdrop-filter: blur(6px);
}
.brand-panel,
.diagram-card,
.contact-panel,
.quote-box {
    width: 100%;
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(10,31,77,0.08);
    box-shadow: var(--shadow);
    border-radius: calc(var(--radius) + 2px);
}
.brand-panel { padding: 1.2rem; }
.brand-panel.compact { min-height: 180px; display: flex; align-items: center; }
.brand-panel-top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.brand-panel-top span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    background: rgba(11,31,77,0.06);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.9rem;
}
.mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.95rem;
}
.mini-card {
    padding: 1rem;
    border-radius: 22px;
    min-height: 126px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(11,31,77,0.16);
}
.mini-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 35%);
}
.mini-card strong,
.mini-card span { position: relative; z-index: 1; }
.mini-card strong { font-size: 1.08rem; }
.mini-card span { opacity: 0.92; font-size: 0.94rem; }
.mini-card.water { background: linear-gradient(135deg, #0d3e97, #1f6feb 60%, #68a6ff); }
.mini-card.build { background: linear-gradient(135deg, #0d234e, #1b4f97 60%, #2c7be5); }
.mini-card.travel { background: linear-gradient(135deg, #11613f, #1a8f5a 60%, #53c28b); }
.mini-card.europe { background: linear-gradient(135deg, #6b4a00, #c88b00 60%, #f1c44f); }
.section {
    padding: 1.6rem 0 3.2rem;
}
.section.surface {
    padding-top: 2rem;
}
.section.surface .container {
    background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(244,247,251,0.92));
    border: 1px solid rgba(10,31,77,0.07);
    border-radius: calc(var(--radius) + 6px);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.section-head {
    max-width: 70ch;
    margin-bottom: 1.3rem;
}
.section-head h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.65rem, 2.3vw, 2.5rem);
    line-height: 1.15;
    color: var(--navy);
}
.section-head p {
    margin: 0;
    color: var(--muted);
}
.grid {
    display: grid;
    gap: 1rem;
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(10,31,77,0.08);
    border-radius: 22px;
    padding: 1.2rem;
    box-shadow: 0 16px 30px rgba(11,31,77,0.06);
    min-height: 100%;
}
.card h3 {
    margin: 0 0 0.45rem;
    color: var(--navy);
    font-size: 1.08rem;
}
.card p {
    margin: 0;
    color: var(--muted);
}
.card-note {
    margin-top: 0.85rem !important;
    font-size: 0.92rem;
    color: var(--navy) !important;
}
.eyebrow {
    margin: 0 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
    color: var(--red);
    font-weight: 800;
}
.text-link {
    display: inline-flex;
    margin-top: 0.85rem;
    font-weight: 800;
    color: var(--navy-soft);
}
.text-link::after {
    content: "→";
    margin-left: 0.35rem;
}
.search-shell {
    display: grid;
    gap: 0.85rem;
    background: rgba(11, 31, 77, 0.92);
    color: var(--white);
    padding: 1.25rem;
    border-radius: calc(var(--radius) + 2px);
    box-shadow: var(--shadow);
}
.search-input {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 16px;
    padding: 0.95rem 1rem;
    font: inherit;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.98);
    outline: none;
}
.search-input::placeholder {
    color: #7a8497;
}
.search-input:focus {
    box-shadow: 0 0 0 3px rgba(241, 196, 79, 0.28);
}
.search-submit {
    width: fit-content;
}
.search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.search-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 0.58rem 0.86rem;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.search-chip:hover {
    background: rgba(255, 255, 255, 0.18);
}
.search-status {
    margin: 0.75rem 0 1rem;
    color: var(--muted);
    font-weight: 700;
}
.search-results {
    align-items: stretch;
}
.search-result {
    display: grid;
    gap: 0.5rem;
}
.search-result h3 {
    margin: 0;
}
.search-phrase {
    color: var(--ink) !important;
}
.search-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.92rem;
}
.search-empty {
    grid-column: 1 / -1;
}
.media-grid {
    align-items: stretch;
}
.media-card {
    display: grid;
    gap: 0.8rem;
    align-content: start;
}
.image-tile {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background: linear-gradient(180deg, rgba(11,31,77,0.04), rgba(11,31,77,0.02));
    border-radius: 18px;
    padding: 1rem;
    border: 1px solid rgba(10,31,77,0.08);
}
.media-card h3 {
    margin-bottom: 0;
}
.media-card p {
    color: var(--muted);
}
.contact-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    background: rgba(11,31,77,0.92);
    color: var(--white);
    padding: 1.25rem;
    border-radius: calc(var(--radius) + 2px);
    box-shadow: var(--shadow);
}
.contact-band div,
.contact-panel div {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.contact-band strong,
.contact-panel strong {
    color: rgba(255,255,255,0.7);
    font-size: 0.83rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.contact-panel {
    padding: 1rem;
    display: grid;
    gap: 0.85rem;
}
.contact-panel a,
.contact-band a { color: var(--white); font-weight: 700; }
.quote-box {
    padding: 1.2rem 1.3rem;
    position: relative;
    overflow: hidden;
}
.quote-box::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 8px;
    background: linear-gradient(180deg, #1f5fbf, #fff, #23945c, #f0c33c, #d92d20);
}
.quote-box p {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--navy);
    font-size: 1.02rem;
}
.quote-box p + p { margin-top: 0.85rem; }
.small-note {
    color: var(--muted) !important;
    font-size: 0.95rem !important;
}
.diagram-card {
    padding: 1.2rem;
    display: grid;
    gap: 1rem;
}
.node-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.node {
    border-radius: 18px;
    padding: 1rem;
    text-align: center;
    font-weight: 800;
    color: var(--navy);
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(244,247,251,0.9));
    border: 1px solid rgba(10,31,77,0.08);
}
.node.main {
    padding: 1.35rem;
    background: linear-gradient(135deg, var(--navy), var(--navy-soft));
    color: var(--white);
    box-shadow: 0 16px 30px rgba(11,31,77,0.18);
}
.stack-cards {
    display: grid;
    gap: 0.8rem;
    width: 100%;
}
.stack-card {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(10,31,77,0.08);
    box-shadow: var(--shadow);
    color: var(--navy);
    font-weight: 800;
}
.entity-art {
    width: min(100%, 420px);
    aspect-ratio: 1 / 1;
    border-radius: 34px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(10,31,77,0.08);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.entity-art::before,
.entity-art::after {
    content: "";
    position: absolute;
    border-radius: 999px;
}
.water-drop::before {
    width: 180px;
    height: 240px;
    background: linear-gradient(180deg, #1f6feb, #0b2b66);
    left: 50%;
    top: 16%;
    transform: translateX(-50%) rotate(45deg);
}
.water-drop::after {
    width: 110px;
    height: 110px;
    background: rgba(255,255,255,0.25);
    left: 46%;
    top: 24%;
    transform: translateX(-50%);
}
.building-art::before {
    width: 95px;
    height: 240px;
    background: linear-gradient(180deg, #10203a, #1f6feb);
    left: 24%;
    bottom: 12%;
}
.building-art::after {
    width: 135px;
    height: 285px;
    background: linear-gradient(180deg, #163a78, #0b1f4d);
    right: 20%;
    bottom: 12%;
    border-radius: 28px 28px 0 0;
}
.wing-art::before {
    width: 250px;
    height: 120px;
    background: linear-gradient(135deg, #1f6feb, #0b1f4d);
    top: 36%;
    left: 10%;
    transform: rotate(-14deg);
    border-radius: 80px 10px 80px 10px;
}
.wing-art::after {
    width: 220px;
    height: 95px;
    background: linear-gradient(135deg, #1a8f5a, #11613f);
    top: 26%;
    right: 8%;
    transform: rotate(16deg);
    border-radius: 10px 80px 10px 80px;
}
.europe-art::before {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at 40% 40%, #f1c44f, #a46a00 72%);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.europe-art::after {
    width: 110px;
    height: 110px;
    background: rgba(255,255,255,0.22);
    left: 58%;
    top: 38%;
    transform: translate(-50%, -50%);
}
.muted { color: var(--muted); }
.site-footer {
    margin-top: 2rem;
    background: #09152f;
    color: rgba(255,255,255,0.9);
    padding-top: 2.2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 1fr;
    gap: 1.5rem;
    padding-bottom: 1.4rem;
}
.site-footer h3 {
    margin: 0 0 0.6rem;
    color: var(--white);
    font-size: 1.05rem;
}
.site-footer p { margin: 0 0 0.85rem; }
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}
.footer-links a { color: rgba(255,255,255,0.88); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.72);
    font-size: 0.92rem;
}
.footer-bottom a { color: rgba(255,255,255,0.88); }

.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;
}

@media (max-width: 1080px) {
    .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-grid,
    .footer-grid { grid-template-columns: 1fr; }
    .contact-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .menu-toggle { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 1rem;
        left: 1rem;
        background: rgba(255,255,255,0.98);
        border: 1px solid rgba(10,31,77,0.08);
        border-radius: 22px;
        padding: 0.7rem;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
    }
    .site-nav.open { display: flex; }
    .site-nav a { border-radius: 14px; }
    .grid.three,
    .grid.two,
    .grid.four,
    .contact-band,
    .mini-grid,
    .node-row { grid-template-columns: 1fr; }
    .search-meta { align-items: flex-start; }
    .hero-section { padding-top: 3.3rem; }
    .hero-copy h1 { max-width: none; }
    .section.surface .container { padding: 1.2rem; }
    .search-submit { width: 100%; }
}

@media (max-width: 560px) {
    .container { width: min(calc(100% - 1.1rem), var(--container)); }
    .top-ribbon .star { right: 10px; }
    .brand strong { font-size: 0.96rem; }
    .brand span { font-size: 0.82rem; }
    .hero-copy h1 { font-size: clamp(2rem, 9vw, 3rem); }
    .lead { font-size: 1rem; }
    .btn { width: 100%; }
    .search-chip { width: 100%; justify-content: center; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
