:root {
    --ink: #1b1712;
    --ink-soft: #241f1a;
    --paper: #f3ecd8;
    --paper-soft: #e4d4b8;
    --panel: #241f1a;
    --panel-soft: #26211b;
    --accent: #d48736;
    --accent-strong: #e8a817;
    --accent-readable: #8b5e24;
    --accent-readable-soft: rgba(139, 94, 36, 0.68);
    --mid: #a89880;
    --rule: #3a3228;
    --accent-tech: #4db8b8;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.18);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--paper);
    background:
        radial-gradient(circle at top, rgba(212, 135, 54, 0.06), transparent 28%),
        linear-gradient(180deg, #241f1a 0%, var(--ink) 28%, #120e0a 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.bcs-header-normalized {
    padding-top: 80px;
}

body.light-mode {
    color-scheme: light;
    color: #1b1712;
    background: linear-gradient(180deg, #faf6ed 0%, #f3ecd8 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.font-serif {
    font-family: 'Fraunces', Georgia, serif;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

.page-shell {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(243, 236, 216, 0.08);
    backdrop-filter: blur(14px);
    background: rgba(22, 19, 16, 0.82);
}

body.bcs-header-normalized header {
    border-bottom: 1px solid rgba(243, 236, 216, 0.08) !important;
    background: rgba(27, 23, 18, 0.75) !important;
    backdrop-filter: blur(14px);
}

body.bcs-header-normalized header > div {
    max-width: 1400px !important;
    min-height: 80px;
}

body.bcs-header-normalized .header-search {
    min-height: 42px;
}

body.bcs-header-normalized #mobileMenuBtn {
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--paper) !important;
}

body.bcs-header-normalized .header-search button.material-symbols-outlined,
body.bcs-header-normalized button .material-symbols-outlined,
body.bcs-header-normalized .material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

body.light-mode.bcs-header-normalized header {
    border-bottom-color: rgba(27, 23, 18, 0.08) !important;
    background: rgba(251, 248, 242, 0.92) !important;
}

body.light-mode.bcs-header-normalized header a,
body.light-mode.bcs-header-normalized header button {
    color: rgba(27, 23, 18, 0.84) !important;
}

body.light-mode.bcs-header-normalized header a[href*="cal.com"] {
    background: #1b1712 !important;
    border-color: #1b1712 !important;
    color: var(--paper) !important;
}

body.light-mode.bcs-header-normalized .theme-toggle,
body.light-mode.bcs-header-normalized .header-search {
    border-color: rgba(27, 23, 18, 0.14) !important;
    background: rgba(27, 23, 18, 0.04) !important;
    color: #1b1712 !important;
}

body.light-mode.bcs-header-normalized #mobileMenuBtn {
    color: #1b1712 !important;
}

body.light-mode .site-header {
    border-bottom-color: rgba(27, 23, 18, 0.08);
    background: rgba(251, 248, 242, 0.92);
}

.site-header__inner {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-lockup img {
    width: auto;
    height: 38px;
}

.brand-lockup__name {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.75rem;
    letter-spacing: -0.03em;
    line-height: 1;
}

.brand-lockup__name em {
    font-style: italic;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(243, 236, 216, 0.88);
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active {
    color: var(--accent);
}

body.light-mode .nav-link {
    color: rgba(27, 23, 18, 0.82);
}

body.light-mode .nav-link.active {
    color: #1b1712;
}

body.light-mode .brand-lockup__name {
    color: #1b1712 !important;
}

body.light-mode .brand-lockup__name em {
    color: var(--accent-readable) !important;
}

body.light-mode .brand-lockup__name {
    color: #1b1712 !important;
}

body.light-mode .brand-lockup__name em {
    color: var(--accent-readable) !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-pill,
.theme-toggle,
.mobile-toggle {
    border-radius: 999px;
    border: 1px solid rgba(243, 236, 216, 0.16);
    background: rgba(243, 236, 216, 0.06);
    color: var(--paper);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.header-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.85rem 1.2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.header-pill:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
    transform: translateY(-1px);
}

.theme-toggle,
.mobile-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover,
.mobile-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(212, 135, 54, 0.08);
}

body.light-mode .header-pill,
body.light-mode .theme-toggle,
body.light-mode .mobile-toggle {
    color: #1b1712;
    border-color: rgba(27, 23, 18, 0.14);
    background: rgba(27, 23, 18, 0.04);
}

body.light-mode .header-pill:hover {
    background: #1b1712;
    color: var(--paper);
    border-color: #1b1712;
}

body.light-mode .theme-toggle:hover,
body.light-mode .mobile-toggle:hover {
    background: #1b1712;
    color: var(--paper);
    border-color: #1b1712;
}

.mobile-toggle {
    display: none;
}

.page-main {
    padding: 42px 0 100px;
}

.hero {
    padding-top: 28px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 36px;
    align-items: end;
}

.hero-grid--wide {
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
}

.hero-copy {
    padding: 36px 0 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--mid);
    margin-bottom: 22px;
}

.eyebrow::before {
    content: '';
    width: 34px;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
}

.display-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 0.94;
    letter-spacing: -0.045em;
    margin: 0 0 22px;
    text-wrap: balance;
}

.display-title em {
    font-style: italic;
    font-weight: 400;
}

.lead {
    max-width: 58ch;
    color: rgba(243, 236, 216, 0.82);
    font-size: 1.08rem;
    line-height: 1.72;
    margin: 0 0 26px;
}

body.light-mode .lead {
    color: rgba(27, 23, 18, 0.68);
}

body.light-mode .text-white,
body.light-mode .dark\:text-white,
body.light-mode strong {
    color: #1b1712 !important;
}

body.light-mode .text-gray-300,
body.light-mode .text-gray-400,
body.light-mode .text-text-secondary,
body.light-mode .text-text-muted,
body.light-mode .dark\:text-gray-300,
body.light-mode .dark\:text-gray-400 {
    color: rgba(27, 23, 18, 0.68) !important;
}

.hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.team-card {
    display: grid;
    grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
    padding: 24px 24px 28px;
}

.team-card > *:not(.article-card__media) {
    grid-column: 2;
}

.team-card .article-card__media {
    grid-column: 1;
    grid-row: 1 / span 4;
    margin-bottom: 0;
    aspect-ratio: 3 / 4;
    border-radius: 26px;
}

.team-card .article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
}

.team-card .button-row {
    padding-top: 10px;
    align-items: center;
}

.cta-primary,
.cta-secondary,
.cta-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.cta-primary,
.cta-secondary {
    padding: 0.95rem 1.3rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
}

.cta-primary {
    background: var(--accent);
    color: var(--ink);
    border: 1px solid var(--accent);
}

.cta-primary:hover {
    transform: translateY(-1px);
    background: var(--paper);
    border-color: var(--paper);
}

.cta-secondary {
    background: transparent;
    color: var(--paper);
    border: 1px solid rgba(243, 236, 216, 0.14);
}

.cta-secondary:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    color: var(--accent);
}

.cta-inline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    border-bottom: 0;
    padding: 0;
}

.cta-inline:hover {
    color: var(--accent);
}

body.light-mode .cta-secondary {
    color: #1b1712;
    border-color: rgba(27, 23, 18, 0.12);
}

body.light-mode .cta-secondary:hover {
    color: #1b1712;
    border-color: #1b1712;
}

.hero-panel,
.surface-panel {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(243, 236, 216, 0.08);
    background: linear-gradient(180deg, rgba(33, 39, 35, 0.9) 0%, rgba(24, 29, 25, 0.98) 100%);
    box-shadow: var(--shadow);
}

body.light-mode .hero-panel,
body.light-mode .surface-panel {
    border-color: rgba(27, 23, 18, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 243, 236, 0.96) 100%);
}

.hero-media {
    aspect-ratio: 4 / 4.8;
}

.hero-media img,
.hero-media .media-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 15%, rgba(22, 19, 16, 0.7) 100%);
}

.media-note {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    z-index: 2;
}

.media-note__title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.3rem;
    line-height: 1;
}

.media-note__meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(243, 236, 216, 0.78);
}

body.light-mode .media-overlay {
    background: linear-gradient(180deg, transparent 12%, rgba(22, 19, 16, 0.84) 100%);
}

body.light-mode .media-note__title {
    color: #f8f4ed;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

body.light-mode .media-note__meta {
    color: rgba(248, 244, 237, 0.82);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.stat {
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(243, 236, 216, 0.08);
    background: rgba(243, 236, 216, 0.04);
}

body.light-mode .stat {
    background: rgba(27, 23, 18, 0.03);
    border-color: rgba(27, 23, 18, 0.08);
}

.stat__value {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 8px;
}

.stat__label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--mid);
}

.section {
    padding: 92px 0 0;
}

.page-shell > section.section:nth-of-type(2n) {
    margin-top: 74px;
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 3rem) clamp(3rem, 5vw, 4.5rem);
    border-radius: clamp(2rem, 4vw, 3rem);
    overflow: hidden;
    border: 1px solid rgba(22, 19, 16, 0.12);
    background:
        radial-gradient(circle at 88% 0%, rgba(212, 135, 54, 0.14), transparent 28rem),
        linear-gradient(180deg, rgba(247, 243, 236, 0.96) 0%, rgba(240, 233, 224, 0.94) 100%);
    color: var(--ink);
    box-shadow: 0 24px 70px rgba(27, 23, 18, 0.08);
}

.page-shell > section.section:nth-of-type(2n) .section-title,
.page-shell > section.section:nth-of-type(2n) .band__title,
.page-shell > section.section:nth-of-type(2n) .feature-card h3,
.page-shell > section.section:nth-of-type(2n) .team-card h3,
.page-shell > section.section:nth-of-type(2n) .service-card h3,
.page-shell > section.section:nth-of-type(2n) .article-card h3,
.page-shell > section.section:nth-of-type(2n) .signal-card h3 {
    color: var(--ink);
}

.page-shell > section.section:nth-of-type(2n) .eyebrow,
.page-shell > section.section:nth-of-type(2n) .card-meta,
.page-shell > section.section:nth-of-type(2n) .stat__label,
.page-shell > section.section:nth-of-type(2n) .media-note__meta,
.page-shell > section.section:nth-of-type(2n) .chip,
.page-shell > section.section:nth-of-type(2n) .filter-btn,
.page-shell > section.section:nth-of-type(2n) .search-shell,
.page-shell > section.section:nth-of-type(2n) .select-shell {
    color: var(--accent-readable);
}

.page-shell > section.section:nth-of-type(2n) .eyebrow::before {
    opacity: 0.8;
}

.page-shell > section.section:nth-of-type(2n) .section-text,
.page-shell > section.section:nth-of-type(2n) .lead,
.page-shell > section.section:nth-of-type(2n) .card-copy,
.page-shell > section.section:nth-of-type(2n) .quote-strip,
.page-shell > section.section:nth-of-type(2n) .band__copy,
.page-shell > section.section:nth-of-type(2n) .bullet-list li {
    color: rgba(22, 19, 16, 0.74);
}

.page-shell > section.section:nth-of-type(2n) .quote-strip,
.page-shell > section.section:nth-of-type(2n) .band__copy {
    border-top-color: rgba(22, 19, 16, 0.1);
}

.page-shell > section.section:nth-of-type(2n) .feature-card,
.page-shell > section.section:nth-of-type(2n) .team-card,
.page-shell > section.section:nth-of-type(2n) .service-card,
.page-shell > section.section:nth-of-type(2n) .article-card,
.page-shell > section.section:nth-of-type(2n) .signal-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(246, 241, 233, 0.94) 100%);
    border-color: rgba(22, 19, 16, 0.12);
    box-shadow: 0 18px 45px rgba(27, 23, 18, 0.06);
}

.page-shell > section.section:nth-of-type(2n) .chip,
.page-shell > section.section:nth-of-type(2n) .filter-btn,
.page-shell > section.section:nth-of-type(2n) .search-shell,
.page-shell > section.section:nth-of-type(2n) .select-shell {
    border-color: rgba(22, 19, 16, 0.12);
    background: rgba(255, 255, 255, 0.66);
}

.page-shell > section.section:nth-of-type(2n) .filter-btn,
.page-shell > section.section:nth-of-type(2n) .cta-secondary,
.page-shell > section.section:nth-of-type(2n) .cta-inline {
    color: var(--ink);
}

.page-shell > section.section:nth-of-type(2n) .filter-btn.active,
.page-shell > section.section:nth-of-type(2n) .filter-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
}

.page-shell > section.section:nth-of-type(2n) .cta-secondary {
    border-color: rgba(22, 19, 16, 0.14);
}

.page-shell > section.section:nth-of-type(2n) .search-shell input::placeholder {
    color: rgba(22, 19, 16, 0.42);
}

.page-shell > section.section:nth-of-type(2n) .card-copy,
.page-shell > section.section:nth-of-type(2n) .bullet-list li,
.page-shell > section.section:nth-of-type(2n) .search-shell input,
.page-shell > section.section:nth-of-type(2n) .select-shell select {
    color: rgba(22, 19, 16, 0.74);
}

.page-shell > section.section:nth-of-type(2n) .search-shell,
.page-shell > section.section:nth-of-type(2n) .select-shell {
    min-height: 50px;
}

.page-shell > section.section:nth-of-type(2n) .section-kicker {
    top: 96px;
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(340px, 0.45fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.section-kicker {
    position: sticky;
    top: 110px;
    padding-right: 16px;
}

.section-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin: 0 0 18px;
}

.section-text {
    color: rgba(243, 236, 216, 0.78);
    font-size: 1rem;
    line-height: 1.72;
    margin: 0;
}

body.light-mode .section-text {
    color: rgba(27, 23, 18, 0.68);
}

.stack {
    display: grid;
    gap: 22px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
}

#blogGrid > *,
#category-news > * {
    grid-column: span 6;
}

.feature-card,
.team-card,
.service-card,
.article-card,
.signal-card {
    border-radius: 28px;
    border: 1px solid rgba(243, 236, 216, 0.08);
    background: linear-gradient(180deg, rgba(32, 38, 33, 0.9) 0%, rgba(24, 29, 25, 0.98) 100%);
    padding: 26px;
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

body.light-mode .feature-card,
body.light-mode .team-card,
body.light-mode .service-card,
body.light-mode .article-card,
body.light-mode .signal-card {
    border-color: rgba(27, 23, 18, 0.08);
    background: rgba(255, 255, 255, 0.76);
}

.feature-card:hover,
.team-card:hover,
.service-card:hover,
.article-card:hover,
.signal-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 135, 54, 0.42);
}

.feature-card h3,
.team-card h3,
.service-card h3,
.article-card h3,
.signal-card h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.75rem;
    line-height: 1.03;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
}

.card-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
    margin-bottom: 14px;
}

.card-copy {
    color: rgba(243, 236, 216, 0.78);
    line-height: 1.66;
    margin: 0 0 18px;
}

body.light-mode .card-copy {
    color: rgba(27, 23, 18, 0.68);
}

.service-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    gap: 8px;
}

.service-card .button-row,
.service-card .cta-inline {
    margin-top: auto;
    align-self: flex-start;
}

.service-card .button-row {
    gap: 12px;
    align-items: center;
    padding-top: 28px;
}

.service-card .cta-inline {
    min-height: 44px;
    padding: 0.78rem 1.05rem;
    border-radius: 999px;
    border: 1px solid rgba(243, 236, 216, 0.14);
    background: rgba(243, 236, 216, 0.035);
    color: rgba(243, 236, 216, 0.9);
    line-height: 1;
}

.service-card > .cta-inline {
    margin-top: auto;
    padding-top: 0.78rem;
}

.service-card .cta-inline:hover {
    background: rgba(212, 135, 54, 0.1);
    border-color: rgba(212, 135, 54, 0.45);
    color: var(--accent);
}

body.light-mode .service-card .cta-inline {
    border-color: rgba(27, 23, 18, 0.12);
    background: rgba(27, 23, 18, 0.03);
    color: #1b1712;
}

.bullet-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bullet-list li {
    display: flex;
    gap: 10px;
    align-items: start;
    color: rgba(243, 236, 216, 0.78);
    line-height: 1.58;
}

body.light-mode .bullet-list li {
    color: rgba(27, 23, 18, 0.68);
}

.bullet-list li::before {
    content: '·';
    color: var(--accent);
    font-size: 1.3rem;
    line-height: 1;
    margin-top: -2px;
}

.tag-row,
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(243, 236, 216, 0.12);
    background: rgba(243, 236, 216, 0.04);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

body.light-mode .chip {
    border-color: rgba(27, 23, 18, 0.1);
    background: rgba(27, 23, 18, 0.03);
}

.quote-strip {
    padding: 24px 0 0;
    border-top: 1px solid rgba(243, 236, 216, 0.08);
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.5rem;
    line-height: 1.25;
    font-style: italic;
    color: rgba(243, 236, 216, 0.92);
}

body.light-mode .quote-strip {
    border-top-color: rgba(27, 23, 18, 0.08);
    color: rgba(27, 23, 18, 0.84);
}

.band {
    margin-top: 86px;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid rgba(243, 236, 216, 0.08);
    background:
        radial-gradient(circle at right top, rgba(212, 135, 54, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(28, 33, 29, 0.94) 0%, rgba(22, 19, 16, 0.98) 100%);
}

body.light-mode .band {
    border-color: rgba(27, 23, 18, 0.08);
    background:
        radial-gradient(circle at right top, rgba(212, 135, 54, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(243, 236, 216, 0.96) 100%);
}

.band__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 32px;
}

.band__title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin: 0 0 12px;
}

.band__copy {
    margin: 0;
    max-width: 56ch;
    color: rgba(243, 236, 216, 0.76);
    line-height: 1.65;
}

body.light-mode .band__copy {
    color: rgba(27, 23, 18, 0.68);
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 26px 0 22px;
}

.search-shell,
.select-shell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(243, 236, 216, 0.12);
    background: rgba(243, 236, 216, 0.05);
}

.search-shell input,
.select-shell select {
    border: none;
    outline: none;
    background: transparent;
    color: inherit;
    min-width: 190px;
}

.search-shell input::placeholder {
    color: rgba(243, 236, 216, 0.42);
}

body.light-mode .search-shell,
body.light-mode .select-shell {
    border-color: rgba(27, 23, 18, 0.1);
    background: rgba(27, 23, 18, 0.03);
}

body.light-mode .search-shell input::placeholder {
    color: rgba(27, 23, 18, 0.42);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    border-radius: 999px;
    border: 1px solid rgba(243, 236, 216, 0.12);
    background: rgba(243, 236, 216, 0.03);
    color: var(--paper);
    padding: 0.75rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--ink);
}

body.light-mode .filter-btn {
    border-color: rgba(27, 23, 18, 0.1);
    background: rgba(27, 23, 18, 0.03);
    color: #1b1712;
}

body.light-mode .filter-btn.active,
body.light-mode .filter-btn:hover {
    color: #1b1712;
}

.article-card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 22px;
    margin-bottom: 18px;
    background: rgba(243, 236, 216, 0.04);
}

.article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-footer {
    margin-top: 94px;
    padding: 42px 0 28px;
    border-top: 1px solid rgba(243, 236, 216, 0.08);
    background: rgba(10, 12, 10, 0.55);
}

.bg-ink {
    background: #1b1712;
}

.border-rule {
    border-color: rgba(243, 236, 216, 0.1);
}

body.light-mode .text-mid { color: rgba(27, 23, 18, 0.68) !important; }
body.light-mode .text-paper { color: #1b1712 !important; }
body.light-mode .text-accent { color: var(--accent-readable) !important; }

.masthead-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
    color: var(--paper);
}

.hover\:text-paper {
    transition: color 0.3s ease;
}

.hover\:text-paper:hover {
    color: var(--paper);
}

body.light-mode .article-card h3 {
    color: #1b1712 !important;
}

body.light-mode .article-card .card-copy {
    color: rgba(27, 23, 18, 0.68) !important;
}

body.light-mode .article-card .card-meta {
    color: var(--accent-readable) !important;
}

body.light-mode .article-card__media {
    background: rgba(27, 23, 18, 0.04);
}

body.light-mode .feature-card h3,
body.light-mode .team-card h3,
body.light-mode .service-card h3,
body.light-mode .signal-card h3 {
    color: #1b1712 !important;
}

body.light-mode .feature-card .card-copy,
body.light-mode .team-card .card-copy,
body.light-mode .signal-card .card-copy {
    color: rgba(27, 23, 18, 0.68) !important;
}

body.light-mode .masthead-title {
    color: #1b1712 !important;
}

body.light-mode .page-footer {
    background: rgba(251, 248, 242, 0.92);
    border-top-color: rgba(27, 23, 18, 0.08);
}

body.light-mode .page-shell > section.section:nth-of-type(2n) {
    border-color: rgba(27, 23, 18, 0.1);
    background:
        radial-gradient(circle at 88% 0%, rgba(212, 135, 54, 0.1), transparent 28rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(243, 236, 216, 0.96) 100%);
    box-shadow: 0 18px 50px rgba(27, 23, 18, 0.06);
}

body.light-mode .page-shell > section.section:nth-of-type(2n) .section-text,
body.light-mode .page-shell > section.section:nth-of-type(2n) .lead,
body.light-mode .page-shell > section.section:nth-of-type(2n) .card-copy,
body.light-mode .page-shell > section.section:nth-of-type(2n) .quote-strip,
body.light-mode .page-shell > section.section:nth-of-type(2n) .band__copy,
body.light-mode .page-shell > section.section:nth-of-type(2n) .bullet-list li {
    color: rgba(27, 23, 18, 0.68);
}

body.light-mode .footer-base {
    color: rgba(27, 23, 18, 0.68) !important;
}

body.light-mode .footer-copy,
body.light-mode .footer-links a {
    color: rgba(27, 23, 18, 0.68) !important;
}

body.light-mode .footer-title {
    color: var(--accent-readable) !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.footer-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
    margin: 0 0 16px;
}

.footer-copy,
.footer-links a {
    color: rgba(243, 236, 216, 0.72);
    line-height: 1.75;
}

body.light-mode .footer-copy,
body.light-mode .footer-links a {
    color: rgba(27, 23, 18, 0.68);
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-base {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding-top: 22px;
    margin-top: 22px;
    border-top: 1px solid rgba(243, 236, 216, 0.08);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--mid);
}

body.light-mode .footer-base {
    border-top-color: rgba(27, 23, 18, 0.08);
}

.footer-base__links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-base__links a:hover {
    color: var(--accent);
}

#cookie-popup {
    position: fixed !important;
    left: auto !important;
    right: 24px !important;
    bottom: 24px !important;
    width: min(720px, calc(100% - 32px)) !important;
    z-index: 60 !important;
    padding: 18px 20px !important;
    border-radius: 24px !important;
    border: 1px solid rgba(243, 236, 216, 0.2) !important;
    background: rgba(22, 19, 16, 0.94) !important;
    color: var(--paper) !important;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34) !important;
    backdrop-filter: blur(18px);
}

#cookie-popup p,
#cookie-popup div {
    color: rgba(243, 236, 216, 0.82) !important;
}

#cookie-popup .layout-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
}

#cookie-popup button {
    border-radius: 12px !important;
    min-height: 42px !important;
    padding: 0 18px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
}

.hidden-mobile {
    display: inline-flex;
}

@media (max-width: 1080px) {
    .site-nav {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .hidden-mobile {
        display: none;
    }

    .hero-grid,
    .hero-grid--wide,
    .section-grid,
    .band__inner,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    #blogGrid > *,
    #category-news > * {
        grid-column: span 12;
    }

    .team-card {
        grid-template-columns: 1fr;
    }

    .team-card > *:not(.article-card__media),
    .team-card .article-card__media {
        grid-column: auto;
        grid-row: auto;
    }

    .team-card .article-card__media {
        margin-bottom: 6px;
        aspect-ratio: 4 / 3;
    }

    .section-kicker {
        position: static;
    }

    .hero-copy {
        padding-bottom: 0;
    }
}

@media (max-width: 760px) {
    .page-shell,
    .site-header__inner {
        width: min(100% - 28px, 1400px);
    }

    .site-header__inner {
        min-height: 68px;
    }

    .brand-lockup__name {
        font-size: 1.35rem;
    }

    .stat-strip {
        grid-template-columns: 1fr;
    }

    .band__inner,
    .feature-card,
    .team-card,
    .service-card,
    .article-card,
    .signal-card {
        padding: 22px;
    }

    .search-shell,
    .select-shell {
        width: 100%;
    }

    .search-shell input,
    .select-shell select {
        min-width: 0;
        width: 100%;
    }

    .footer-base {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .page-shell,
    .site-header__inner {
        width: 100%;
        max-width: 100vw;
        padding-left: 14px;
        padding-right: 14px;
    }

    .brand-lockup {
        gap: 10px;
    }

    .brand-lockup img {
        height: 30px;
    }

    .brand-lockup__name {
        font-size: 1.18rem;
    }

    .hero-grid,
    .hero-copy,
    .lead,
    .display-title {
        min-width: 0;
        max-width: 100%;
    }

    .display-title {
        font-size: clamp(2.2rem, 11vw, 3rem);
        line-height: 0.98;
        letter-spacing: -0.035em;
    }

    .lead {
        font-size: 1rem;
        max-width: 33ch;
    }

    .hero-actions,
    .button-row {
        gap: 10px;
    }

    .hero-actions .cta-primary,
    .hero-actions .cta-secondary {
        width: 100%;
        justify-content: center;
    }

    #cookie-popup {
        left: 14px !important;
        right: 14px !important;
        bottom: 14px !important;
        width: auto !important;
    }

    #cookie-popup .layout-container {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    #cookie-popup .shrink-0 {
        width: 100% !important;
    }

    #cookie-popup button {
        flex: 1;
    }
}

/* =====================================================================
 * BLOG LIST (archivio) — MOBILE REFINEMENT  (≤640px)
 * La pagina lista non era coperta da 061914f (solo l'articolo). Hero
 * troppo alto (~951px), card padding eccessivo, chip/tap target. Additivo,
 * desktop intatto (nessuna regola sopra 640px).
 * ===================================================================== */
@media (max-width: 640px) {
    body.bcs-public-page { overflow-x: hidden; }

    /* Hero: il pannello immagine (4/4.8) mangiava ~430px -> formato corto;
       padding/titolo/chip ridimensionati cosi le card emergono molto prima */
    .bcs-public-page .hero { padding-top: 24px !important; padding-bottom: 24px !important; }
    .hero-grid--wide { gap: 18px !important; }
    .hero-media { aspect-ratio: 16 / 10 !important; }
    .hero-panel { border-radius: 22px; }
    .display-title { font-size: clamp(1.9rem, 8.5vw, 2.45rem) !important; line-height: 1.0; }
    .hero .lead { font-size: 1rem; }
    .chip-row { gap: 6px; }
    .chip { font-size: 0.78rem; padding: 0.34rem 0.7rem; }
    /* Le chip categoria dell'hero blog duplicano i filtri sotto: su mobile via,
       per recuperare ~110px. Scope SOLO blog via :has(#blogGrid), niente HTML. */
    body:has(#blogGrid) .hero .chip-row { display: none; }

    /* Barra filtri: tap target comodi (WCAG AA) */
    .filters-row { gap: 12px; }
    .filter-chips { gap: 8px; }
    .filter-btn { min-height: 44px; }

    /* Card archivio (#blogGrid, markup generato da blog-engine.js):
       il padding interno p-8 (32px) era eccessivo su 360-390px */
    #blogGrid > a > div:last-child { padding: 1.15rem 1.2rem !important; }
    #blogGrid h3 { font-size: 1.4rem !important; margin-bottom: 0.55rem !important; }
    #blogGrid > a p { margin-bottom: 1rem !important; }
    #blogGrid > a .pt-6 { padding-top: 1rem !important; }
}
