:root {
    --ink: #f8fafc;
    --night: #0f1011;
    --navy: #1e293b;
    --navy-soft: #26364b;
    --orania-blue: #075ba8;
    --orania-blue-deep: #04477f;
    --orange: #e46f2c;
    --orange-soft: #f59b63;
    --cream-note: #fff3dd;
    --line: #35455b;
    --muted: #aab4c2;
    --warm-muted: #756c5e;
    --shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--night);
    color: var(--ink);
    line-height: 1.55;
}

a {
    color: inherit;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: 94px;
    padding: 18px clamp(18px, 4vw, 58px);
    background: rgba(30, 41, 59, 0.96);
    border-bottom: 1px solid rgba(228, 111, 44, 0.25);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 4px;
    overflow: hidden;
    background: #0b0c0d;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.theme-logo-light {
    display: none;
}

.theme-logo-dark {
    display: block;
}

[data-bs-theme="light"] .theme-logo-dark,
body.light-mode .theme-logo-dark {
    display: none;
}

[data-bs-theme="light"] .theme-logo-light,
body.light-mode .theme-logo-light {
    display: block;
}

.brand strong {
    display: block;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    color: #fff;
    font-size: 1.22rem;
    font-weight: 900;
}

.brand small {
    display: block;
    color: #c4ccd6;
    font-size: 0.78rem;
}

.header-product-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 10px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.header-product-pill {
    flex: 0 1 auto;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.92rem;
    white-space: nowrap;
}

.header-product-pill img {
    width: 72px;
    height: 45px;
    object-fit: cover;
    border-radius: 999px;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
    margin-left: 0;
    font-size: 1rem;
}

.top-nav a {
    text-decoration: none;
    color: #f8fafc;
    font-weight: 800;
}

.top-nav a:hover,
.top-nav a.active {
    color: #ff841f;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--orange);
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(228, 111, 44, 0.28);
    white-space: nowrap;
}

.orania-hero {
    position: relative;
    background: #07111f;
    overflow: hidden;
}

.orania-hero-image {
    position: relative;
    height: clamp(250px, 34vw, 430px);
    min-height: 250px;
    max-width: none;
    margin: 0 auto;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(228, 111, 44, 0.26), transparent 34%),
        radial-gradient(circle at 82% 12%, rgba(7, 91, 168, 0.34), transparent 36%),
        #07111f;
}

.hero-fallback-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    filter: saturate(1.04) contrast(1.03);
}

.hero-collage {
    position: absolute;
    inset: -22px 0;
    display: grid;
    align-content: center;
    gap: clamp(10px, 1.6vw, 18px);
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

.collage-row {
    width: 100%;
    overflow: hidden;
    transform: rotate(-1deg);
}

.collage-row-2 {
    transform: rotate(1.2deg);
}

.collage-row-3 {
    transform: rotate(-0.7deg);
}

.collage-track {
    display: flex;
    width: max-content;
    gap: clamp(10px, 1.4vw, 18px);
    animation: collageFlow 54s linear infinite;
    will-change: transform;
}

.collage-row-2 .collage-track {
    animation-name: collageFlowReverse;
    animation-duration: 66s;
}

.collage-row-3 .collage-track {
    animation-duration: 60s;
}

.collage-tile {
    flex: 0 0 clamp(142px, 14vw, 235px);
    height: clamp(92px, 9vw, 146px);
    overflow: hidden;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
}

.collage-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.06) contrast(1.04);
}

@keyframes collageFlow {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes collageFlowReverse {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

.hero-image-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 10, 18, 0.28) 0%, rgba(5, 10, 18, 0.08) 46%, rgba(5, 10, 18, 0.52) 100%),
        linear-gradient(90deg, rgba(5, 10, 18, 0.82), transparent 26%, transparent 74%, rgba(5, 10, 18, 0.82));
    pointer-events: none;
}

.welcome-band {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: clamp(104px, 11vw, 148px);
    margin-top: 0;
    padding: clamp(26px, 4vw, 42px) clamp(18px, 4vw, 58px);
    background: var(--orania-blue);
    overflow: hidden;
}

.welcome-band::before {
    content: "";
    position: absolute;
    left: -7vw;
    right: -7vw;
    top: -86px;
    height: 116px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0 0 50% 50%;
}

.welcome-band::after {
    content: "";
    position: absolute;
    left: -5vw;
    right: -5vw;
    top: -70px;
    height: 96px;
    background: var(--orania-blue);
    border-radius: 0 0 50% 50%;
}

.welcome-band h1 {
    position: relative;
    z-index: 1;
    max-width: none;
    color: #fff;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(2.1rem, 4.6vw, 4.35rem);
    font-weight: 300;
    line-height: 1.12;
    text-align: center;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
    padding: clamp(44px, 6vw, 76px) clamp(18px, 4vw, 58px) 42px;
    background:
        radial-gradient(circle at 9% 10%, rgba(7, 91, 168, 0.34), transparent 31%),
        radial-gradient(circle at 86% 18%, rgba(228, 111, 44, 0.16), transparent 28%),
        linear-gradient(135deg, #111213 0%, #151a22 48%, #0f1011 100%);
}

.hero-copy {
    max-width: 790px;
    padding-top: clamp(6px, 2vw, 22px);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--orange);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: #fff;
    letter-spacing: 0;
}

h1 {
    max-width: 820px;
    font-size: clamp(2.65rem, 6vw, 5.15rem);
    line-height: 0.98;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.07;
}

h3 {
    font-size: 1.2rem;
    line-height: 1.2;
}

.hero-text {
    max-width: 670px;
    margin: 22px 0 16px;
    color: #d0d6de;
    font-size: 1.12rem;
}

.welcome-note {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    width: min(100%, 640px);
    margin: 18px 0 20px;
    padding: 15px 16px;
    background: var(--cream-note);
    border: 1px solid #f2d4a8;
    border-left: 5px solid var(--orange);
    border-radius: 8px;
}

.welcome-note i {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--orange);
    background: #fff;
    border-radius: 50%;
}

.welcome-note p {
    margin: 0;
    color: #554d42;
    font-size: 0.98rem;
}

.search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 50px;
    width: min(100%, 560px);
    min-height: 52px;
    background: #202020;
    border: 1px solid #444c58;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.search-box input {
    min-width: 0;
    border: 0;
    padding: 0 16px;
    background: transparent;
    color: #fff;
    font: inherit;
}

.search-box input::placeholder {
    color: #9aa4b2;
}

.search-box button {
    border: 0;
    background: var(--orange);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
}

.hero-actions,
.cta-band {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 17px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 850;
}

.button.primary {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 10px 22px rgba(228, 111, 44, 0.22);
}

.button.secondary {
    background: transparent;
    color: #f8fafc;
    border: 1px solid #53647b;
}

.market-window {
    align-self: start;
    max-width: 520px;
    padding: 16px;
    background: #172033;
    border: 1px solid #314156;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.window-intro {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    padding-bottom: 12px;
}

.window-intro span {
    color: var(--orange);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.window-intro strong {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    text-align: right;
}

.market-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    transition: opacity 0.22s ease;
}

.market-board.is-changing {
    opacity: 0.35;
}

.product-tile,
.category-link,
.story-card,
.process-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--navy);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.product-tile {
    position: relative;
    display: grid;
    grid-template-rows: 138px auto;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile-badge {
    position: absolute;
    z-index: 2;
    top: 9px;
    right: 9px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(228, 111, 44, 0.94);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
}

.product-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
}

.product-tile.feature {
    grid-row: span 1;
}

.product-tile img,
.image-fallback {
    width: 100%;
    height: 138px;
    object-fit: cover;
    object-position: center;
    background: #172033;
}

.image-fallback {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 1.6rem;
}

.tile-copy {
    display: block;
    min-height: 76px;
    padding: 11px 12px;
    background: var(--navy);
}

.tile-copy strong,
.tile-copy small {
    display: block;
}

.tile-copy strong {
    color: #fff;
    line-height: 1.2;
    font-size: 0.95rem;
}

.tile-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.84rem;
}

.empty-board {
    grid-column: 1 / -1;
    min-height: 230px;
    display: grid;
    place-items: center;
    gap: 12px;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
}

.empty-board i {
    font-size: 1.8rem;
    color: var(--orange);
}

.stats-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0 clamp(18px, 4vw, 58px);
    overflow: hidden;
    border: 1px solid #314156;
    border-radius: 8px;
    background: #314156;
}

.stats-band div {
    min-height: 88px;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 15px;
    background: var(--navy);
    text-align: center;
}

.stats-band strong {
    color: var(--orange);
    font-size: 1.62rem;
}

.stats-band span {
    color: var(--muted);
    font-size: 0.88rem;
}

.section {
    padding: clamp(50px, 7vw, 86px) clamp(18px, 4vw, 58px);
    background: var(--night);
}

.section-heading {
    max-width: 830px;
    margin-bottom: 26px;
}

.section-heading p:not(.eyebrow) {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1.03rem;
}

.category-grid,
.story-grid,
.process-grid {
    display: grid;
    gap: 16px;
}

.category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-link {
    display: grid;
    gap: 9px;
    min-height: 150px;
    padding: 19px;
    text-decoration: none;
}

.category-link:hover,
.process-item:hover {
    border-color: var(--orange);
}

.category-link i,
.process-item i {
    color: var(--orange);
    font-size: 1.28rem;
}

.category-link span,
.process-item p,
.story-card p {
    margin: 0;
    color: var(--muted);
}

.story-section {
    background:
        linear-gradient(rgba(15, 16, 17, 0.92), rgba(15, 16, 17, 0.92)),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 28px);
}

.story-section .section-heading h2,
.story-section .section-heading p:not(.eyebrow) {
    color: #fff;
}

.story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    transition: opacity 0.22s ease;
}

.story-grid.is-changing {
    opacity: 0.35;
}

.story-card {
    overflow: hidden;
    box-shadow: none;
}

.story-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.story-card > *:not(img) {
    margin-left: 18px;
    margin-right: 18px;
}

.story-label {
    display: block;
    margin-top: 17px;
    color: var(--orange-soft);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.story-card h3 {
    margin-top: 8px;
}

.story-card p {
    margin-top: 10px;
}

.story-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 20px;
    color: var(--orange);
    font-weight: 850;
    text-decoration: none;
}

.inline-story-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    color: var(--orange);
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.inline-story-link:hover {
    color: var(--orange-soft);
}

.blog-main {
    min-height: 100vh;
    background: var(--night);
}

.blog-hero {
    padding: clamp(54px, 7vw, 92px) clamp(18px, 4vw, 58px) clamp(32px, 5vw, 58px);
    background:
        radial-gradient(circle at 9% 10%, rgba(7, 91, 168, 0.34), transparent 31%),
        radial-gradient(circle at 86% 18%, rgba(228, 111, 44, 0.18), transparent 28%),
        linear-gradient(135deg, #111213 0%, #151a22 48%, #0f1011 100%);
}

.blog-hero h1 {
    max-width: 890px;
    font-size: clamp(2.45rem, 5.4vw, 4.7rem);
}

.blog-hero p:not(.eyebrow) {
    max-width: 780px;
    margin: 18px 0 0;
    color: #d0d6de;
    font-size: 1.08rem;
}

.blog-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    width: min(100%, 700px);
    min-height: 56px;
    margin-top: 24px;
    overflow: hidden;
    background: #202020;
    border: 1px solid #444c58;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.blog-search input {
    min-width: 0;
    border: 0;
    padding: 0 17px;
    background: transparent;
    color: #fff;
    font: inherit;
}

.blog-search input::placeholder {
    color: #9aa4b2;
}

.blog-search button {
    border: 0;
    background: var(--orange);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
}

.blog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.blog-count {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--navy);
    border: 1px solid var(--line);
    color: var(--muted);
    font-weight: 850;
}

.blog-reset {
    color: var(--orange);
    font-weight: 850;
    text-decoration: none;
}

.blog-results .story-card {
    min-height: 100%;
}

.blog-empty {
    grid-column: 1 / -1;
    padding: 28px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: var(--navy);
    color: var(--muted);
}

.process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-item {
    min-height: 196px;
    padding: 19px;
}

.process-item h3 {
    margin-top: 13px;
    margin-bottom: 9px;
}

.cta-band {
    justify-content: space-between;
    margin: 0 clamp(18px, 4vw, 58px) clamp(44px, 6vw, 78px);
    padding: 24px;
    background: #172033;
    border: 1px solid #314156;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.cta-band h2 {
    font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 22px clamp(18px, 4vw, 58px);
    background: #0b0c0d;
    color: #fff;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 850;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}

@media (max-width: 1050px) {
    .site-header {
        gap: 16px;
    }

    .header-product-pill {
        order: 3;
        margin-left: 0;
        margin-right: 0;
    }

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

    .market-window {
        max-width: 760px;
    }

    .market-board,
    .category-grid,
    .story-grid,
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-band {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 18px;
    }
}

@media (max-width: 720px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 16px;
    }

    .top-nav {
        width: 100%;
        margin-left: 0;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 4px;
        font-size: 0.9rem;
        order: 2;
    }

    .header-product-pill {
        order: 1;
        max-width: 100%;
        font-size: 0.86rem;
    }

    .hero,
    .section {
        padding-left: 16px;
        padding-right: 16px;
    }

    h1 {
        font-size: 2.52rem;
    }

    .market-board,
    .category-grid,
    .story-grid,
    .process-grid,
    .stats-band {
        grid-template-columns: 1fr;
    }

    .product-tile {
        grid-template-columns: 118px minmax(0, 1fr);
        grid-template-rows: auto;
        min-height: 118px;
    }

    .product-tile img,
    .image-fallback {
        height: 100%;
        min-height: 118px;
    }

    .tile-copy {
        min-height: 118px;
        display: grid;
        align-content: center;
    }

    .stats-band,
    .cta-band {
        margin-left: 16px;
        margin-right: 16px;
    }

    .brand small {
        display: none;
    }

    .orania-hero-image {
        height: clamp(265px, 58vw, 360px);
    }

    .hero-collage {
        gap: 10px;
    }

    .collage-tile {
        flex-basis: clamp(128px, 36vw, 180px);
        height: clamp(88px, 24vw, 122px);
    }

    .header-product-pill img {
        width: 58px;
        height: 38px;
    }

    .inline-story-link {
        margin-left: 0;
        margin-top: 8px;
    }

    .blog-hero {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .collage-track {
        animation: none;
        transform: translateX(-8%);
    }
}
