/* ===================================================================
   AxionAI.club — Main Stylesheet
   =================================================================== */

/* -------------------------------------------------------------------
   CSS Custom Properties
   ------------------------------------------------------------------- */
:root {
    --color-white:        #ffffff;
    --color-off-white:    #f8f9fc;
    --color-bg-subtle:    #f1f4f9;

    --color-blue-900:     #0a1628;
    --color-blue-800:     #0f2045;
    --color-blue-700:     #153163;
    --color-blue-600:     #1a4080;
    --color-blue-500:     #1e52a4;
    --color-blue-400:     #2563c8;
    --color-blue-300:     #4a80e0;
    --color-blue-200:     #8cb0f0;
    --color-blue-100:     #dce8fc;
    --color-blue-50:      #eef4ff;

    --color-accent:       #1e52a4;
    --color-accent-light: #2563c8;
    --color-accent-glow:  rgba(30, 82, 164, 0.15);

    --color-text-primary: #0a1628;
    --color-text-body:    #2d3a4e;
    --color-text-muted:   #5a6a80;
    --color-text-light:   #8a9ab5;

    --color-border:       #dce4ef;
    --color-border-light: #eef2f8;

    --gradient-hero:      linear-gradient(135deg, #0a1628 0%, #1a4080 60%, #153163 100%);
    --gradient-subtle:    linear-gradient(135deg, #f8f9fc 0%, #eef4ff 100%);
    --gradient-blue:      linear-gradient(135deg, #1e52a4 0%, #2563c8 100%);
    --gradient-card:      linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,252,0.9) 100%);

    --shadow-sm:    0 1px 3px rgba(10, 22, 40, 0.06), 0 1px 2px rgba(10, 22, 40, 0.04);
    --shadow-md:    0 4px 16px rgba(10, 22, 40, 0.08), 0 2px 6px rgba(10, 22, 40, 0.05);
    --shadow-lg:    0 8px 32px rgba(10, 22, 40, 0.10), 0 4px 12px rgba(10, 22, 40, 0.06);
    --shadow-xl:    0 20px 60px rgba(10, 22, 40, 0.14), 0 8px 24px rgba(10, 22, 40, 0.08);
    --shadow-glow:  0 0 40px rgba(30, 82, 164, 0.20);

    --radius-sm:    6px;
    --radius-md:    12px;
    --radius-lg:    20px;
    --radius-xl:    28px;
    --radius-pill:  999px;

    --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
    --font-serif:   'DM Serif Display', Georgia, serif;

    --transition-fast:   0.15s ease;
    --transition-base:   0.25s ease;
    --transition-slow:   0.4s ease;

    --container-max:     1200px;
    --container-wide:    1400px;
    --container-narrow:  760px;
    --section-gap:       96px;
    --section-gap-sm:    64px;
}

/* -------------------------------------------------------------------
   Reset & Base
   ------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-body);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--color-accent-light); }

ul, ol { list-style: none; }

button {
    font-family: var(--font-sans);
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: var(--font-sans);
}

/* -------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }

.display-headline {
    font-family: var(--font-serif);
    letter-spacing: -0.01em;
}

.text-lead {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: var(--color-text-body);
}

.text-muted { color: var(--color-text-muted); }
.text-light { color: var(--color-text-light); }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-blue-400);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-blue-400);
    border-radius: 2px;
}

/* -------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 48px);
}

.container--wide {
    max-width: var(--container-wide);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding-block: var(--section-gap);
}

.section--sm {
    padding-block: var(--section-gap-sm);
}

.section--dark {
    background: var(--gradient-hero);
    color: var(--color-white);
}

.section--alt {
    background: var(--color-off-white);
}

.section--gradient {
    background: var(--gradient-subtle);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 28px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 24px;
}

/* -------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    transition: all var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
    border: 2px solid transparent;
    text-decoration: none;
    line-height: 1;
}

.btn-sm {
    padding: 9px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 17px 36px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-blue);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(30, 82, 164, 0.35);
}

.btn-primary:hover {
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 82, 164, 0.45);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-accent);
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    color: var(--color-accent-light);
    border-color: var(--color-blue-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn-outline-light {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.22);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* -------------------------------------------------------------------
   Header
   ------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border-light);
    transition: box-shadow var(--transition-base), background var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.97);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 72px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-blue-900);
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--color-accent);
}

.logo-sub {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.main-nav {
    flex: 1;
}

.nav-list {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-link {
    padding: 8px 14px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-body);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
    background: var(--color-blue-50);
}

.nav-link.active {
    font-weight: 600;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-blue-900);
    border-radius: 2px;
    transition: all var(--transition-base);
}

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

.mobile-nav {
    border-top: 1px solid var(--color-border-light);
    background: var(--color-white);
    padding: 16px 0 24px;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 clamp(20px, 4vw, 48px);
}

.mobile-nav-list .nav-link {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.mobile-nav-list .btn {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
}

/* -------------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------------- */
.hero {
    background: var(--gradient-hero);
    color: var(--color-white);
    padding-block: clamp(80px, 12vw, 140px);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 30%, rgba(37, 99, 200, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(30, 82, 164, 0.20) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

.hero-headline {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-white);
    margin-bottom: 24px;
}

.hero-headline em {
    font-style: normal;
    background: linear-gradient(90deg, #7ab8ff, #a8d0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtext {
    font-size: clamp(1rem, 2vw, 1.1875rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 8px;
    flex-wrap: wrap;
}

.hero-stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

/* Skyline scene */
.hero-skyline {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(100,160,255,0.08);
}

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

/* Moving clouds */
.sky-cloud-1 { animation: cloudDrift1 28s linear infinite; }
.sky-cloud-2 { animation: cloudDrift2 36s linear infinite; }
.sky-cloud-3 { animation: cloudDrift3 22s linear infinite; }

@keyframes cloudDrift1 {
    0%   { transform: translateX(0); }
    100% { transform: translateX(560px); }
}
@keyframes cloudDrift2 {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-560px); }
}
@keyframes cloudDrift3 {
    0%   { transform: translateX(30px); }
    50%  { transform: translateX(-30px); }
    100% { transform: translateX(30px); }
}

/* Water shimmer */
.water-shimmer {
    animation: waterShimmer 4s ease-in-out infinite alternate;
}
@keyframes waterShimmer {
    0%   { opacity: 0.12; transform: translateX(0); }
    100% { opacity: 0.28; transform: translateX(6px); }
}

/* Shard tip pulse */
.shard-tip {
    animation: shardPulse 2.5s ease-in-out infinite;
}
@keyframes shardPulse {
    0%, 100% { opacity: 0.6; r: 2; }
    50%       { opacity: 1;   r: 3.5; }
}

/* AI node pulses */
.ai-node {
    animation: nodePulse 3s ease-in-out infinite;
}
.node-2 { animation-delay: 0.8s; }
.node-3 { animation-delay: 1.6s; }
.node-4 { animation-delay: 0.4s; }
.node-5 { animation-delay: 1.2s; }

@keyframes nodePulse {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50%       { opacity: 1;   transform: scale(1.3); }
}

/* AI connection lines marching dash */
.ai-connect {
    stroke-dasharray: 4 4;
    animation: dashMarch 2s linear infinite;
}
.connect-2 { animation-delay: -0.7s; }
.connect-3 { animation-delay: -1.4s; }

@keyframes dashMarch {
    to { stroke-dashoffset: -16; }
}

/* Data streams — fast horizontal sweeps */
.data-stream {
    animation: streamSweep 1.8s linear infinite;
    transform-origin: left center;
}
.ds-1 { animation-duration: 1.6s; animation-delay: 0s; }
.ds-2 { animation-duration: 2.2s; animation-delay: -0.4s; }
.ds-3 { animation-duration: 1.4s; animation-delay: -0.9s; }
.ds-4 { animation-duration: 1.9s; animation-delay: -0.3s; }
.ds-5 { animation-duration: 2.0s; animation-delay: -1.1s; }
.ds-6 { animation-duration: 1.7s; animation-delay: -0.6s; }

@keyframes streamSweep {
    0%   { transform: translateX(-120px); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateX(540px); opacity: 0; }
}

/* Speed particles overlay */
.skyline-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.sp {
    position: absolute;
    height: 1px;
    border-radius: 1px;
    background: linear-gradient(to right, transparent, rgba(122,184,255,0.8), transparent);
    animation: particleRush linear infinite;
}

.sp-1 { width: 60px;  top: 22%; animation-duration: 0.9s;  animation-delay: 0s; }
.sp-2 { width: 40px;  top: 35%; animation-duration: 1.2s;  animation-delay: -0.3s; }
.sp-3 { width: 80px;  top: 48%; animation-duration: 0.75s; animation-delay: -0.6s; background: linear-gradient(to right, transparent, rgba(74,222,128,0.7), transparent); }
.sp-4 { width: 50px;  top: 58%; animation-duration: 1.1s;  animation-delay: -0.2s; }
.sp-5 { width: 70px;  top: 68%; animation-duration: 0.85s; animation-delay: -0.8s; background: linear-gradient(to right, transparent, rgba(74,222,128,0.6), transparent); }
.sp-6 { width: 35px;  top: 78%; animation-duration: 1.3s;  animation-delay: -0.5s; }

@keyframes particleRush {
    0%   { left: -100px; opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 1; }
    100% { left: 110%; opacity: 0; }
}

/* Hero cards row — horizontal 3-col layout under skyline */
.hero-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.hero-cards-row .hero-card {
    padding: 16px 14px;
}

.hero-cards-row .hero-card-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
}

.hero-cards-row .hero-card-title {
    font-size: 0.875rem;
}

.hero-cards-row .hero-card-label {
    font-size: 0.6875rem;
    margin-bottom: 6px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    backdrop-filter: blur(12px);
    transition: transform var(--transition-slow);
}

.hero-card:hover {
    transform: translateX(-4px);
}

.hero-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 10px;
}

.hero-card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 6px;
}

.hero-card-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.60);
    line-height: 1.5;
}

.hero-card-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.75);
}

/* -------------------------------------------------------------------
   Section Headers
   ------------------------------------------------------------------- */
.section-header {
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: 64px;
}

.section-header .section-label {
    justify-content: center;
}

.section-header .section-label::before {
    display: none;
}

.section-header .section-label::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-blue-400);
    border-radius: 2px;
}

.section-title {
    margin-bottom: 18px;
}

.section-body {
    color: var(--color-text-muted);
    font-size: 1.0625rem;
    max-width: 560px;
    margin-inline: auto;
}

/* -------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------- */
.card {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-blue);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 52px;
    height: 52px;
    background: var(--color-blue-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-bottom: 24px;
    transition: background var(--transition-base);
}

.card:hover .card-icon {
    background: var(--color-blue-100);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.card-body {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-top: 20px;
    transition: gap var(--transition-fast);
}

.card-link:hover {
    gap: 10px;
    color: var(--color-accent-light);
}

/* Glass card variant */
.card-glass {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    color: var(--color-white);
}

.card-glass .card-title { color: var(--color-white); }
.card-glass .card-body  { color: rgba(255, 255, 255, 0.65); }
.card-glass .card-icon  { background: rgba(255, 255, 255, 0.10); color: #7ab8ff; }
.card-glass::before     { background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05)); }

/* -------------------------------------------------------------------
   Services Section
   ------------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 28px;
}

/* -------------------------------------------------------------------
   Governance / Principles
   ------------------------------------------------------------------- */
.principles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
}

.principle-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.principle-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-blue-100);
    transform: translateY(-2px);
}

.principle-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--color-blue-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.principle-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}

.principle-content p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

/* -------------------------------------------------------------------
   Workshop Callout
   ------------------------------------------------------------------- */
.workshop-callout {
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
    padding: clamp(48px, 6vw, 80px);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.workshop-callout::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(37, 99, 200, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

.workshop-callout-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.workshop-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 12px;
}

.workshop-callout h2 {
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    color: var(--color-white);
    margin-bottom: 16px;
    max-width: 520px;
}

.workshop-callout p {
    color: rgba(255, 255, 255, 0.70);
    font-size: 1.0625rem;
    max-width: 480px;
    line-height: 1.65;
}

.workshop-cta {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

/* -------------------------------------------------------------------
   Testimonial / Trust Strip
   ------------------------------------------------------------------- */
.trust-strip {
    padding-block: 48px;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.trust-strip-inner {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-light);
    flex-shrink: 0;
}

.trust-items {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 48px;
    align-items: center;
}

.trust-item {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-muted);
    opacity: 0.6;
    letter-spacing: -0.01em;
    transition: opacity var(--transition-base);
}

.trust-item:hover { opacity: 1; }

/* -------------------------------------------------------------------
   Principal / About Section
   ------------------------------------------------------------------- */
.principal-section .grid-2 {
    gap: 80px;
}

.principal-image-wrap {
    position: relative;
}

.principal-image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    max-width: 420px;
    background: linear-gradient(135deg, #e8eef8 0%, #dce8fc 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.principal-image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 22, 40, 0.12) 100%);
}

.principal-initials {
    font-size: 5rem;
    font-weight: 700;
    color: var(--color-blue-200);
    font-family: var(--font-serif);
    position: relative;
    z-index: 1;
}

.principal-badge {
    position: absolute;
    bottom: 28px;
    right: -20px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
}

.principal-badge-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.principal-badge-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.principal-badge-role {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.principal-content .section-label {
    margin-bottom: 14px;
}

.principal-content h2 {
    margin-bottom: 24px;
}

.principal-content p {
    margin-bottom: 20px;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.principal-highlights {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.principal-highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--color-text-body);
}

.principal-highlight-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    background: var(--color-blue-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-top: 2px;
}

/* -------------------------------------------------------------------
   Fractional & Interim People Cards
   ------------------------------------------------------------------- */
.people-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.people-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

.people-card-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.people-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a1628, #1e52a4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.people-avatar--blue  { background: linear-gradient(135deg, #1e40af, #2563c8); }
.people-avatar--teal  { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.people-avatar--gold  { background: linear-gradient(135deg, #92400e, #d97706); }

.people-card-meta { flex: 1; min-width: 0; }

.people-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 3px;
    line-height: 1.3;
}

.people-redacted {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.people-role {
    font-size: 0.8125rem;
    color: var(--color-accent);
    font-weight: 500;
    margin: 0 0 6px;
}

.people-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin: 0;
}

.people-location svg { flex-shrink: 0; }

.people-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.people-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-blue-600);
    background: var(--color-blue-50);
    border: 1px solid var(--color-blue-100);
    border-radius: var(--radius-pill);
    padding: 3px 10px;
}

.people-bio {
    font-size: 0.9rem;
    color: var(--color-text-body);
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.people-availability {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: 5px 12px;
    width: fit-content;
}

.avail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.people-availability--now {
    background: #f0fdf4;
    color: #15803d;
}
.people-availability--now .avail-dot {
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74,222,128,0.25);
    animation: availPulse 2s ease-in-out infinite;
}

.people-availability--soon {
    background: #eff6ff;
    color: #1d4ed8;
}
.people-availability--soon .avail-dot {
    background: #60a5fa;
}

.people-availability--contract {
    background: #fefce8;
    color: #92400e;
}
.people-availability--contract .avail-dot {
    background: #fbbf24;
}

@keyframes availPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.25); }
    50%       { box-shadow: 0 0 0 6px rgba(74,222,128,0.10); }
}

.people-cta {
    align-self: flex-start;
    font-size: 0.875rem;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .people-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------
   News Ticker
   ------------------------------------------------------------------- */
.news-ticker-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--color-navy);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    height: 40px;
    overflow: hidden;
}

.news-ticker-label {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 0 18px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    background: rgba(255,255,255,0.06);
    height: 100%;
    border-right: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}

.news-ticker-track-wrap {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.news-ticker-track {
    display: flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    will-change: transform;
}

.news-ticker-track:hover {
    animation-play-state: paused;
}

.news-ticker-item {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
}

.news-ticker-sep {
    color: rgba(255,255,255,0.25);
    font-size: 1.2rem;
    line-height: 1;
}

.news-ticker-cta {
    flex-shrink: 0;
    padding: 0 18px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent-light);
    text-decoration: none;
    height: 100%;
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.news-ticker-cta:hover {
    background: rgba(255,255,255,0.06);
    color: var(--color-white);
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* -------------------------------------------------------------------
   Sticky Bottom CTA Bar
   ------------------------------------------------------------------- */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--color-navy);
    border-top: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-cta-bar:not([hidden]) {
    transform: translateY(0);
}

.sticky-cta-bar[hidden] {
    display: block !important;
    transform: translateY(100%);
    pointer-events: none;
}

.sticky-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    flex-wrap: wrap;
}

.sticky-cta-text {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sticky-cta-text strong {
    color: var(--color-white);
    font-size: 0.9375rem;
    white-space: nowrap;
}

.sticky-cta-text span {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

.sticky-cta-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sticky-cta-dismiss {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
}

.sticky-cta-dismiss:hover {
    color: rgba(255,255,255,0.8);
}

/* -------------------------------------------------------------------
   Tool Cards (Free Tools page)
   ------------------------------------------------------------------- */
.tool-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tool-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.tool-logo-wrap {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--color-blue-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    transition: background var(--transition-base);
}

.card:hover .tool-logo-wrap {
    background: var(--color-blue-100);
}

.tool-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-pill);
    padding: 2px 10px;
    margin-top: 5px;
    letter-spacing: 0.01em;
}

.tool-card .card-body {
    flex: 1;
}

.tool-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-light);
}

.tool-best-for {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* -------------------------------------------------------------------
   Services Page Detail
   ------------------------------------------------------------------- */
.service-detail {
    scroll-margin-top: 96px;
    padding-block: 80px;
}

.service-detail:nth-child(even) {
    background: var(--color-off-white);
}

.service-detail-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.service-detail:nth-child(even) .service-detail-inner {
    direction: rtl;
}

.service-detail:nth-child(even) .service-detail-inner > * {
    direction: ltr;
}

.service-outcomes {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-outcome {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--color-text-body);
    line-height: 1.55;
}

.service-outcome-tick {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: var(--color-blue-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-top: 2px;
}

.service-visual {
    background: var(--gradient-subtle);
    border-radius: var(--radius-xl);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    border: 1px solid var(--color-border-light);
    position: relative;
    overflow: hidden;
}

.service-visual::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--color-blue-100) 0%, transparent 70%);
    border-radius: 50%;
}

.service-visual-icon {
    width: 80px;
    height: 80px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

/* -------------------------------------------------------------------
   About Page
   ------------------------------------------------------------------- */
.about-hero {
    background: var(--gradient-hero);
    padding-block: clamp(80px, 10vw, 120px);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 70% at 80% 40%, rgba(37, 99, 200, 0.25) 0%, transparent 60%);
    pointer-events: none;
}

.about-hero-content {
    position: relative;
    max-width: 700px;
}

.about-hero h1 {
    color: var(--color-white);
    margin-bottom: 24px;
}

.about-hero p {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 24px;
}

.philosophy-item {
    padding: 32px;
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.philosophy-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.philosophy-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-blue-100);
    font-family: var(--font-serif);
    line-height: 1;
    margin-bottom: 16px;
}

.philosophy-item h4 {
    font-size: 1.0625rem;
    margin-bottom: 10px;
    color: var(--color-text-primary);
}

.philosophy-item p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* -------------------------------------------------------------------
   Contact Page
   ------------------------------------------------------------------- */
.contact-hero {
    background: var(--gradient-hero);
    padding-block: clamp(64px, 8vw, 100px);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 80% at 75% 50%, rgba(37, 99, 200, 0.25) 0%, transparent 60%);
    pointer-events: none;
}

.contact-hero-content {
    position: relative;
    max-width: 600px;
}

.contact-hero h1 {
    color: var(--color-white);
    margin-bottom: 20px;
}

.contact-hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 64px;
    align-items: start;
    padding-block: var(--section-gap);
}

.contact-info h3 {
    font-size: 1.375rem;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--color-blue-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.contact-detail-content h5 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    margin-bottom: 3px;
}

.contact-detail-content p,
.contact-detail-content a {
    font-size: 0.9375rem;
    color: var(--color-text-body);
}

.contact-form-wrap {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: 48px 44px;
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: 36px;
}

/* -------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------- */
.form-group {
    margin-bottom: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 7px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9375rem;
    color: var(--color-text-primary);
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-light);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    background: var(--gradient-blue);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 14px rgba(30, 82, 164, 0.35);
    margin-top: 8px;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 82, 164, 0.45);
}

.form-note {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    margin-top: 12px;
    text-align: center;
}

.input-error {
    border-color: #ef4444;
}

.input-error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    margin-bottom: 24px;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* -------------------------------------------------------------------
   Page Hero (interior pages)
   ------------------------------------------------------------------- */
.page-hero {
    background: var(--gradient-hero);
    padding-block: clamp(64px, 8vw, 100px);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 80% at 80% 40%, rgba(37, 99, 200, 0.22) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    max-width: 680px;
}

.page-hero h1 {
    color: var(--color-white);
    margin-bottom: 20px;
}

.page-hero p {
    font-size: clamp(1.0625rem, 2vw, 1.1875rem);
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

/* -------------------------------------------------------------------
   CTA Section
   ------------------------------------------------------------------- */
.cta-section {
    padding-block: var(--section-gap);
    text-align: center;
    background: var(--gradient-subtle);
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.cta-section h2 {
    margin-bottom: 18px;
}

.cta-section p {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* -------------------------------------------------------------------
   Stats Strip
   ------------------------------------------------------------------- */
.stats-strip {
    padding-block: 64px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-blue-600);
    letter-spacing: -0.03em;
    line-height: 1;
    font-family: var(--font-serif);
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-top: 8px;
}

/* -------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------- */
.site-footer {
    background: var(--color-blue-900);
    color: rgba(255, 255, 255, 0.70);
    padding-top: 72px;
    padding-bottom: 40px;
}

.site-footer .logo-mark { color: var(--color-white); }
.site-footer .logo-sub  { color: rgba(255, 255, 255, 0.40); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.50);
    margin-top: 16px;
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--color-white);
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.40);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.60);
    transition: color var(--transition-fast);
    line-height: 1.4;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-contact-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.65;
    margin-bottom: 20px;
}

.footer-bottom {
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-legal {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-disclaimer {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.25);
}

/* -------------------------------------------------------------------
   AI Readiness Quiz
   ------------------------------------------------------------------- */
.quiz-intro-wrap {
    display: flex;
    justify-content: center;
}

.quiz-intro-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: 52px 48px;
    box-shadow: var(--shadow-lg);
    max-width: 580px;
    width: 100%;
    text-align: center;
}

.quiz-intro-icon {
    width: 72px;
    height: 72px;
    background: var(--color-blue-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin: 0 auto 28px;
}

.quiz-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.quiz-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.quiz-meta-item svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.quiz-progress-wrap {
    margin-bottom: 36px;
}

.quiz-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.quiz-progress-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.quiz-progress-pct {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-accent);
}

.quiz-progress-bar {
    height: 6px;
    background: var(--color-border-light);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--gradient-blue);
    border-radius: var(--radius-pill);
    transition: width 0.4s ease;
}

.quiz-question-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: 40px 40px 32px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    animation: fadeUp 0.35s ease both;
}

.quiz-dimension-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: var(--color-blue-50);
    border-radius: var(--radius-pill);
    padding: 4px 12px;
    margin-bottom: 20px;
}

.quiz-question-text {
    font-size: 1.1875rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.45;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--color-off-white);
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-md);
    text-align: left;
    cursor: pointer;
    width: 100%;
    transition: all var(--transition-fast);
    font-size: 0.9375rem;
    color: var(--color-text-body);
    line-height: 1.5;
}

.quiz-option:hover {
    border-color: var(--color-blue-300);
    background: var(--color-blue-50);
    color: var(--color-accent);
}

.quiz-option.selected {
    border-color: var(--color-accent);
    background: var(--color-blue-50);
    color: var(--color-accent);
    font-weight: 500;
}

.quiz-option-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    flex-shrink: 0;
    margin-top: 1px;
    transition: all var(--transition-fast);
    position: relative;
}

.quiz-option.selected .quiz-option-indicator {
    border-color: var(--color-accent);
    background: var(--color-accent);
}

.quiz-option.selected .quiz-option-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-white);
}

.quiz-option-label {
    flex: 1;
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* Results */
.result-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    animation: fadeUp 0.4s ease both;
}

.result-score-wrap {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.result-score-ring {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    position: relative;
}

.result-score-ring svg {
    width: 120px;
    height: 120px;
}

.result-score-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.result-score-num {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.result-score-sub {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    margin-top: 3px;
}

.result-tier-badge {
    display: inline-flex;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 700;
    border: 1px solid;
    margin-bottom: 10px;
    letter-spacing: 0.04em;
}

.result-headline {
    font-size: 1.375rem;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.result-summary {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.result-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border-light);
}

.result-dimensions {
    margin-bottom: 36px;
}

.result-dim {
    margin-bottom: 14px;
}

.result-dim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.result-dim-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-body);
}

.result-dim-score {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.result-dim-bar {
    height: 8px;
    background: var(--color-border-light);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.result-dim-fill {
    height: 100%;
    border-radius: var(--radius-pill);
    transition: width 0.6s ease;
}

.result-recs {
    margin-bottom: 36px;
}

.result-rec-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-rec-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.9375rem;
    color: var(--color-text-body);
    line-height: 1.55;
}

.result-rec-icon {
    color: var(--color-accent);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.result-cta {
    background: var(--color-blue-50);
    border: 1px solid var(--color-blue-100);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
}

.result-cta p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.65;
}

/* -------------------------------------------------------------------
   News Feed
   ------------------------------------------------------------------- */
.news-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
}

.news-source-badge {
    display: inline-flex;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: var(--color-blue-50);
    border-radius: var(--radius-pill);
    padding: 3px 10px;
    margin-bottom: 14px;
    width: fit-content;
}

.news-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--color-text-primary);
    flex: 1;
    margin-bottom: 10px;
}

.news-card-title a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.news-card-summary {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-light);
    margin-top: auto;
}

.news-card-date {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

.news-read-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent);
    transition: gap var(--transition-fast);
}

.news-read-link:hover {
    gap: 8px;
    color: var(--color-accent-light);
}

/* -------------------------------------------------------------------
   Utility Classes
   ------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-0   { margin-top: 0; }
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mt-32  { margin-top: 32px; }
.mt-48  { margin-top: 48px; }
.mb-0   { margin-bottom: 0; }
.mb-8   { margin-bottom: 8px; }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.mb-32  { margin-bottom: 32px; }
.mb-48  { margin-bottom: 48px; }

/* -------------------------------------------------------------------
   Animations
   ------------------------------------------------------------------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.animate-fade-up {
    animation: fadeUp 0.6s ease both;
}

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

/* -------------------------------------------------------------------
   Responsive — Tablet
   ------------------------------------------------------------------- */
@media (max-width: 1024px) {
    :root {
        --section-gap:    72px;
        --section-gap-sm: 48px;
    }

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

    .hero-visual {
        max-width: 540px;
    }

    .hero-stats {
        gap: 32px;
    }

    .service-detail-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .service-detail:nth-child(even) .service-detail-inner {
        direction: ltr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .principal-badge {
        right: 0;
    }
}

/* -------------------------------------------------------------------
   Responsive — Mobile
   ------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --section-gap:    56px;
        --section-gap-sm: 40px;
    }

    .header-cta { display: none; }

    .main-nav { display: none; }

    .nav-toggle {
        display: flex;
    }

    .hero-subtext { max-width: 100%; }

    .hero-stats {
        gap: 24px;
    }

    .workshop-callout-inner {
        flex-direction: column;
        gap: 32px;
    }

    .workshop-cta {
        width: 100%;
    }

    .workshop-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 32px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .principal-badge {
        position: static;
        margin-top: 16px;
    }

    .principal-image-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .principal-image-placeholder {
        max-width: 280px;
        aspect-ratio: 1;
    }

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

@media (max-width: 480px) {
    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-group .btn {
        text-align: center;
        justify-content: center;
    }

    .hero-badge { font-size: 0.75rem; }
}

/* -------------------------------------------------------------------
   No Machine
   ------------------------------------------------------------------- */
.no-machine-section {
    background: var(--color-off-white);
}

.no-machine-intro {
    max-width: 640px;
    margin-bottom: 40px;
}

.no-box {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 32px 36px;
    max-width: 680px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(10, 22, 40, 0.06);
}

.no-box-input-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.no-input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text-primary);
    background: var(--color-off-white);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    min-width: 0;
}

.no-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(30, 82, 164, 0.12);
}

.no-ask-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.no-answer {
    margin-top: 32px;
    text-align: center;
    padding: 24px 0 8px;
    border-top: 1px solid var(--color-border);
}

.no-answer-word {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    color: var(--color-navy, #0a1628);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 10px;
    display: inline-block;
}

@keyframes no-pop {
    0%   { transform: scale(0.7) rotate(-4deg); opacity: 0; }
    60%  { transform: scale(1.12) rotate(1deg); opacity: 1; }
    80%  { transform: scale(0.95) rotate(-0.5deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.no-pop {
    animation: no-pop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.no-answer-meta {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.no-answer-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.no-counter {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* Collapsible table */
.no-table-details {
    max-width: 680px;
}

.no-table-summary {
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-accent);
    list-style: none;
    padding: 12px 0;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.no-table-summary::-webkit-details-marker { display: none; }

.no-table-details[open] .no-table-chevron {
    display: inline-block;
    transform: rotate(180deg);
}

.no-table-loading {
    padding: 20px;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.no-table-wrap {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 8px;
}

.no-ref-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.no-ref-table thead th {
    background: var(--color-navy, #0a1628);
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 16px;
    text-align: left;
}

.no-ref-table tbody tr {
    border-bottom: 1px solid var(--color-border);
}

.no-ref-table tbody tr.lang-first td:first-child {
    padding-top: 14px;
}

.no-ref-table tbody tr:last-child {
    border-bottom: none;
}

.no-ref-table tbody td {
    padding: 7px 16px;
    color: var(--color-text-primary);
    vertical-align: middle;
}

.no-ref-table tbody tr:hover td {
    background: var(--color-blue-50, #eff6ff);
}

.no-ref-word {
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    color: var(--color-navy, #0a1628);
    transition: color var(--transition-base);
}

.no-ref-word:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.no-flavour-tag {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-style: italic;
}

@media (max-width: 600px) {
    .no-box {
        padding: 20px 18px;
    }
    .no-box-input-wrap {
        flex-direction: column;
        align-items: stretch;
    }
}

/* -------------------------------------------------------------------
   Blog — listing & hero
   ------------------------------------------------------------------- */
.blog-hero {
    background: linear-gradient(135deg, var(--color-navy) 0%, #1a3060 100%);
    padding: 80px 0 64px;
    color: #fff;
}

.blog-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    margin: 12px 0 16px;
}

.blog-hero-content p {
    color: rgba(255,255,255,0.72);
    font-size: 1.0625rem;
    max-width: 580px;
    line-height: 1.7;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.blog-grid .blog-card--featured {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0;
}

.blog-grid .blog-card--featured .blog-card-img-wrap {
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    height: 320px;
}

.blog-grid .blog-card--featured .blog-card-body {
    padding: 36px 32px;
}

.blog-grid .blog-card--featured .blog-card-title {
    font-size: 1.5rem;
}

.blog-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.blog-card:hover {
    box-shadow: 0 8px 32px rgba(10, 22, 40, 0.1);
    transform: translateY(-2px);
}

.blog-card-img-wrap {
    display: block;
    overflow: hidden;
    height: 200px;
    background: var(--color-navy);
    flex-shrink: 0;
}

.blog-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--color-navy), #1e52a4);
}

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

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

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta-sep { opacity: 0.4; }

.blog-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.4;
    margin-bottom: 10px;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

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

.blog-card-excerpt {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 16px;
}

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

.blog-read-more:hover { text-decoration: underline; }

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 16px;
}

.blog-page-info {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-text-muted);
}

/* -------------------------------------------------------------------
   Blog — single post
   ------------------------------------------------------------------- */
.post-hero {
    background: linear-gradient(135deg, var(--color-navy) 0%, #1a3060 100%);
    color: #fff;
    padding-bottom: 0;
}

.post-hero-img-wrap {
    max-height: 420px;
    overflow: hidden;
}

.post-hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    opacity: 0.7;
}

.post-hero-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 0 52px;
}

.post-back-link {
    display: inline-block;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    text-decoration: none;
    margin-bottom: 20px;
}

.post-back-link:hover { color: #fff; }

.post-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.post-meta {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-meta a { color: rgba(255,255,255,0.7); }
.post-meta a:hover { color: #fff; }

.post-excerpt {
    color: rgba(255,255,255,0.78);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-top: 18px;
    max-width: 680px;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 52px;
    align-items: start;
    max-width: 1060px;
    margin: 0 auto;
}

/* Article body typography */
.post-body { max-width: 680px; }
.post-body h2 { font-size: 1.5rem; margin: 36px 0 14px; color: var(--color-text-primary); }
.post-body h3 { font-size: 1.1875rem; margin: 28px 0 10px; color: var(--color-text-primary); }
.post-body p  { margin-bottom: 18px; line-height: 1.8; color: var(--color-text-secondary); font-size: 1.0625rem; }
.post-body ul, .post-body ol { margin: 0 0 18px 24px; }
.post-body li { margin-bottom: 8px; line-height: 1.7; color: var(--color-text-secondary); }
.post-body blockquote { border-left: 4px solid var(--color-accent); padding: 12px 20px; margin: 24px 0; background: var(--color-blue-50); border-radius: 0 8px 8px 0; color: var(--color-text-secondary); font-style: italic; }
.post-body img { max-width: 100%; border-radius: var(--radius-lg); margin: 8px 0; }
.post-body a { color: var(--color-accent); }
.post-body strong { color: var(--color-text-primary); }

/* Sidebar */
.post-author-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 20px;
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.post-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-navy);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.post-author-name { font-weight: 700; font-size: 0.9375rem; color: var(--color-text-primary); }
.post-author-role { font-size: 0.8125rem; color: var(--color-text-muted); }
.post-author-bio  { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 4px; }

.sidebar-related { margin-top: 28px; }
.sidebar-related h4 { font-size: 0.875rem; font-weight: 700; color: var(--color-text-primary); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.05em; }

.sidebar-related-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
    text-decoration: none;
}

.sidebar-related-img {
    width: 56px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-related-placeholder {
    background: var(--color-navy);
    color: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.sidebar-related-title { font-size: 0.8125rem; font-weight: 600; color: var(--color-text-primary); line-height: 1.4; }
.sidebar-related-date  { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 2px; }
.sidebar-related-item:hover .sidebar-related-title { color: var(--color-accent); }

/* -------------------------------------------------------------------
   Blog — comments
   ------------------------------------------------------------------- */
.comments-wrap { max-width: 780px; margin: 0 auto; }
.comments-heading { font-size: 1.375rem; margin-bottom: 28px; }
.comments-empty { color: var(--color-text-muted); margin-bottom: 32px; }

.comments-list { margin-bottom: 48px; display: flex; flex-direction: column; gap: 24px; }

.comment {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-navy);
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-content { flex: 1; }
.comment-header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.comment-author { font-weight: 700; font-size: 0.9375rem; color: var(--color-text-primary); }
.comment-date   { font-size: 0.8125rem; color: var(--color-text-muted); }
.comment-body   { font-size: 0.9375rem; line-height: 1.7; color: var(--color-text-secondary); }

.comment-form-wrap { border-top: 1px solid var(--color-border); padding-top: 40px; }
.comment-form-wrap h3 { font-size: 1.125rem; margin-bottom: 6px; }

.comment-form { margin-top: 20px; }
.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* -------------------------------------------------------------------
   Homepage blog preview section
   ------------------------------------------------------------------- */
.blog-preview-section { background: var(--color-off-white); }

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0 36px;
}

/* -------------------------------------------------------------------
   Blog responsive
   ------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .post-layout { grid-template-columns: 1fr; gap: 40px; }
    .post-sidebar { order: -1; }
    .post-author-card, .post-author-bio, .sidebar-related { max-width: 480px; }
}

@media (max-width: 900px) {
    .blog-grid { grid-template-columns: 1fr 1fr; }
    .blog-grid .blog-card--featured { grid-column: span 2; grid-template-columns: 1fr; }
    .blog-grid .blog-card--featured .blog-card-img-wrap { border-radius: var(--radius-xl) var(--radius-xl) 0 0; height: 220px; }
    .blog-preview-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-grid .blog-card--featured { grid-column: span 1; }
    .blog-preview-grid { grid-template-columns: 1fr; }
    .comment-form-row { grid-template-columns: 1fr; }
    .post-hero-content { padding: 32px 0 40px; }
}
