@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&family=Taviraj:wght@400;500;600&family=IBM+Plex+Sans+Thai:wght@400;500;600&display=swap');

/* ---------- Design tokens ---------- */
:root {
    --maroon: #6E1423;
    --maroon-dark: #4A0E18;
    --paper: #FAF9F7;
    --paper-warm: #F4EDE8;
    --ink: #1C1A19;
    --ink-soft: #55504C;
    --line: #DDD6D0;
    --brass: #C4A15A;

    --font-display: 'Fraunces', 'Taviraj', Georgia, serif;
    --font-body: 'Inter', 'IBM Plex Sans Thai', 'Segoe UI', Tahoma, sans-serif;
    --font-mono: 'IBM Plex Mono', 'IBM Plex Sans Thai', Consolas, monospace;

    --max: 1180px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.15;
    margin: 0;
}

p {
    margin: 0;
}

a {
    color: inherit;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 18px 0;
}

.eyebrow-dark { color: var(--maroon); }
.eyebrow-light { color: var(--paper-warm); }
.centered { text-align: center; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--paper);
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    gap: 40px;
    border-bottom: 1px solid var(--line);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-right: auto;
    height: 32px;
    flex-shrink: 0;
}

.logo img {
    height: 32px;
    max-height: 32px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-mark {
    background: var(--maroon);
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.logo-word {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 19px;
    color: var(--ink);
}

.main-nav {
    display: flex;
    gap: 30px;
    font-size: 14.5px;
}

.main-nav a {
    text-decoration: none;
    color: var(--ink-soft);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover {
    color: var(--maroon);
}

.main-nav a.active {
    color: var(--ink);
    font-weight: 600;
    border-bottom-color: var(--maroon);
}

.lang-toggle {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
}

.lang-btn {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    background: none;
    border: none;
    padding: 7px 14px;
    color: var(--ink-soft);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn.active {
    background: var(--maroon);
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: 100px 32px 90px;
    overflow: hidden;
}

.hero-signal {
    position: absolute;
    inset: 0;
    color: var(--line);
    opacity: 0.9;
    z-index: 0;
}

.hero-signal svg {
    width: 100%;
    height: 100%;
}

.eyebrow, .headline, .hero-sub, .hero-actions {
    position: relative;
    z-index: 1;
}

.headline {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 500;
    color: var(--maroon);
    max-width: 820px;
    margin-bottom: 26px;
}

.hero-sub {
    font-size: 17px;
    color: var(--ink-soft);
    max-width: 560px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    padding: 13px 26px;
    border-radius: 3px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-solid {
    background: var(--maroon);
    color: #fff;
}

.btn-solid:hover {
    background: var(--maroon-dark);
}

.btn-outline {
    border: 1px solid var(--ink);
    color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--maroon);
    color: var(--maroon);
}

/* ---------- Alternating content blocks ---------- */
.content-block {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
    padding: 90px 32px;
}

.content-block.block-light {
    max-width: var(--max);
    margin: 0 auto;
}

.content-block.block-maroon {
    background: var(--maroon);
    max-width: none;
}

.content-block.block-maroon > * {
    max-width: calc(var(--max) - 64px);
    margin: 0 auto;
}

.content-block.block-maroon {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.content-block.reverse {
    direction: rtl;
}

.content-block.reverse > * {
    direction: ltr;
}

.block-text h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 18px;
    max-width: 480px;
}

.block-maroon .block-text h2 {
    color: #fff;
}

.block-text p {
    color: var(--ink-soft);
    max-width: 480px;
    margin-bottom: 22px;
}

.block-maroon .block-text p {
    color: var(--paper-warm);
}

.text-link {
    display: inline-block;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--maroon);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.text-link:hover {
    border-bottom-color: var(--maroon);
}

.text-link-light {
    color: #fff;
}

.text-link-light:hover {
    border-bottom-color: #fff;
}

.check-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--ink-soft);
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    background: var(--maroon);
}

.check-list-light li {
    color: var(--paper-warm);
}

.check-list-light li::before {
    background: var(--brass);
}

.block-graphic svg {
    width: 100%;
    height: auto;
}

/* ---------- Services index ---------- */
.services-index {
    max-width: var(--max);
    margin: 0 auto;
    padding: 100px 32px;
}

.services-index h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 56px;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 44px;
}

.pillar-card {
    border-top: 2px solid var(--maroon);
    padding: 26px 30px 30px;
    background: var(--paper-warm);
    border-radius: 4px;
}

.pillar-card h3 {
    font-size: 21px;
    font-weight: 500;
    margin-bottom: 18px;
}

.pillar-card ul li {
    font-size: 15px;
    color: var(--ink-soft);
    padding-left: 18px;
    position: relative;
    margin-bottom: 10px;
}

.pillar-card ul li::before {
    content: '\2013';
    position: absolute;
    left: 0;
    color: var(--maroon);
}

/* ---------- Latest insights strip ---------- */
.latest-strip {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px 100px;
}

.latest-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
}

.latest-header .eyebrow {
    margin: 0;
}

.latest-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
}

.latest-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 24px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.latest-card:hover {
    border-color: var(--maroon);
    transform: translateY(-2px);
}

.latest-card-report {
    background: var(--maroon);
    color: #fff;
    border-color: var(--maroon);
}

.latest-tag {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brass);
}

.latest-card h3 {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
}

.latest-card-report h3 {
    color: #fff;
}

.latest-card-report .text-link {
    color: #fff;
    margin-top: auto;
}

.latest-card-report .text-link:hover {
    border-bottom-color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: #E7E4E1;
    margin-top: 40px;
}

.footer-grid {
    max-width: var(--max);
    margin: 0 auto;
    padding: 48px 32px 32px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 20px;
    font-weight: 500;
}

.address {
    font-size: 14px;
    color: #B7B2AE;
}

.connect-list li {
    margin-bottom: 14px;
}

.connect-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #E7E4E1;
    font-size: 14.5px;
    transition: color 0.15s ease;
}

.connect-list a:hover {
    color: var(--brass);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-bottom: 12px;
}

.footer-legal a {
    font-size: 12.5px;
    color: #B7B2AE;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-legal a:hover {
    color: var(--brass);
}

.footer-bottom {
    border-top: 1px solid #3A3634;
    padding: 16px 32px;
    text-align: center;
    font-size: 13px;
    color: #7C7772;
}

/* ---------- About: page intro ---------- */
.page-intro {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: 64px 32px 56px;
    overflow: hidden;
}

.page-signal {
    position: absolute;
    inset: 0;
    color: var(--line);
    opacity: 0.8;
    z-index: 0;
}

.page-signal svg {
    width: 100%;
    height: 100%;
}

.page-title {
    position: relative;
    z-index: 1;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 500;
    color: var(--maroon);
    margin-bottom: 16px;
}

.page-lead {
    position: relative;
    z-index: 1;
    font-size: 16.5px;
    color: var(--ink-soft);
    max-width: 620px;
}

.page-lead-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(19px, 2.4vw, 24px);
    color: var(--maroon);
    max-width: 720px;
    line-height: 1.5;
}

/* ---------- About: overview ---------- */
.overview {
    max-width: var(--max);
    margin: 0 auto;
    padding: 20px 32px 80px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
}

.overview .eyebrow {
    margin: 6px 0 0 0;
}

.overview-text p {
    color: var(--ink-soft);
    font-size: 16px;
    max-width: 640px;
    margin-bottom: 20px;
}

.overview-text p:last-child {
    margin-bottom: 0;
}

/* ---------- About: quote block ---------- */
.quote-block {
    background: var(--maroon);
    padding: 80px 32px;
}

.quote-block blockquote {
    max-width: 780px;
    margin: 0 auto;
    padding: 0;
}

.quote-block p {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.5;
    color: #fff;
    text-align: center;
}

.quote-block-dark {
    background: var(--ink);
}

/* ---------- About: vision and mission ---------- */
.vision-mission {
    max-width: var(--max);
    margin: 0 auto;
    padding: 90px 32px;
}

.pillar-card-plain {
    background: var(--paper-warm);
}

.pillar-card-plain p {
    color: var(--ink-soft);
    font-size: 15.5px;
    line-height: 1.75;
    margin: 0;
}

.pillar-card-dark {
    background: var(--ink);
    border-top-color: var(--brass);
}

.pillar-card-dark h3 {
    color: #fff;
}

.pillar-card-dark p {
    color: #C9C4C0;
}

/* ---------- About: closing CTA ---------- */
.about-cta {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 32px 100px;
    text-align: center;
}

.about-cta h2 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 26px;
}

/* ---------- Services: category groups ---------- */
.service-group {
    max-width: var(--max);
    margin: 0 auto;
    padding: 90px 32px;
}

.service-group-dark {
    background: var(--maroon);
    max-width: none;
}

.service-group-dark > * {
    max-width: calc(var(--max) - 64px);
    margin-left: auto;
    margin-right: auto;
}

.service-group-head {
    display: flex;
    align-items: flex-start;
    gap: 26px;
    max-width: 780px;
    margin-bottom: 52px;
}

.service-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--maroon);
}

.service-group-dark .service-icon {
    color: var(--paper-warm);
}

.service-icon svg {
    width: 34px;
    height: 34px;
}

.service-group-head h2 {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 12px;
}

.service-group-dark .service-group-head h2 {
    color: #fff;
}

.service-group-head p {
    color: var(--ink-soft);
    font-size: 15.5px;
    max-width: 620px;
}

.service-group-dark .service-group-head p {
    color: var(--paper-warm);
}

.subservice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.subservice h4 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 17px;
    color: var(--ink);
    margin-bottom: 14px;
}

.service-group-dark .subservice h4 {
    color: #fff;
}

/* ---------- Team ---------- */
.team-group {
    max-width: var(--max);
    margin: 0 auto;
    padding: 10px 32px 70px;
}

.team-group:first-of-type {
    padding-top: 10px;
}

.team-group .eyebrow {
    margin-bottom: 30px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 230px));
    gap: 40px;
}

.team-card {
    text-align: center;
}

.team-photo {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 18px;
    background: var(--paper-warm);
}

.team-card h3 {
    font-size: 16.5px;
    font-weight: 500;
    margin-bottom: 4px;
}

.team-name-en {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 8px;
}

.team-role {
    font-size: 13.5px;
    color: var(--ink-soft);
    margin-bottom: 8px;
}

.team-email {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--maroon);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    margin-top: 4px;
}

.team-email:hover {
    border-bottom-color: var(--maroon);
}

/* ---------- Blog ---------- */
.blog-list {
    max-width: var(--max);
    margin: 0 auto;
    padding: 10px 32px 100px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px 36px;
}

.blog-card {
    display: block;
    text-decoration: none;
    color: var(--ink);
}

.blog-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    background: var(--paper-warm);
    margin-bottom: 16px;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.04);
}

.blog-batch {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--maroon);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    padding: 5px 10px;
    border-radius: 3px;
}

.blog-date {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--ink-soft);
    margin-bottom: 10px;
}

.blog-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--maroon);
    transition: color 0.15s ease;
}

.blog-card:hover .blog-title {
    color: var(--maroon-dark);
    text-decoration: underline;
}

/* ---------- Featured Projects ---------- */
.projects-list {
    max-width: var(--max);
    margin: 0 auto;
    padding: 10px 32px 110px;
}

.projects-filter {
    display: flex;
    align-items: flex-end;
    gap: 28px;
    padding-bottom: 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-field span {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.filter-field select {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 9px 12px;
    min-width: 150px;
    cursor: pointer;
}

.filter-field select:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
}

.filter-count {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--ink-soft);
}

.projects-table {
    display: flex;
    flex-direction: column;
}

.project-row {
    display: grid;
    grid-template-columns: 70px 1fr 120px 90px 160px;
    align-items: center;
    gap: 24px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.project-row[hidden] {
    display: none;
}

.project-year {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--ink-soft);
}

.project-main h3 {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 6px;
}

.project-sub {
    font-size: 13.5px;
    color: var(--ink-soft);
}

.project-note {
    font-style: italic;
}

.project-type {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--maroon);
}

.lang-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    color: var(--brass);
    border: 1px solid var(--brass);
    border-radius: 10px;
    padding: 1px 7px;
    margin-left: 4px;
    vertical-align: middle;
}

.project-lang {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lang-chip {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.04em;
    color: var(--brass);
    border: 1px solid var(--brass);
    border-radius: 10px;
    padding: 1px 7px;
    line-height: 1.5;
}

.project-action-multi {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.project-action {
    text-align: right;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--maroon);
    text-decoration: none;
    border: 1px solid var(--maroon);
    border-radius: 20px;
    padding: 8px 16px;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-download:hover {
    background: var(--maroon);
    color: #fff;
}

.project-unavailable {
    font-size: 13px;
    color: #B7ACA6;
}

.projects-empty {
    padding: 40px 0;
    text-align: center;
    color: var(--ink-soft);
    font-size: 14.5px;
}

/* ---------- 404 ---------- */
.error-page {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: 90px 32px 120px;
    text-align: center;
    overflow: hidden;
}

.error-code {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: clamp(80px, 14vw, 160px);
    font-weight: 600;
    color: var(--paper-warm);
    -webkit-text-stroke: 2px var(--maroon);
    line-height: 1;
    margin-bottom: 8px;
}

.error-page .page-title {
    margin-bottom: 14px;
}

.error-page .page-lead {
    margin: 0 auto 32px;
}

/* ---------- Legal pages ---------- */
.legal-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 10px 32px 110px;
}

.legal-content h2 {
    font-size: 19px;
    font-weight: 600;
    color: var(--maroon);
    margin: 46px 0 14px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 16px;
}

.legal-content ul {
    margin: 4px 0 22px;
}

.legal-content ul li {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.8;
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 4px 0 22px;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    min-width: 560px;
}

.legal-table th {
    background: var(--paper-warm);
    color: var(--maroon);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.legal-table td {
    padding: 12px 16px;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

/* ---------- Responsive ---------- */
/* Tablet */
@media (max-width: 860px) {
    .site-header {
        padding: 12px 24px;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(28, 26, 25, 0.08);
        z-index: 20;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 16px 24px;
        border-bottom: 1px solid var(--line);
        border-left: 2px solid transparent;
    }

    .main-nav a.active {
        border-bottom: 1px solid var(--line);
        border-left-color: var(--maroon);
    }

    .content-block,
    .content-block.block-maroon {
        grid-template-columns: 1fr;
        padding: 70px 24px;
        gap: 44px;
    }

    .content-block.reverse {
        direction: ltr;
    }

    .block-graphic {
        order: -1;
        max-width: 260px;
        margin: 0 auto;
    }

    .services-index {
        padding: 70px 24px;
    }

    .pillar-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .overview {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 10px 24px 60px;
    }

    .page-intro {
        padding: 48px 24px 44px;
    }

    .quote-block {
        padding: 56px 24px;
    }

    .vision-mission {
        padding: 60px 24px;
    }

    .about-cta {
        padding: 0 24px 70px;
    }

    .service-group,
    .service-group-dark {
        padding: 60px 24px;
    }

    .service-group-head {
        flex-direction: column;
        gap: 18px;
        margin-bottom: 40px;
    }

    .subservice-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 24px;
    }

    .blog-list {
        padding: 10px 24px 70px;
    }

    .projects-list {
        padding: 10px 24px 80px;
    }

    .legal-content {
        padding: 10px 24px 80px;
    }

    .projects-filter {
        flex-wrap: wrap;
        gap: 18px 24px;
    }

    .filter-count {
        margin-left: 0;
        width: 100%;
    }

    .project-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 22px 0;
    }

    .project-action {
        text-align: left;
    }

    .project-action-multi {
        align-items: flex-start;
    }

    .latest-strip {
        padding: 0 24px 70px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 44px;
        padding: 40px 24px 24px;
    }

    .hero {
        padding: 70px 24px 60px;
    }
}

/* Phone */
@media (max-width: 480px) {
    .logo-word {
        font-size: 16px;
    }

    .hero-sub {
        font-size: 15.5px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }

    .lang-toggle {
        margin-left: auto;
        margin-right: 8px;
    }

    .block-text h2,
    .services-index h2 {
        font-size: 24px;
    }

    .pillar-card {
        padding: 22px 22px 26px;
    }

    .latest-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .team-grid {
        justify-content: center;
    }

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

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

html.nm-scroll-locked,
body.nm-scroll-locked {
  overflow: hidden;
}

#nm-cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 25, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

#nm-cookie-modal {
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(28, 26, 25, 0.35);
  padding: 32px;
  outline: none;
}

.nm-cookie-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon);
  margin: 0 0 10px;
}

.nm-cookie-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 24px;
}
.nm-cookie-text a { color: var(--maroon); text-decoration: underline; text-underline-offset: 2px; }

.nm-cookie-actions {
  display: flex;
  gap: 12px;
}

.nm-cookie-btn {
  flex: 1;
  padding: 13px 20px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: 1.5px solid var(--maroon);
  color: var(--maroon);
  transition: background 0.15s ease, color 0.15s ease;
}
.nm-cookie-btn:hover,
.nm-cookie-btn:focus-visible {
  background: var(--maroon);
  color: #fff;
}

@media (max-width: 480px) {
  #nm-cookie-overlay { padding: 16px; }
  #nm-cookie-modal { padding: 24px; }
  .nm-cookie-actions { flex-direction: column; }
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom-row .copyright,
.footer-bottom-row .visitor-count {
  margin: 0;
}
.footer-divider {
  opacity: 0.35;
}
.visitor-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.visitor-icon {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ---------- About: in the news ---------- */
.news-section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 10px 32px 110px;
}

.news-section-head {
    max-width: 720px;
    margin-bottom: 48px;
}

.news-section-head h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 14px;
}

.news-section-lead {
    color: var(--ink-soft);
    font-size: 16px;
    max-width: 640px;
}

.news-group {
    margin-bottom: 56px;
}

.news-group:last-child {
    margin-bottom: 0;
}

.news-group-head {
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
    margin-bottom: 30px;
}

.news-group-head h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}

.news-group-head p {
    color: var(--ink-soft);
    font-size: 14.5px;
    max-width: 620px;
}

.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.news-card {
    display: block;
    flex: 1 1 320px;
    max-width: 380px;
    background: var(--paper-warm);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

a.news-card:hover {
    border-color: var(--maroon);
    transform: translateY(-2px);
}

.news-thumb {
    aspect-ratio: 16 / 9;
    background: var(--line);
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

a.news-card:hover .news-thumb img {
    transform: scale(1.04);
}

.news-body {
    padding: 20px 22px 24px;
}

.news-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-soft);
    margin-bottom: 10px;
}

.news-source {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--maroon);
    margin-bottom: 10px;
}

.news-title {
    font-family: var(--font-display);
    font-size: 16.5px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--ink);
    margin: 0 0 10px;
}

a.news-card:hover .news-title {
    color: var(--maroon-dark);
}

.news-desc {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.news-desc:last-child {
    margin-bottom: 0;
}

.news-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--maroon);
    text-decoration: none;
    border: 1px solid var(--maroon);
    border-radius: 20px;
    padding: 8px 16px;
    transition: background 0.15s ease, color 0.15s ease;
}

.news-link:hover {
    background: var(--maroon);
    color: #fff;
}

@media (max-width: 860px) {
    .news-section {
        padding: 10px 24px 80px;
    }

    .news-grid {
        gap: 24px;
    }

    .news-card {
        flex: 1 1 260px;
    }
}

@media (max-width: 480px) {
    .news-card {
        flex: 1 1 100%;
        max-width: none;
    }
}
