:root {
    --bg: #f7f6f3;
    --surface: #ffffff;
    --dark: #111118;
    --dark-soft: #1c1c28;
    --text: #1a1a22;
    --muted: #6b6b7b;
    --border: #e8e6e1;
    --accent: #5b5cf6;
    --accent-hover: #4a4be0;
    --accent-light: #ededfe;
    --success: #166534;
    --error: #991b1b;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(17, 17, 24, 0.06);
    --shadow-lg: 0 20px 60px rgba(17, 17, 24, 0.12);
    --font-sans: "DM Sans", system-ui, sans-serif;
    --font-serif: "Instrument Serif", Georgia, serif;
    --container: min(1140px, calc(100% - 2.5rem));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent);
    transition: color 0.2s;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.5rem; }
h4 { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.75rem; color: var(--muted); }

p { margin: 0 0 1rem; }

.container {
    width: var(--container);
    margin: 0 auto;
}

/* ── Header ── */

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

.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    flex-shrink: 0;
}

.site-logo-image {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.75rem;
    margin-left: auto;
}

.site-nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.925rem;
    font-weight: 500;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: var(--text);
}

.header-cta {
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.nav-toggle:hover {
    border-color: rgba(91, 92, 246, 0.35);
    background: var(--accent-light);
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.2s, opacity 0.2s;
}

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

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

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

.site-nav-mobile {
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
}

.site-nav-mobile-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem 0 1.5rem;
}

.site-nav-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.site-nav-mobile-links a {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.site-nav-mobile-links a:hover {
    color: var(--accent);
}

body.nav-open {
    overflow: hidden;
}

/* ── Buttons ── */

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.925rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.button:hover,
button.button:hover {
    background: var(--accent-hover);
    color: #fff;
}

.button-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
}

.button-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.button-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.button-light {
    background: #fff;
    color: var(--accent);
}

.button-light:hover {
    background: var(--accent-light);
    color: var(--accent-hover);
}

.button-secondary {
    background: var(--accent-light);
    color: var(--accent);
}

.button-secondary:hover {
    background: #ddd9fc;
}

.button-full {
    width: 100%;
}

.text-link {
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--accent);
}

.text-link:hover {
    color: var(--accent-hover);
}

/* ── Hero ── */

.hero-home {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 17, 24, 0.88) 0%, rgba(17, 17, 24, 0.55) 60%, rgba(91, 92, 246, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 6rem 0;
    max-width: 720px;
    color: #fff;
}

.hero-content h1 {
    color: #fff;
}

.hero-lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.eyebrow-light {
    color: rgba(255, 255, 255, 0.6);
}

/* ── Page hero (inner pages) ── */

.page-hero {
    position: relative;
    overflow: hidden;
    background: var(--dark);
    color: #fff;
    padding: 5rem 0 4rem;
}

.page-hero .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.page-hero .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 24, 0.72);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero-short {
    padding: 4rem 0 3rem;
}

.page-hero h1 {
    color: #fff;
    max-width: 680px;
}

.page-hero-lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 560px;
    margin-bottom: 0;
}

.page-hero-lead a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* ── Sections ── */

.section {
    padding: 5rem 0;
}

.section-muted {
    background: var(--surface);
}

.section-dark {
    background: var(--dark);
    color: #fff;
}

.section-dark h2,
.section-dark h3 {
    color: #fff;
}

.section-dark p {
    color: rgba(255, 255, 255, 0.72);
}

.section-header {
    max-width: 600px;
    margin-bottom: 3rem;
}

.section-header.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-lead {
    color: var(--muted);
    font-size: 1.05rem;
}

.section-cta {
    margin-top: 2.5rem;
}

/* ── Stats ── */

.stats-bar {
    background: var(--surface);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat span {
    font-size: 0.875rem;
    color: var(--muted);
}

/* ── Service cards (home) ── */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: box-shadow 0.25s, transform 0.25s;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.service-icon {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.service-card h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.1rem;
}

.service-card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ── Split layout ── */

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-image img {
    border-radius: var(--radius-lg);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.check-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.82);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

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

.text-link-light {
    color: rgba(255, 255, 255, 0.85);
}

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

/* ── Work grid ── */

.work-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

.work-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
}

.work-card-large {
    grid-row: span 2;
    aspect-ratio: auto;
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 17, 24, 0.85) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
}

.work-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.35rem;
}

.work-overlay h3 {
    color: #fff;
    font-size: 1.25rem;
    margin: 0;
}

.work-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
}

/* ── Post cards ── */

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.post-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.25s;
}

.post-card:hover {
    box-shadow: var(--shadow);
}

.post-card-image {
    display: block;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.35s;
}

.post-card:hover .post-card-image img {
    transform: scale(1.04);
}

.post-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.post-card-body h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.post-card-body h3 a {
    color: var(--text);
    text-decoration: none;
}

.post-card-body h3 a:hover {
    color: var(--accent);
}

.post-card-body p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.post-meta {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.read-more {
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent);
}

.post-taxonomy,
.blog-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.post-header .post-taxonomy {
    margin-bottom: 1rem;
}

.taxonomy-pill {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.taxonomy-pill:hover {
    background: #ddd9fc;
    color: var(--accent-hover);
}

.taxonomy-pill.is-active {
    background: var(--accent);
    color: #fff;
}

.taxonomy-pill-category {
    background: #ede9fe;
    color: #5b21b6;
}

.taxonomy-pill-category:hover {
    background: #ddd6fe;
    color: #4c1d95;
}

.taxonomy-pill-category.is-active {
    background: #5b21b6;
    color: #fff;
}

.taxonomy-pill-tag {
    background: #f1f5f9;
    color: #475569;
}

.taxonomy-pill-tag:hover {
    background: #e2e8f0;
    color: #334155;
}

.taxonomy-pill-tag.is-active {
    background: #334155;
    color: #fff;
}

.blog-filters-section {
    padding: 1.5rem 0 0;
}

.blog-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
}

.blog-filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.blog-filters--minimal {
    background: transparent;
    border: none;
    padding: 0;
    gap: 0.75rem;
}

.blog-filters--minimal .blog-filter-label {
    font-size: 0.7rem;
    margin-bottom: 0.35rem;
}

.blog-filters--tabs {
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.blog-filters--tabs .blog-filter-group {
    border-bottom: 1px solid var(--border);
}

.blog-filters--tabs .blog-filter-group:last-child {
    border-bottom: none;
}

.blog-filters--tabs .blog-filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 0.5rem;
    scrollbar-width: none;
}

.blog-filters--tabs .blog-filter-pills::-webkit-scrollbar {
    display: none;
}

.blog-filters--tabs .taxonomy-pill {
    border-radius: 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
}

.blog-filters--tabs .taxonomy-pill:hover {
    background: transparent;
    color: var(--accent);
}

.blog-filters--tabs .taxonomy-pill.is-active {
    background: transparent;
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.blog-filters--tabs .taxonomy-pill-category.is-active {
    background: transparent;
    color: #5b21b6;
    border-bottom-color: #5b21b6;
}

.blog-filters--tabs .taxonomy-pill-tag.is-active {
    background: transparent;
    color: var(--text);
    border-bottom-color: var(--text);
}

.blog-filters--compact {
    padding: 0.85rem 1rem;
}

.blog-filters--compact .blog-filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.blog-filters--compact .taxonomy-pill {
    flex-shrink: 0;
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
}

.blog-filters--dropdown {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.blog-filter-dropdown {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: min(100%, 220px);
    flex: 1;
}

.blog-filter-select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    font-size: 0.9rem;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
}

.blog-filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

/* ── Blog page ── */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.blog-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.25s;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
}

.blog-card-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.blog-card-featured .blog-card-image img {
    height: 100%;
    aspect-ratio: unset;
    min-height: 320px;
}

.blog-card-image {
    display: block;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.35s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.03);
}

.blog-card-body {
    padding: 1.75rem 2rem;
}

.blog-card-body h2 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.blog-card-featured .blog-card-body h2 {
    font-size: 1.6rem;
}

.blog-card-body h2 a {
    color: var(--text);
    text-decoration: none;
}

.blog-card-body h2 a:hover {
    color: var(--accent);
}

.blog-card-body p {
    color: var(--muted);
    font-size: 0.95rem;
}

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

.blog-grid--grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-grid--grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.blog-grid--grid-4 .blog-card-body {
    padding: 1.25rem 1.5rem;
}

.blog-grid--grid-4 .blog-card-body h2 {
    font-size: 1rem;
}

.blog-grid--stack {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

.blog-grid--list .blog-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: stretch;
}

.blog-grid--list .blog-card-image img {
    height: 100%;
    min-height: 140px;
    aspect-ratio: unset;
}

.blog-grid--list .blog-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-grid--magazine {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card-hero {
    grid-column: 1 / -1;
}

.blog-card-hero .blog-card-image img {
    aspect-ratio: 21/9;
    max-height: 420px;
}

.blog-card-hero .blog-card-body h2 {
    font-size: 1.75rem;
}

.blog-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2.5rem;
}

.blog-page-link,
.blog-page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.blog-page-link {
    color: var(--text);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.blog-page-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.blog-page-current {
    background: var(--accent);
    color: #fff;
}

/* ── Single post ── */

.post-single {
    padding-bottom: 4rem;
}

.post-header {
    background: var(--dark);
    color: #fff;
    padding: 4rem 0 3rem;
}

.post-header h1 {
    color: #fff;
    max-width: 760px;
}

.post-header .post-meta a {
    color: rgba(255, 255, 255, 0.6);
}

.post-excerpt {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.15rem;
    max-width: 640px;
}

.post-featured-image {
    margin: -2rem 0 2.5rem;
}

.post-featured-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.photo-credit {
    margin-top: 0.65rem;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: right;
}

.photo-credit a {
    color: var(--muted);
}

.post-content {
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.75;
}

.post-content h1 {
    margin-top: 2.5rem;
    font-size: 2rem;
    line-height: 1.2;
}

.post-content h2 {
    margin-top: 2.5rem;
    font-size: 1.6rem;
    line-height: 1.25;
}

.post-content h3 {
    margin-top: 2rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.post-content p,
.post-content ul,
.post-content ol {
    margin-bottom: 1.25rem;
}

.post-content ul,
.post-content ol {
    padding-left: 1.4rem;
}

.post-content li {
    margin-bottom: 0.35rem;
}

.post-content a {
    font-weight: 500;
}

.post-content blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid #6366f1;
    background: rgba(99, 102, 241, 0.06);
    border-radius: 0 12px 12px 0;
    color: #312e81;
    font-style: italic;
}

.post-content pre,
.post-content pre.ql-syntax {
    margin: 1.5rem 0;
    padding: 1rem 1.15rem;
    background: #1e1e2e;
    color: #e8e8ef;
    border-radius: 12px;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.55;
}

.post-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9em;
    background: rgba(99, 102, 241, 0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}

.post-content .ql-align-center {
    text-align: center;
}

.post-content .ql-align-right {
    text-align: right;
}

.post-content .ql-align-justify {
    text-align: justify;
}

.post-content img.ql-align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.post-content img.ql-align-right {
    display: block;
    margin-left: auto;
    margin-right: 0;
}

.post-footer {
    max-width: 720px;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.post-nav-spacer {
    display: block;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.post-nav-link:hover {
    border-color: rgba(91, 92, 246, 0.35);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.post-nav-prev {
    text-align: left;
}

.post-nav-next {
    text-align: right;
    margin-left: auto;
}

.post-nav-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.post-nav-prev .post-nav-label::before {
    content: '← ';
}

.post-nav-next .post-nav-label::after {
    content: ' →';
}

.post-nav-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--accent);
}

.post-nav-link:hover .post-nav-title {
    color: var(--accent-hover);
}

.post-back-link {
    display: inline-block;
}

/* ── Services page ── */

.services-list {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

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

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

.service-block-image img {
    border-radius: var(--radius-lg);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.service-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.service-block h2 {
    margin-bottom: 1rem;
}

.service-block p {
    color: var(--muted);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.service-price {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.service-price strong {
    color: var(--text);
    font-size: 1.1rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.process-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.process-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.process-step h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
}

.process-step p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ── Contact ── */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
}

.contact-card h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.contact-card a {
    font-weight: 600;
    text-decoration: none;
}

.contact-hours {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0.25rem 0 0;
}

.contact-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 0.5rem;
}

.contact-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.contact-form-wrap {
    min-width: 0;
}

.contact-form-wrap .contact-notice {
    margin-bottom: 1rem;
}

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
    min-width: 0;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-group--half {
    grid-column: span 1;
}

.form-group--checkbox {
    display: block;
}

.form-group--checkbox-group {
    border: 0;
    padding: 0;
    margin: 0 0 1.25rem;
    min-width: 0;
}

.form-group--checkbox-group legend {
    display: block;
    width: 100%;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
    padding: 0;
}

.contact-checkbox-group-options {
    display: grid;
    gap: 0.75rem;
}

.contact-checkbox-group-options--vertical {
    grid-template-columns: 1fr;
}

.contact-checkbox-group-options--horizontal {
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}

.contact-checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    margin: 0;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.contact-checkbox-option:hover {
    border-color: #cbd5e1;
}

.contact-checkbox-option:has(input:checked) {
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.06);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.contact-checkbox-option:focus-within {
    outline: none;
    border-color: var(--accent);
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.form-group .checkbox-label {
    display: inline-flex;
}

.checkbox-label input[type="checkbox"],
.form-group input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.checkbox-label span {
    line-height: 1.45;
}

.form-group > label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    font-size: 0.95rem;
    background: var(--bg);
    transition: border-color 0.2s;
}

.form-group input:not([type="checkbox"]):focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* ── CTA banner ── */

.cta-banner {
    background: var(--accent);
    padding: 4rem 0;
}

.cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-banner h2 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    max-width: 480px;
}

/* ── Newsletter ── */

.newsletter-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.newsletter-form input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font: inherit;
    min-width: 240px;
    background: var(--bg);
}

/* ── Footer ── */

.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0 3rem;
}

.footer-brand .site-logo {
    margin-bottom: 0.75rem;
}

.footer-brand .logo-text {
    color: #fff;
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #fff;
}

.footer-contact p {
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
}

.footer-bottom p {
    font-size: 0.85rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
}

/* ── 404 ── */

.error-page {
    text-align: center;
    padding: 6rem 2rem;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
}

/* ── Scroll reveal & motion ── */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hero-animate > * {
    opacity: 0;
    animation: hero-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-animate > *:nth-child(1) { animation-delay: 0.1s; }
.hero-animate > *:nth-child(2) { animation-delay: 0.22s; }
.hero-animate > *:nth-child(3) { animation-delay: 0.34s; }
.hero-animate > *:nth-child(4) { animation-delay: 0.46s; }
.hero-animate > *:nth-child(5) { animation-delay: 0.58s; }

.hero-bg {
    animation: hero-ken-burns 20s ease-in-out infinite alternate;
}

@keyframes hero-ken-burns {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-animate > * {
        opacity: 1;
        animation: none;
    }

    .hero-bg {
        animation: none;
    }
}

/* ── Trust bar ── */

.trust-bar {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.trust-bar-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem 3rem;
}

.trust-logo {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--muted);
    opacity: 0.55;
    transition: opacity 0.25s, color 0.25s;
}

.trust-logo:hover {
    opacity: 1;
    color: var(--text);
}

/* ── Testimonials ── */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.3s;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial-quote {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1.5rem;
    flex: 1;
}

.testimonial-quote::before {
    content: "\201C";
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.4;
    margin-bottom: 0.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0;
}

/* ── Values grid ── */

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.value-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.value-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--accent-light);
}

.value-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.value-card h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.value-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ── Team grid ── */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.team-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 3/4;
    background: var(--border);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.team-card:hover .team-photo img {
    transform: scale(1.04);
}

.team-card h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

/* ── Timeline ── */

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--border);
}

.timeline-item {
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.timeline-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.timeline-item h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.timeline-item p {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0;
}

/* ── FAQ accordion ── */

.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    background: none;
    border: none;
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    color: var(--text);
    cursor: pointer;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: transform 0.3s, background 0.2s;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
    background: var(--accent);
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.is-open .faq-answer {
    max-height: 500px;
    padding-bottom: 1.25rem;
}

.faq-answer p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

/* ── Why choose us ── */

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.why-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: box-shadow 0.3s, transform 0.3s;
}

.why-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.why-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.why-card h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.why-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 1024px) {
    .testimonial-grid,
    .values-grid,
    .team-grid,
    .why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .timeline {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .timeline::before {
        display: none;
    }
}

@media (max-width: 640px) {
    .testimonial-grid,
    .values-grid,
    .team-grid,
    .why-grid,
    .timeline,
    .contact-layout,
    .contact-form-fields {
        grid-template-columns: 1fr;
    }

    .form-group--half {
        grid-column: 1 / -1;
    }
}

/* Responsive layout rules: generated from Admin → Options → Layout breakpoints */


/* ── Shared notices (contact form; admin notices live in admin.css) ── */

.notice {
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.notice-success {
    background: #dcfce7;
    color: var(--success);
}

.notice-error {
    background: #fee2e2;
    color: var(--error);
}

.notice ul {
    margin: 0;
    padding-left: 1.2rem;
}

.contact-notice {
    align-self: start;
}

.contact-layout .notice ul {
    margin: 0;
    padding-left: 1.1rem;
}
