*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Dark palette */
    --dark: #141110;
    --dark-raised: #1C1917;
    --dark-card: #211E1B;
    --dark-hover: #2A2623;
    --dark-text: #F5F0EB;
    --dark-text-secondary: #B8AFA7;
    --dark-text-muted: #7A716A;
    --dark-border: #302B27;
    --dark-border-hover: #423C36;

    /* Light palette */
    --light: #F9F6F2;
    --light-raised: #FFFFFF;
    --light-card: #FFFFFF;
    --light-warm: #F4EDE6;
    --light-hover: #EFE8E0;
    --light-text: #1E1B18;
    --light-text-secondary: #5C5550;
    --light-text-muted: #9A918A;
    --light-border: #E2D9D0;
    --light-border-hover: #CFC4B9;

    /* Accent colours */
    --wine: #7A2E42;
    --wine-deep: #5E2234;
    --wine-soft: #9B4A5F;
    --wine-glow: rgba(122, 46, 66, 0.15);
    --wine-subtle: rgba(122, 46, 66, 0.06);
    --copper: #C47D5A;
    --copper-hover: #D08E6A;
    --copper-glow: rgba(196, 125, 90, 0.25);
    --copper-subtle: rgba(196, 125, 90, 0.08);

    --font-display: 'Fraunces', serif;
    --font-body: 'DM Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAV ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.25rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(20, 17, 16, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: var(--dark-border);
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--dark-text);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.8125rem;
    color: var(--dark-text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 400;
    letter-spacing: 0.02em;
}

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

.nav-cta {
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: #FFF !important;
    background: var(--wine);
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.nav-cta:hover {
    background: var(--wine-soft) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--wine-glow);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--dark-text-secondary);
    margin: 5px 0;
    transition: 0.3s;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.25rem;
    background: var(--copper);
    color: #FFF;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    background: var(--copper-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--copper-glow);
}

.btn-secondary-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.25rem;
    background: transparent;
    color: var(--dark-text-secondary);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary-dark:hover {
    border-color: var(--dark-border-hover);
    color: var(--dark-text);
    background: var(--dark-raised);
}

.btn-secondary-light {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.25rem;
    background: transparent;
    color: var(--light-text-secondary);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    border: 1px solid var(--light-border);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary-light:hover {
    border-color: var(--light-border-hover);
    color: var(--light-text);
    background: var(--light-raised);
}

/* ===== HERO (DARK) ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2.5rem 5rem;
    max-width: 1320px;
    margin: 0 auto;
    gap: 5rem;
}

.hero-content { flex: 1.2; max-width: 640px; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 2.5rem;
}

.hero-eyebrow span {
    font-size: 0.6875rem;
    color: var(--dark-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 500;
}

.hero-eyebrow .line {
    width: 32px;
    height: 1px;
    background: var(--dark-border-hover);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 5.5vw, 4.25rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--dark-text);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero h1 em {
    font-style: italic;
    color: var(--copper);
    font-weight: 300;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--dark-text-secondary);
    line-height: 1.75;
    margin-bottom: 3rem;
    max-width: 520px;
}

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

.hero-proof {
    display: flex;
    gap: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--dark-border);
}

.hero-proof-item {}

.hero-proof-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark-text);
    line-height: 1.2;
}

.hero-proof-label {
    font-size: 0.75rem;
    color: var(--dark-text-muted);
    letter-spacing: 0.02em;
    margin-top: 0.25rem;
}

/* Stats panel */
.hero-panel {
    flex: 1;
    max-width: 440px;
}

.hero-panel-inner {
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    overflow: hidden;
}

.panel-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.panel-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--copper);
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--copper-glow); }
    50% { opacity: 0.6; box-shadow: 0 0 0 6px transparent; }
}

.panel-header-text {
    font-size: 0.6875rem;
    color: var(--dark-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
}

.panel-row {
    display: flex;
    border-bottom: 1px solid var(--dark-border);
}

.panel-row:last-child { border-bottom: none; }

.panel-cell {
    flex: 1;
    padding: 1.5rem 1.75rem;
    transition: background 0.3s;
}

.panel-cell:first-child {
    border-right: 1px solid var(--dark-border);
}

.panel-cell:hover { background: var(--dark-raised); }

.panel-cell.full {
    flex: unset;
    width: 100%;
    border-right: none;
    background: var(--dark-raised);
}

.panel-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-text);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.panel-label {
    font-size: 0.75rem;
    color: var(--dark-text-muted);
    line-height: 1.4;
}

.panel-cell.full .panel-number {
    font-size: 1rem;
    color: var(--copper);
    font-weight: 500;
}

/* ===== ENVELOPE SECTION STACKING ===== */
.hero,
.trust-strip,
.section-light,
.section-dark,
.footer {
    position: relative;
}

.hero        { z-index: 1; }
.trust-strip { z-index: 2; }

.envelope-section {
    border-radius: 28px 28px 0 0;
    margin-top: -28px;
}

.honours       { z-index: 3; }
.services      { z-index: 4; }
.beacon        { z-index: 5; }
.testimonials  { z-index: 6; }
.linkedin-feed { z-index: 7; }
.books         { z-index: 8; }
.cta-section   { z-index: 9; }
.footer        { z-index: 10; }

/* Light over dark — soft lift */
.envelope-section.section-light {
    box-shadow: 0 -12px 50px rgba(0, 0, 0, 0.07), 0 -2px 6px rgba(0, 0, 0, 0.03);
}

/* Dark over light — dramatic depth */
.envelope-section.section-dark {
    box-shadow: 0 -16px 60px rgba(0, 0, 0, 0.3), 0 -2px 8px rgba(0, 0, 0, 0.12);
}

/* ===== TRUST STRIP (TRANSITIONAL) ===== */
.trust-strip {
    background: var(--dark);
    border-top: 1px solid var(--dark-border);
    padding: 2.5rem 2.5rem;
}

.trust-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.trust-label {
    font-size: 0.6875rem;
    color: var(--dark-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.trust-divider {
    width: 1px;
    height: 24px;
    background: var(--dark-border);
    flex-shrink: 0;
}

.trust-logos {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    flex-wrap: wrap;
}

.trust-logo {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--dark-text-muted);
    letter-spacing: 0.03em;
    transition: color 0.3s;
    white-space: nowrap;
}

.trust-logo:hover { color: var(--dark-text-secondary); }

/* ===== LIGHT SECTION BASE ===== */
.section-light {
    background: var(--light);
    color: var(--light-text);
}

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

/* ===== HONOURS (LIGHT) ===== */
.honours {
    padding: 7rem 2.5rem;
}

.honours-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.section-label-light {
    font-size: 0.6875rem;
    color: var(--wine);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.section-label-dark {
    font-size: 0.6875rem;
    color: var(--copper);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.section-title-light {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 400;
    color: var(--light-text);
    margin-bottom: 1rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.section-title-dark {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 400;
    color: var(--dark-text);
    margin-bottom: 1rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.section-sub-light {
    font-size: 1.0625rem;
    color: var(--light-text-secondary);
    max-width: 520px;
    line-height: 1.75;
    margin-bottom: 3.5rem;
}

.section-sub-dark {
    font-size: 1.0625rem;
    color: var(--dark-text-secondary);
    max-width: 520px;
    line-height: 1.75;
    margin-bottom: 3.5rem;
}

.honours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--light-border);
    border: 1px solid var(--light-border);
    border-radius: 16px;
    overflow: hidden;
}

.honour-card {
    background: var(--light-card);
    padding: 2.25rem;
    position: relative;
    transition: background 0.3s;
}

.honour-card:hover { background: var(--light-warm); }

.honour-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--wine-soft), var(--copper));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.honour-card:hover::after { transform: scaleX(1); }

.honour-year {
    font-size: 0.6875rem;
    color: var(--wine);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.honour-title {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--light-text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.honour-source {
    font-size: 0.8125rem;
    color: var(--light-text-muted);
    line-height: 1.5;
}

.honour-card.highlight {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem;
    background: var(--wine);
}

.honour-card.highlight:hover { background: var(--wine-deep); }
.honour-card.highlight::after { display: none; }

.honour-card.highlight .honour-year {
    color: rgba(255,255,255,0.5);
}

.honour-card.highlight .honour-title {
    color: #FFF;
    font-size: 1.75rem;
    line-height: 1.2;
}

.honour-card.highlight .honour-source {
    color: rgba(255,255,255,0.6);
    font-size: 0.9375rem;
    max-width: 400px;
}

/* ===== SERVICES (LIGHT) ===== */
.services {
    padding: 0 2.5rem 7rem;
}

.services-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.service-pillar {
    border: 1px solid var(--light-border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--light-card);
    transition: all 0.3s;
}

.service-pillar:hover {
    border-color: var(--light-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.pillar-header {
    padding: 2.5rem 2.25rem 1.75rem;
    border-bottom: 1px solid var(--light-border);
}

.pillar-label {
    font-size: 0.6875rem;
    color: var(--wine);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.pillar-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--light-text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.pillar-desc {
    font-size: 0.9375rem;
    color: var(--light-text-secondary);
    line-height: 1.65;
}

.pillar-topics {
    padding: 0;
    list-style: none;
}

.pillar-topics li {
    padding: 1.125rem 2.25rem;
    border-bottom: 1px solid var(--light-border);
    font-size: 0.9375rem;
    color: var(--light-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

.pillar-topics li:last-child { border-bottom: none; }
.pillar-topics li:hover { background: var(--light-warm); color: var(--light-text); }

.pillar-topics li::before {
    content: '';
    width: 4px; height: 4px;
    background: var(--wine-soft);
    border-radius: 50%;
    flex-shrink: 0;
}

.pillar-footer {
    padding: 1.5rem 2.25rem;
    border-top: 1px solid var(--light-border);
}

.pillar-link {
    font-size: 0.875rem;
    color: var(--wine);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: gap 0.3s, color 0.3s;
}

.pillar-link:hover { gap: 0.625rem; color: var(--copper); }
.pillar-link::after { content: '→'; }

/* ===== BEACON (DARK) ===== */
.beacon {
    padding: 7rem 2.5rem;
}

.beacon-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.beacon-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 3.5rem;
}

.beacon-header-text { max-width: 560px; }

.beacon-quote {
    max-width: 380px;
    padding: 1.75rem 2rem;
    border-left: 2px solid var(--copper);
}

.beacon-quote blockquote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--dark-text-secondary);
    line-height: 1.75;
    margin-bottom: 0.75rem;
    font-weight: 300;
}

.beacon-quote cite {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.75rem;
    color: var(--dark-text-muted);
    letter-spacing: 0.02em;
}

.beacon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: var(--dark-border);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    overflow: hidden;
}

.beacon-card {
    background: var(--dark-card);
    padding: 2.25rem 1.75rem;
    position: relative;
    transition: background 0.3s;
}

.beacon-card:hover { background: var(--dark-hover); }

.beacon-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--copper);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.beacon-card:hover::after { transform: scaleX(1); }

.beacon-letter {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--copper);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 1.25rem;
}

.beacon-card-title {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.beacon-card-desc {
    font-size: 0.8125rem;
    color: var(--dark-text-muted);
    line-height: 1.6;
}

/* ===== TESTIMONIALS (LIGHT) ===== */
.testimonials {
    padding: 7rem 2.5rem;
}

.testimonials-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: var(--light-border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.04);
}

.testimonial-card.featured {
    grid-column: span 2;
    background: var(--wine);
    border-color: var(--wine);
}

.testimonial-card.featured:hover {
    background: var(--wine-deep);
    border-color: var(--wine-deep);
    box-shadow: 0 12px 40px var(--wine-glow);
}

.testimonial-quote-mark {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 0.25rem;
    opacity: 0.2;
}

.testimonial-card:not(.featured) .testimonial-quote-mark { color: var(--wine-soft); }
.testimonial-card.featured .testimonial-quote-mark { color: #FFF; }

.testimonial-text {
    font-family: var(--font-display);
    font-style: italic;
    line-height: 1.75;
    margin-bottom: 1.75rem;
    font-weight: 300;
}

.testimonial-card:not(.featured) .testimonial-text {
    font-size: 1.0625rem;
    color: var(--light-text-secondary);
}

.testimonial-card.featured .testimonial-text {
    font-size: 1.3125rem;
    color: rgba(255,255,255,0.85);
}

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

.testimonial-name {
    font-size: 0.9375rem;
    font-weight: 600;
}

.testimonial-card:not(.featured) .testimonial-name { color: var(--light-text); }
.testimonial-card.featured .testimonial-name { color: #FFF; }

.testimonial-role {
    font-size: 0.8125rem;
}

.testimonial-card:not(.featured) .testimonial-role { color: var(--light-text-muted); }
.testimonial-card.featured .testimonial-role { color: rgba(255,255,255,0.5); }

.testimonial-org {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.375rem 0.875rem;
    border-radius: 4px;
    white-space: nowrap;
    margin-left: auto;
}

.testimonial-card:not(.featured) .testimonial-org {
    color: var(--wine);
    background: var(--wine-subtle);
}

.testimonial-card.featured .testimonial-org {
    color: #FFF;
    background: rgba(255,255,255,0.12);
}

/* ===== LINKEDIN FEED (DARK) ===== */
.linkedin-feed {
    padding: 7rem 2.5rem;
}

.linkedin-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.linkedin-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.btn-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--dark-border);
    color: var(--dark-text-secondary);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-linkedin:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--dark-border-hover);
    color: var(--dark-text);
}

.btn-linkedin svg {
    flex-shrink: 0;
}

/* Placeholder skeleton — remove when embed widget is installed */
.linkedin-embed-placeholder {
    text-align: center;
}

.linkedin-placeholder-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.linkedin-placeholder-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 1.75rem;
}

.lpc-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.lpc-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--dark-border);
    flex-shrink: 0;
}

.lpc-meta { flex: 1; }

.lpc-name {
    height: 10px;
    width: 55%;
    background: var(--dark-border);
    border-radius: 4px;
    margin-bottom: 6px;
}

.lpc-date {
    height: 8px;
    width: 35%;
    background: var(--dark-border);
    border-radius: 4px;
    opacity: 0.6;
}

.lpc-body { display: flex; flex-direction: column; gap: 8px; }

.lpc-line {
    height: 8px;
    background: var(--dark-border);
    border-radius: 4px;
    opacity: 0.5;
}

.lpc-line.w100 { width: 100%; }
.lpc-line.w90  { width: 90%; }
.lpc-line.w85  { width: 85%; }
.lpc-line.w80  { width: 80%; }
.lpc-line.w70  { width: 70%; }
.lpc-line.w60  { width: 60%; }
.lpc-line.w50  { width: 50%; }

.linkedin-placeholder-note {
    font-size: 0.75rem;
    color: var(--dark-text-muted);
    font-style: italic;
    opacity: 0.6;
}

/* ===== BOOKS (LIGHT cont.) ===== */
.books {
    padding: 7rem 2.5rem;
}

.books-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.books-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.book-card {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

.book-card:hover {
    border-color: var(--light-border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.04);
}

.book-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--wine-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.book-icon svg {
    width: 20px; height: 20px;
    color: var(--wine);
}

.book-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--light-text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.book-desc {
    font-size: 0.875rem;
    color: var(--light-text-muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex: 1;
}

.book-link {
    font-size: 0.875rem;
    color: var(--wine);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: gap 0.3s, color 0.3s;
}

.book-link:hover { gap: 0.625rem; color: var(--copper); }
.book-link::after { content: '→'; }

/* ===== CTA (DARK) ===== */
.cta-section {
    padding: 7rem 2.5rem;
}

.cta-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.cta-card {
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 200px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--copper), transparent);
}

.cta-card .section-title-dark {
    max-width: 480px;
    margin: 0 auto 1rem;
}

.cta-card .section-sub-dark {
    max-width: 460px;
    margin: 0 auto 3rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--dark-border);
    padding: 2.5rem;
    background: var(--dark);
}

.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    color: var(--dark-text-secondary);
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--dark-text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--dark-text-secondary); }

.footer-copy {
    font-size: 0.75rem;
    color: var(--dark-text-muted);
}

/* ===== ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .beacon-header { flex-direction: column; gap: 2rem; }
    .beacon-quote { max-width: 100%; }
    .beacon-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        padding-top: 7rem;
        min-height: auto;
        gap: 3rem;
    }
    .hero-content, .hero-panel { max-width: 100%; }
    .services-grid { grid-template-columns: 1fr; }
    .honours-grid { grid-template-columns: 1fr 1fr; }
    .honour-card.highlight { grid-column: span 2; grid-row: span 1; padding: 2.5rem; }
    .honour-card.highlight .honour-title { font-size: 1.25rem; }
    .beacon-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial-card.featured { grid-column: span 1; }
    .linkedin-header { flex-direction: column; align-items: flex-start; }
    .linkedin-placeholder-cards { grid-template-columns: 1fr 1fr; }
    .hero-proof { gap: 2rem; }
    .trust-inner { flex-direction: column; text-align: center; }
    .trust-divider { display: none; }
    .trust-logos { justify-content: center; }
}

@media (max-width: 640px) {
    .nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(20, 17, 16, 0.97);
        backdrop-filter: blur(24px);
        padding: 1.5rem;
        border-bottom: 1px solid var(--dark-border);
        gap: 1rem;
    }
    .hero { padding: 6rem 1.5rem 3rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero-proof { flex-wrap: wrap; gap: 1.5rem; }
    .honours, .services, .beacon, .testimonials, .linkedin-feed, .books, .cta-section { padding-left: 1.5rem; padding-right: 1.5rem; }
    .honours-grid { grid-template-columns: 1fr; }
    .honour-card.highlight { grid-column: span 1; padding: 2rem; }
    .honour-card.highlight .honour-title { font-size: 1.125rem; }
    .beacon-grid { grid-template-columns: 1fr 1fr; }
    .books-grid { grid-template-columns: 1fr; }
    .linkedin-placeholder-cards { grid-template-columns: 1fr; }
    .cta-card { padding: 3rem 1.5rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; gap: 1.25rem; }
    .panel-cell { padding: 1.25rem; }
}

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

/* ===== CHATBOT ===== */
.chatbot-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--wine);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(122, 46, 66, 0.3);
    transition: all 0.3s;
    z-index: 1000;
}

.chatbot-fab:hover {
    background: var(--wine-soft);
    transform: scale(1.05);
}

.chatbot-fab.active {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
}

.chatbot-fab svg {
    width: 24px;
    height: 24px;
    color: #fff;
    transition: transform 0.3s;
}

.chatbot-fab.active svg {
    transform: rotate(45deg);
}

.chatbot-panel {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 380px;
    max-height: 520px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.95);
    transition: all 0.3s ease;
    z-index: 999;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.chatbot-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--wine);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chatbot-avatar svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

.chatbot-header-text {
    flex: 1;
}

.chatbot-header-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-text);
}

.chatbot-header-status {
    font-size: 0.75rem;
    color: var(--dark-text-muted);
}

.chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 280px;
    max-height: 340px;
}

.chat-message {
    max-width: 85%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

.message-text {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.chat-message.bot .message-text {
    background: var(--dark-raised);
    color: var(--dark-text-secondary);
    border-bottom-left-radius: 4px;
}

.chat-message.user .message-text {
    background: var(--wine);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.quick-reply {
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    color: var(--dark-text-secondary);
    font-size: 0.8125rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
}

.quick-reply:hover {
    border-color: var(--copper);
    color: var(--copper);
    background: var(--copper-subtle);
}

.selection-badge {
    font-size: 0.75rem;
    color: var(--copper);
    padding: 0.25rem 0.625rem;
    background: var(--copper-subtle);
    border-radius: 12px;
    align-self: flex-start;
}

.chat-input-area {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--dark-border);
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.chat-input-area textarea {
    flex: 1;
    padding: 0.625rem 0.875rem;
    background: var(--dark-raised);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: var(--dark-text);
    font-size: 0.875rem;
    font-family: var(--font-body);
    resize: none;
    min-height: 40px;
    max-height: 100px;
}

.chat-input-area textarea:focus {
    outline: none;
    border-color: var(--dark-border-hover);
}

.chat-input-area textarea::placeholder {
    color: var(--dark-text-muted);
}

.chat-input-area button {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--copper);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-input-area button:hover:not(:disabled) {
    background: var(--copper-hover);
}

.chat-input-area button:disabled {
    background: var(--dark-border);
    cursor: not-allowed;
}

.chat-input-area button svg {
    color: #fff;
}

.chatbot-typing {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dark-text-muted);
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
}

.typing-text {
    font-size: 0.75rem;
    color: var(--dark-text-muted);
    font-style: italic;
}

.session-ended {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.25rem 0;
}

.session-ended span {
    font-size: 0.8125rem;
    color: var(--dark-text-muted);
}

.session-ended button {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    color: var(--dark-text-secondary);
    font-size: 0.8125rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
}

.session-ended button:hover {
    border-color: var(--copper);
    color: var(--copper);
}

/* Mobile chatbot */
@media (max-width: 640px) {
    .chatbot-fab {
        bottom: 16px;
        right: 16px;
    }

    .chatbot-panel {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-height: 85vh;
        border-radius: 16px 16px 0 0;
    }

    .chatbot-body {
        max-height: calc(85vh - 140px);
    }
}
