@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@700;800&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600;8..60,700&display=swap');

/* ── Design Tokens — Cyber-Executive Redesign ──── */
:root {
    /* Backgrounds */
    --bg-primary: #08090e;
    --bg-secondary: #0c1018;
    --bg-card: #10121a;
    --bg-card-hover: #171a25;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    /* Text */
    --text-primary: #eeeae4;
    --text-secondary: #b8b3af;
    --text-muted: #7f7b77;

    /* Accent — Personal Brand */
    --accent: #36b5a0;
    --accent-glow: rgba(54, 181, 160, 0.16);
    --accent-soft: rgba(54, 181, 160, 0.08);

    /* CTA — Main Action */
    --cta: #d4a853;
    --cta-glow: rgba(212, 168, 83, 0.26);
    --cta-soft: rgba(212, 168, 83, 0.08);

    /* Brasa Solutions specific tokens */
    --brasa-bg: #080808;
    --brasa-accent: #e8734a;
    --brasa-text: #eeeae4;
    --brasa-glow: rgba(232, 115, 74, 0.15);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* UI elements */
    --radius: 20px;
    --radius-sm: 12px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s var(--ease-out);
}

/* Modern profile refinements: shorter hero, lighter navigation, no table-like blocks */
header {
    border-bottom: 1px solid rgba(244, 239, 230, 0.08);
    background: rgba(5, 5, 4, 0.68);
    backdrop-filter: blur(22px);
}

.nav {
    min-height: 78px;
}

.nav-brand {
    letter-spacing: -0.02em;
}

.nav-links {
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(244, 239, 230, 0.1);
    border-radius: 999px;
    background: rgba(244, 239, 230, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-links a {
    padding: 9px 14px;
    border-radius: 999px;
    color: rgba(244, 239, 230, 0.74);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
}

.nav-links a::after {
    display: none;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(244, 239, 230, 0.08);
}

.lang-switcher {
    gap: 2px;
    padding: 4px;
    border: 1px solid rgba(244, 239, 230, 0.1);
    border-radius: 999px;
    background: rgba(244, 239, 230, 0.045);
}

.lang-btn {
    width: auto;
    min-width: 38px;
    height: 34px;
    border-radius: 999px;
    border: 0;
    font-family: var(--font-body);
    font-size: 0.76rem;
    letter-spacing: 0.02em;
}

.lang-btn.active {
    background: rgba(185, 147, 90, 0.18);
    box-shadow: inset 0 0 0 1px rgba(185, 147, 90, 0.32);
}

.nav-cta {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}

.executive-hero {
    min-height: 90svh;
    padding-top: 124px;
}

.executive-hero .hero-container {
    position: static;
}

.executive-hero::before {
    background:
        linear-gradient(90deg, rgba(5, 5, 4, 1) 0%, rgba(5, 5, 4, 0.98) 25%, rgba(5, 5, 4, 0.78) 46%, rgba(5, 5, 4, 0.28) 68%, rgba(5, 5, 4, 0.08) 86%, rgba(5, 5, 4, 0.28) 100%),
        linear-gradient(180deg, rgba(5, 5, 4, 0.03) 0%, rgba(5, 5, 4, 0.08) 52%, rgba(5, 5, 4, 0.9) 100%);
}

.hero-content {
    max-width: min(780px, 54vw);
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(4.2rem, 7.6vw, 8.4rem) !important;
    line-height: 0.9 !important;
    font-weight: 650 !important;
}

.hero-intro {
    max-width: 690px;
    margin-top: 24px;
    font-size: clamp(1.06rem, 1.22vw, 1.28rem);
    line-height: 1.58;
}

.portrait-frame img {
    opacity: 0.9;
    filter: saturate(0.9) contrast(1.04) brightness(0.9);
}

.hero-portrait {
    width: min(68vw, 1040px);
    height: 100%;
}

.hero-actions {
    gap: 12px;
    margin-top: 38px;
}

.hero-link {
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 0.98rem;
    letter-spacing: 0;
    box-shadow: none;
}

.hero-actions .icon-slot {
    display: none;
}

.hero-link.primary::after {
    content: "→";
    margin-left: 10px;
    font-size: 1.1em;
    transform: translateY(-1px);
}

.hero-link.secondary {
    color: var(--text-primary);
    background: rgba(244, 239, 230, 0.065);
}

.hero-link.secondary:hover {
    background: rgba(244, 239, 230, 0.1);
}

.hero-assurance {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 760px;
    margin-top: 24px;
    border: 0;
}

.hero-assurance span {
    min-height: 0;
    padding: 9px 13px;
    border: 1px solid rgba(244, 239, 230, 0.12);
    border-radius: 999px;
    background: rgba(244, 239, 230, 0.05);
    color: rgba(244, 239, 230, 0.82);
    font-size: 0.82rem;
    letter-spacing: 0;
    text-transform: none;
}

.trust-strip {
    padding: 26px 0 10px;
    border: 0;
    background: transparent;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    border: 0;
}

.trust-item {
    min-height: 118px;
    padding: 20px;
    border: 1px solid rgba(244, 239, 230, 0.1);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(244, 239, 230, 0.06), rgba(244, 239, 230, 0.018)),
        rgba(5, 5, 4, 0.42);
    box-shadow: 0 18px 60px -52px rgba(0, 0, 0, 0.8);
}

.trust-item strong {
    font-size: clamp(2rem, 3vw, 3.4rem);
    letter-spacing: -0.04em;
}

.trust-item span {
    max-width: 16ch;
    color: rgba(244, 239, 230, 0.68);
    letter-spacing: 0;
    text-transform: none;
}

.signals-section {
    background:
        radial-gradient(circle at 16% 0%, rgba(185, 147, 90, 0.11), transparent 28%),
        rgba(244, 239, 230, 0.012);
}

.signals-grid {
    counter-reset: signal;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    border: 0;
    background: transparent;
}

.signal-card {
    position: relative;
    counter-increment: signal;
    min-height: 304px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(244, 239, 230, 0.1) !important;
    border-radius: 22px;
    background:
        linear-gradient(160deg, rgba(244, 239, 230, 0.074), rgba(244, 239, 230, 0.018) 48%, rgba(185, 147, 90, 0.07)),
        rgba(8, 7, 6, 0.72) !important;
    box-shadow: 0 26px 80px -64px rgba(0, 0, 0, 0.88);
}

.signal-card::before {
    content: "0" counter(signal);
    display: block;
    position: static;
    width: auto;
    height: auto;
    margin-bottom: 54px;
    border: 0;
    background: none;
    color: rgba(185, 147, 90, 0.92);
    font-family: var(--font-mono);
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    opacity: 1;
    transform: none;
}

.signal-card::after {
    content: "";
    position: absolute;
    inset: auto 24px 24px auto;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(185, 147, 90, 0.18);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185, 147, 90, 0.14), transparent 68%);
    opacity: 0.8;
}

.signal-icon {
    display: none;
}

.signal-card h3 {
    max-width: 15ch;
    font-size: clamp(1.28rem, 1.7vw, 1.72rem);
    line-height: 1.06;
    letter-spacing: -0.025em;
}

.signal-card p {
    max-width: 31ch;
    margin-top: 18px;
    color: rgba(244, 239, 230, 0.63);
    font-size: 0.98rem;
    line-height: 1.7;
}

.signal-card:hover {
    border-color: rgba(185, 147, 90, 0.34) !important;
    background:
        linear-gradient(160deg, rgba(244, 239, 230, 0.09), rgba(244, 239, 230, 0.024) 46%, rgba(185, 147, 90, 0.11)),
        rgba(12, 10, 8, 0.9) !important;
    transform: translateY(-4px);
}

.proof-ledger {
    border: 0;
    border-radius: 24px;
    background: transparent;
}

.ledger-row {
    margin-bottom: 12px;
    border: 1px solid rgba(244, 239, 230, 0.1);
    border-radius: 18px;
    background: rgba(244, 239, 230, 0.035);
}

.ledger-row:last-child {
    margin-bottom: 0;
}

@media (max-width: 1080px) {
    .hero-content {
        max-width: min(720px, 62vw);
    }

    .hero h1 {
        font-size: clamp(3.8rem, 8vw, 7.2rem) !important;
    }
}

@media (max-width: 980px) {
    .nav-links {
        display: none;
    }

    .hero-content {
        max-width: min(680px, 66vw);
    }

    .trust-grid,
    .signals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    header {
        background: rgba(5, 5, 4, 0.82);
    }

    .nav {
        min-height: 70px;
    }

    .nav-brand {
        font-size: 1rem;
    }

    .nav-actions {
        gap: 6px;
    }

    .lang-btn {
        min-width: 32px;
        height: 30px;
        font-size: 0.68rem;
    }

    .nav-cta {
        min-height: 38px;
        padding: 0 12px;
        font-size: 0.78rem;
    }

    .executive-hero {
        padding-top: 92px;
    }

    .executive-hero .hero-container {
        position: relative;
    }

    .hero h1 {
        max-width: 9ch;
        font-size: clamp(3.05rem, 15vw, 4.7rem) !important;
    }

    .hero-intro {
        max-width: 34ch;
        font-size: 1.02rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-link {
        width: 100%;
        justify-content: center;
    }

    .portrait-frame img {
        opacity: 0.78;
    }

    .trust-grid,
    .signals-grid {
        grid-template-columns: 1fr;
    }

    .trust-item {
        min-height: 104px;
    }

    .signal-card {
        min-height: 250px;
        padding: 26px;
    }

    .signal-card::before {
        margin-bottom: 36px;
    }
}

/* Reputation redesign: editorial, human, LinkedIn-first */
:root {
    --bg-primary: #f4f0e8;
    --bg-secondary: #ebe5da;
    --bg-card: #fffaf1;
    --bg-card-hover: #fffdf8;
    --text-primary: #171411;
    --text-secondary: #4f4941;
    --text-muted: #7b7167;
    --accent: #b8422d;
    --accent-soft: rgba(184, 66, 45, 0.1);
    --accent-glow: rgba(184, 66, 45, 0.18);
    --cta: #171411;
    --cta-text: #fffaf1;
    --border-subtle: rgba(23, 20, 17, 0.14);
    --border-hover: rgba(184, 66, 45, 0.34);
    --font-heading: 'Source Serif 4', Georgia, serif;
    --font-body: 'Manrope', system-ui, sans-serif;
    --font-display: 'Source Serif 4', Georgia, serif;
    --font-mono: 'Manrope', system-ui, sans-serif;
}

body {
    font-family: var(--font-body);
}

body[data-page="index"] {
    background: #f4f0e8;
    color: var(--text-primary);
}

body[data-page="index"]::before {
    background:
        linear-gradient(90deg, rgba(23, 20, 17, 0.045) 1px, transparent 1px) 0 0 / 96px 96px,
        linear-gradient(180deg, rgba(255, 250, 241, 0.9), rgba(244, 240, 232, 0.4));
}

body[data-page="index"] header {
    border-bottom: 1px solid rgba(23, 20, 17, 0.1);
    background: rgba(244, 240, 232, 0.78);
    color: var(--text-primary);
    backdrop-filter: blur(22px);
}

body[data-page="index"] .nav {
    min-height: 78px;
}

body[data-page="index"] .nav-brand {
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

body[data-page="index"] .nav-brand span {
    color: var(--accent);
}

body[data-page="index"] .nav-links {
    gap: 22px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body[data-page="index"] .nav-links a {
    padding: 0;
    border-radius: 0;
    color: rgba(23, 20, 17, 0.62);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body[data-page="index"] .nav-links a:hover {
    color: var(--text-primary);
    background: transparent;
}

body[data-page="index"] .lang-switcher {
    gap: 0;
    padding: 3px;
    border: 1px solid rgba(23, 20, 17, 0.12);
    border-radius: 999px;
    background: rgba(255, 250, 241, 0.7);
}

body[data-page="index"] .lang-btn {
    min-width: 36px;
    height: 32px;
    color: rgba(23, 20, 17, 0.48);
    border: 0;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

body[data-page="index"] .lang-btn.active {
    color: #fffaf1;
    background: var(--text-primary);
    box-shadow: none;
}

body[data-page="index"] .nav-cta {
    min-height: 40px;
    padding: 0 15px;
    color: var(--text-primary);
    border: 1px solid rgba(23, 20, 17, 0.16);
    border-radius: 999px;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

body[data-page="index"] .nav-cta:hover {
    color: #fffaf1;
    border-color: var(--text-primary);
    background: var(--text-primary);
}

body[data-page="index"] .executive-hero {
    min-height: 94svh;
    padding: 132px 0 56px;
    background: #f4f0e8;
}

body[data-page="index"] .executive-hero .hero-container {
    position: static;
}

body[data-page="index"] .executive-hero::before {
    z-index: -1;
    background:
        linear-gradient(90deg, #f4f0e8 0%, rgba(244, 240, 232, 0.98) 28%, rgba(244, 240, 232, 0.75) 47%, rgba(244, 240, 232, 0.12) 69%, rgba(244, 240, 232, 0.34) 100%),
        linear-gradient(180deg, rgba(244, 240, 232, 0) 42%, #f4f0e8 100%);
}

body[data-page="index"] .executive-hero::after {
    display: none;
}

body[data-page="index"] .hero-content {
    max-width: min(720px, 52vw);
}

body[data-page="index"] .hero h1 {
    max-width: 720px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(4.7rem, 8vw, 8.9rem) !important;
    font-weight: 650 !important;
    line-height: 0.88 !important;
    letter-spacing: -0.055em !important;
}

body[data-page="index"] .hero-intro {
    max-width: 610px;
    margin-top: 26px;
    color: rgba(23, 20, 17, 0.76);
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 1.22vw, 1.22rem);
    line-height: 1.7;
}

body[data-page="index"] .hero-portrait {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: -2;
    width: min(58vw, 900px);
    height: 100%;
}

body[data-page="index"] .hero-portrait::after {
    background:
        linear-gradient(90deg, #f4f0e8 0%, rgba(244, 240, 232, 0.88) 17%, rgba(244, 240, 232, 0.28) 42%, rgba(244, 240, 232, 0.02) 70%, rgba(244, 240, 232, 0.42) 100%),
        linear-gradient(180deg, rgba(244, 240, 232, 0.04) 0%, rgba(244, 240, 232, 0.04) 62%, #f4f0e8 100%);
}

body[data-page="index"] .portrait-frame {
    border: 0;
    border-radius: 0;
    background: #f4f0e8;
}

body[data-page="index"] .portrait-frame img {
    object-position: center top;
    opacity: 0.96;
    filter: saturate(0.92) contrast(1.03) brightness(1.02);
}

body[data-page="index"] .hero-actions {
    gap: 12px;
    margin-top: 34px;
}

body[data-page="index"] .hero-link,
body[data-page="index"] .contact-link {
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

body[data-page="index"] .hero-actions .icon-slot {
    display: none;
}

body[data-page="index"] .hero-link.primary,
body[data-page="index"] .contact-link-primary {
    color: #fffaf1;
    border-color: var(--text-primary);
    background: var(--text-primary);
    box-shadow: 0 18px 38px -26px rgba(23, 20, 17, 0.8);
}

body[data-page="index"] .hero-link.primary::after,
body[data-page="index"] .contact-link-primary::after {
    content: "→";
    margin-left: 10px;
}

body[data-page="index"] .hero-link.primary:hover,
body[data-page="index"] .contact-link-primary:hover {
    color: #fffaf1;
    background: #b8422d;
    border-color: #b8422d;
}

body[data-page="index"] .hero-link.secondary,
body[data-page="index"] .contact-link {
    color: var(--text-primary);
    border: 1px solid rgba(23, 20, 17, 0.16);
    background: rgba(255, 250, 241, 0.62);
}

body[data-page="index"] .hero-link.secondary:hover,
body[data-page="index"] .contact-link:hover {
    border-color: rgba(23, 20, 17, 0.34);
    background: #fffaf1;
}

body[data-page="index"] .hero-assurance {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 660px;
    margin-top: 26px;
    border: 0;
}

body[data-page="index"] .hero-assurance span {
    min-height: 0;
    padding: 8px 11px;
    color: rgba(23, 20, 17, 0.64);
    border: 1px solid rgba(23, 20, 17, 0.13);
    border-radius: 999px;
    background: rgba(255, 250, 241, 0.54);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

body[data-page="index"] .trust-strip {
    padding: 24px 0 42px;
    border: 0;
    background: #f4f0e8;
}

body[data-page="index"] .trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(23, 20, 17, 0.14);
}

body[data-page="index"] .trust-item {
    min-height: 128px;
    padding: 26px 34px 20px 0;
    border: 0;
    border-right: 1px solid rgba(23, 20, 17, 0.1);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body[data-page="index"] .trust-item:last-child {
    border-right: 0;
}

body[data-page="index"] .trust-item strong {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 3vw, 3.65rem);
    line-height: 0.95;
    letter-spacing: 0;
}

body[data-page="index"] .trust-item span {
    max-width: 22ch;
    margin-top: 16px;
    color: rgba(23, 20, 17, 0.56);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}

body[data-page="index"] .story-section,
body[data-page="index"] .signals-section,
body[data-page="index"] .proof-section,
body[data-page="index"] .writing-preview,
body[data-page="index"] .brasa-section {
    background: #f4f0e8;
}

body[data-page="index"] .story-layout {
    display: grid;
    grid-template-columns: 0.68fr 1.18fr 0.88fr;
    gap: clamp(28px, 4vw, 72px);
    padding: 84px 0;
    border-top: 1px solid rgba(23, 20, 17, 0.13);
}

body[data-page="index"] .section-label,
body[data-page="index"] .section-kicker,
body[data-page="index"] .proof-ledger span,
body[data-page="index"] .writing-row span {
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body[data-page="index"] .story-lede h2,
body[data-page="index"] .section-header h2,
body[data-page="index"] .proof-copy h2,
body[data-page="index"] .writing-intro h2,
body[data-page="index"] .contact-panel h2,
body[data-page="index"] .brasa-card h2 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 650;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

body[data-page="index"] .story-lede h2,
body[data-page="index"] .section-header h2,
body[data-page="index"] .proof-copy h2 {
    font-size: clamp(2.8rem, 5vw, 5.9rem);
}

body[data-page="index"] .story-lede p,
body[data-page="index"] .story-body p,
body[data-page="index"] .section-header p,
body[data-page="index"] .proof-copy p,
body[data-page="index"] .writing-intro p,
body[data-page="index"] .brasa-card p,
body[data-page="index"] .contact-sub {
    color: rgba(23, 20, 17, 0.64);
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.15vw, 1.16rem);
    line-height: 1.76;
}

body[data-page="index"] .signals-section {
    padding: 96px 0;
}

body[data-page="index"] .section-header {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: clamp(28px, 6vw, 92px);
    align-items: end;
    margin-bottom: 48px;
}

body[data-page="index"] .section-header .section-label {
    grid-column: 1 / -1;
}

body[data-page="index"] .signals-grid {
    counter-reset: signal;
    display: block;
    border-top: 1px solid rgba(23, 20, 17, 0.14);
    background: transparent;
}

body[data-page="index"] .signal-card {
    counter-increment: signal;
    display: grid;
    grid-template-columns: 92px 0.95fr 1fr;
    gap: clamp(20px, 4vw, 64px);
    min-height: 0;
    padding: 34px 0;
    border: 0 !important;
    border-bottom: 1px solid rgba(23, 20, 17, 0.14) !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
}

body[data-page="index"] .signal-card::before {
    content: "0" counter(signal);
    display: block;
    position: static;
    margin: 3px 0 0;
    color: rgba(23, 20, 17, 0.36);
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

body[data-page="index"] .signal-card::after {
    display: none;
}

body[data-page="index"] .signal-card:hover {
    transform: none;
    background: transparent !important;
}

body[data-page="index"] .signal-card h3 {
    max-width: 20ch;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 2.4vw, 2.65rem);
    font-weight: 650;
    line-height: 1;
    letter-spacing: -0.04em;
}

body[data-page="index"] .signal-card p {
    max-width: 42ch;
    margin: 2px 0 0;
    color: rgba(23, 20, 17, 0.62);
    font-size: 1rem;
    line-height: 1.72;
}

body[data-page="index"] .proof-section {
    padding: 84px 0 96px;
}

body[data-page="index"] .proof-layout,
body[data-page="index"] .writing-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(34px, 6vw, 96px);
    align-items: start;
}

body[data-page="index"] .proof-ledger,
body[data-page="index"] .writing-list {
    border: 0;
    border-top: 1px solid rgba(23, 20, 17, 0.14);
    border-radius: 0;
    background: transparent;
}

body[data-page="index"] .ledger-row,
body[data-page="index"] .writing-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    margin: 0;
    padding: 26px 0;
    border: 0;
    border-bottom: 1px solid rgba(23, 20, 17, 0.14);
    border-radius: 0;
    background: transparent;
}

body[data-page="index"] .ledger-row strong,
body[data-page="index"] .writing-row strong {
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: clamp(1.06rem, 1.4vw, 1.34rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

body[data-page="index"] .brasa-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 28px 0;
    border: 0 !important;
    border-top: 1px solid rgba(23, 20, 17, 0.14) !important;
    border-bottom: 1px solid rgba(23, 20, 17, 0.14) !important;
    border-radius: 0;
    background: transparent !important;
}

body[data-page="index"] .brasa-card h2 {
    max-width: 760px;
    font-size: clamp(1.8rem, 3vw, 3rem);
}

body[data-page="index"] .brasa-cta {
    color: var(--text-primary);
    border: 1px solid rgba(23, 20, 17, 0.16);
    border-radius: 999px;
    background: transparent;
}

body[data-page="index"] .writing-preview {
    padding: 96px 0;
}

body[data-page="index"] .writing-row {
    color: var(--text-primary);
    text-decoration: none;
}

body[data-page="index"] .writing-row .icon-slot {
    display: none;
}

body[data-page="index"] .contact-section {
    padding: 94px 0;
    color: #fffaf1;
    background: #171411;
}

body[data-page="index"] .contact-panel > div {
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
}

body[data-page="index"] .contact-panel h2 {
    max-width: 780px;
    color: #fffaf1;
    font-size: clamp(3rem, 6vw, 6.8rem);
}

body[data-page="index"] .contact-sub {
    max-width: 660px;
    color: rgba(255, 250, 241, 0.68);
}

body[data-page="index"] .contact-links .contact-link {
    color: #fffaf1;
    border-color: rgba(255, 250, 241, 0.22);
    background: transparent;
}

body[data-page="index"] .contact-links .contact-link-primary {
    color: #171411;
    border-color: #fffaf1;
    background: #fffaf1;
}

body[data-page="index"] footer {
    color: rgba(255, 250, 241, 0.7);
    background: #171411;
}

body[data-page="index"] .footer-inner {
    border-top-color: rgba(255, 250, 241, 0.12);
}

@media (max-width: 980px) {
    body[data-page="index"] .nav-links {
        display: none;
    }

    body[data-page="index"] .hero-content {
        max-width: min(680px, 68vw);
    }

    body[data-page="index"] .trust-grid,
    body[data-page="index"] .section-header,
    body[data-page="index"] .story-layout,
    body[data-page="index"] .proof-layout,
    body[data-page="index"] .writing-layout {
        grid-template-columns: 1fr;
    }

    body[data-page="index"] .signal-card {
        grid-template-columns: 72px 1fr;
    }

    body[data-page="index"] .signal-card p {
        grid-column: 2;
    }
}

@media (max-width: 640px) {
    body[data-page="index"] .nav {
        min-height: 68px;
    }

    body[data-page="index"] .nav-brand {
        font-size: 0.98rem;
    }

    body[data-page="index"] .nav-cta {
        display: none;
    }

    body[data-page="index"] .executive-hero {
        min-height: auto;
        padding: 92px 0 0;
    }

    body[data-page="index"] .executive-hero .hero-container {
        position: relative;
    }

    body[data-page="index"] .hero-content {
        max-width: 100%;
    }

    body[data-page="index"] .hero h1 {
        max-width: 8.4ch;
        font-size: clamp(3.45rem, 17vw, 5.3rem) !important;
        line-height: 0.9 !important;
    }

    body[data-page="index"] .hero-intro {
        max-width: 34ch;
        font-size: 1rem;
    }

    body[data-page="index"] .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    body[data-page="index"] .hero-link {
        width: 100%;
        justify-content: center;
    }

    body[data-page="index"] .hero-portrait {
        position: relative;
        z-index: 1;
        width: calc(100% + 40px);
        height: 390px;
        margin: 40px -20px 0;
    }

    body[data-page="index"] .hero-portrait::after {
        background:
            linear-gradient(180deg, rgba(244, 240, 232, 0) 0%, rgba(244, 240, 232, 0.08) 58%, #f4f0e8 100%),
            linear-gradient(90deg, #f4f0e8 0%, rgba(244, 240, 232, 0.08) 20%, rgba(244, 240, 232, 0.08) 80%, #f4f0e8 100%);
    }

    body[data-page="index"] .portrait-frame img {
        object-position: center top;
        opacity: 0.96;
    }

    body[data-page="index"] .trust-strip {
        padding-top: 34px;
    }

    body[data-page="index"] .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-page="index"] .trust-item {
        min-height: 112px;
        padding: 18px 12px 20px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(23, 20, 17, 0.12);
    }

    body[data-page="index"] .story-layout,
    body[data-page="index"] .signals-section,
    body[data-page="index"] .proof-section,
    body[data-page="index"] .writing-preview,
    body[data-page="index"] .contact-section {
        padding: 64px 0;
    }

    body[data-page="index"] .section-header {
        margin-bottom: 26px;
    }

    body[data-page="index"] .signal-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 28px 0;
    }

    body[data-page="index"] .signal-card p {
        grid-column: auto;
    }

    body[data-page="index"] .ledger-row,
    body[data-page="index"] .writing-row,
    body[data-page="index"] .brasa-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    body[data-page="index"] .contact-panel h2 {
        font-size: clamp(2.7rem, 13vw, 4.4rem);
    }
}

/* Keep the portrait behaving like a true background on desktop */
.executive-hero .hero-container {
    position: static;
}

.hero-portrait {
    width: min(68vw, 1040px);
    height: 100%;
}

@media (max-width: 640px) {
    .executive-hero .hero-container {
        position: relative;
    }
}

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

html {
    background: var(--bg-primary);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    /* Subtle tech vignette */
    background: radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.03), transparent 50%);
    z-index: -1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.icon-slot {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.icon-slot--sm {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}

.ui-icon-svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ui-icon-svg .icon-accent {
    stroke: var(--accent);
}

.ui-icon-svg .icon-accent-fill {
    fill: var(--accent);
    stroke: none;
}

/* ── Utility ────────────────────────────────────────── */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

/* ── Reveal Animation ───────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── Noise Overlay ──────────────────────────────────── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.02;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Shared Sub-page Layout ─────────────────────────── */
.page-hero {
    padding: 140px 0 80px;
    border-bottom: 1px solid var(--border-subtle);
    background:
        radial-gradient(circle at right top, rgba(212, 168, 83, 0.1), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 45%);
}

.page-hero .page-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.page-hero h1 .accent { color: var(--accent); }

.page-hero .page-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.8;
}

/* ── Header ─────────────────────────────────────────── */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(8, 9, 14, 0.82);
    border-bottom: 1px solid var(--border-subtle);
    transition: padding 0.3s ease;
}

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

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.nav-brand span {
    color: var(--accent);
}

/* ── Nav CTA (Brasa link) ─────────────────────────── */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border: 1px solid rgba(232, 115, 74, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--cta);
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--cta-soft);
    border-color: var(--cta);
}

.nav-cta:hover .icon-slot--trailing {
    transform: translateX(3px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 128px 0 80px;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 24%, rgba(212, 168, 83, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%);
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-image-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    right: 0;
    width: min(56vw, 860px);
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.82;
    filter: saturate(0.94) contrast(1.02);
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.94) 28%, rgba(0, 0, 0, 0.68) 52%, rgba(0, 0, 0, 0.16) 78%, rgba(0, 0, 0, 0.34) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.06) 24%, rgba(0, 0, 0, 0.9) 100%);
}

.tech-blend {

    opacity: 0.6;
}

.hud-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--accent);
    background: rgba(0, 229, 255, 0.1);
    padding: 2px 6px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    margin-left: 8px;
    vertical-align: middle;
}

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

.hero-greeting {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero h1 .accent {
    color: var(--accent);
}

.hero-intro {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 580px;
    margin-bottom: 2rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 2rem;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.meta-pill::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 4px;
    height: 4px;
    background: var(--accent);
}

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

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-link.primary {
    background: var(--cta);
    color: var(--cta-text);
    border: 1px solid transparent;
}

.hero-link.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    background: #e0e0e0;
}

.hero-link.primary .ui-icon-svg .icon-accent,
.hero-link.primary .ui-icon-svg .icon-accent-fill {
    stroke: currentColor;
    fill: currentColor;
}

.brasa-cta .ui-icon-svg .icon-accent,
.brasa-cta .ui-icon-svg .icon-accent-fill {
    stroke: currentColor;
    fill: currentColor;
}

.hero-link:hover .icon-slot--trailing {
    transform: translateX(3px);
}

.hero-link.secondary {
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-link.secondary:hover {
    background: var(--bg-card);
    color: var(--accent);
    border-color: var(--accent);
}

/* ── Story Section ──────────────────────────────────── */
.story-section {
    padding: 120px 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.story-column h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.story-column h2 .accent {
    color: var(--accent);
    background: linear-gradient(270deg, var(--accent), #56dfc8, var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.story-column p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.story-column p:last-child {
    margin-bottom: 0;
}

.story-highlight {
    background: var(--brasa-bg);
    border: 1px solid rgba(232, 115, 74, 0.25);
    border-left: 3px solid var(--brasa-accent);
    border-radius: var(--radius);
    padding: 32px;
    margin-top: 2rem;
}

.story-highlight .highlight-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--brasa-accent);
    margin-bottom: 12px;
    display: block;
}

.story-highlight p {
    color: rgba(238, 234, 228, 0.9);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ── Credential List ────────────────────────────────── */
.cred-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cred-item {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 16px 18px 16px 26px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: border-color 0.3s ease;
    position: relative;
}

.cred-item:hover { border-color: var(--border-hover); }

.cred-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
    transform: translateY(-50%) rotate(45deg);
}

.cred-item > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cred-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.cred-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Story link ─────────────────────────────────────── */
.story-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    transition: gap 0.3s ease;
}

.story-link:hover { gap: 10px; }

/* ── Signal Cards (What I do) ───────────────────────── */
.signals-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-subtle);
}

.signals-section .section-header {
    margin-bottom: 3rem;
}

.signals-section .section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.signals-section .section-header p {
    color: var(--text-secondary);
    max-width: 500px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    align-items: stretch;
}

.bento-large {
    grid-column: span 8;
}

.bento-medium {
    grid-column: span 4;
}

@media (max-width: 900px) {
    .bento-large {
        grid-column: span 12;
    }
    .bento-medium {
        grid-column: span 6;
    }
}

@media (max-width: 600px) {
    .bento-medium {
        grid-column: span 12;
    }
}

/* ── Design Tricks: Grid Focus State ── */
.bento-grid:hover .signal-card:not(:hover),
.story-grid:hover .cred-item:not(:hover),
.review-grid:hover .review-card:not(:hover) {
    opacity: 0.6;
    filter: blur(1px) grayscale(60%);
    transform: scale(0.98);
}


.signal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hud-label-wrapper {
    margin-bottom: 24px;
}

.tech-bar {
    margin-top: auto;
    padding-top: 30px;
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

/* ── Design Tricks: Spotlight Glow ── */
.signal-card::before,
.review-card::before,
.brasa-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.05),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.signal-card:hover::before,
.review-card:hover::before,
.brasa-card:hover::before {
    opacity: 1;
}

/* Ensure contents stay above the spotlight */
.signal-card > *,
.review-card > *,
.brasa-card > * {
    position: relative;
    z-index: 1;
}

.signal-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.08);
}

.signal-icon {
    width: 26px;
    height: 26px;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.signal-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.signal-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.review-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-subtle);
}

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

.review-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 32px 28px;
}

.review-card-label {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(212, 168, 83, 0.14);
    border-radius: 999px;
    padding: 6px 12px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.review-card h3 {
    font-family: var(--font-heading);
    font-size: 1.24rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.review-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

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

.review-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.review-link:hover {
    border-color: var(--accent);
    background: rgba(212, 168, 83, 0.06);
    transform: translateX(2px);
}

/* ── Brasa CTA ──────────────────────────────────────── */
.brasa-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-subtle);
}

.brasa-card {
    background: var(--brasa-bg);
    border: 1px solid rgba(232, 115, 74, 0.25);
    border-radius: var(--radius);
    padding: 56px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.brasa-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--brasa-glow) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.brasa-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.brasa-content .section-label {
    color: var(--brasa-accent);
}

.brasa-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--brasa-text);
}

.brasa-content p {
    color: rgba(238, 234, 228, 0.8); /* Brasa secondary text */
    font-size: 1rem;
    line-height: 1.7;
}

.brasa-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--brasa-accent);
    color: var(--brasa-bg);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.brasa-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--brasa-glow);
}

.brasa-cta:hover .icon-slot--trailing {
    transform: translateX(4px);
}

/* ── Contact ────────────────────────────────────────── */
.contact-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.contact-section h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.contact-section .contact-sub {
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-hover);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--bg-card);
    color: var(--accent);
    border-color: rgba(212, 168, 83, 0.3);
    transform: translateY(-2px);
}

.contact-link:hover .icon-slot--leading {
    transform: translateX(-2px);
}

.contact-link:hover .icon-slot--trailing {
    transform: translateX(2px);
}

/* ── Footer ─────────────────────────────────────────── */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--border-subtle);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

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

.lang-switcher {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--text-secondary);
    border-color: var(--border-subtle);
}

.lang-btn.active {
    color: var(--accent);
    border-color: rgba(212, 168, 83, 0.3);
    background: var(--accent-soft);
}

.legal-links {
    display: flex;
    gap: 24px;
}

.legal-links a {
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: color 0.3s ease;
}

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

/* ── Career Timeline (About page) ───────────────────── */
.timeline-section { padding: 80px 0; }

.timeline {
    position: relative;
    padding-left: 28px;
    margin-top: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 7px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.timeline-date {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 4px;
}

.timeline-role {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.timeline-company {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── About — Skills & Languages ─────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
    padding: 80px 0;
    border-top: 1px solid var(--border-subtle);
    align-items: start;
}

.about-section-title {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    display: block;
    margin-bottom: 1.5rem;
}

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

.lang-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-name {
    font-size: 0.85rem;
    font-weight: 500;
    width: 90px;
    flex-shrink: 0;
    color: var(--text-primary);
}

.lang-dots {
    display: flex;
    gap: 5px;
}

.lang-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-subtle);
}

.lang-dot.filled { background: var(--accent); }

/* ── Essay Grid (Writing page) ───────────────────────── */
.writing-section { padding: 80px 0; }

.essay-grid {
    display: grid;
    gap: 24px;
    margin-top: 3rem;
}

.essay-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 36px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.essay-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.essay-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}

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

.essay-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.essay-tag {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 3px 10px;
    border-radius: 100px;
}

.essay-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.essay-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.essay-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.essay-read-more {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.essay-card:hover .essay-read-more { gap: 10px; }

/* ── Essay Article (individual essay page) ───────────── */
.essay-article {
    max-width: 680px;
    margin: 0 auto;
    padding: 80px 0 120px;
}

.essay-article h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
}

.essay-article p {
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.essay-article p strong { color: var(--text-primary); font-weight: 500; }

.essay-article blockquote {
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 24px;
    margin: 2rem 0;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.8;
}

.essay-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 3rem;
    transition: color 0.3s ease;
}

.essay-back:hover { color: var(--accent); }

.essay-back:hover .icon-slot--leading {
    transform: translateX(-3px);
}

/* ── Now Page ─────────────────────────────────────────── */
.now-section { padding: 80px 0; }

.now-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 3rem;
}

.now-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 32px;
}

.now-card-label {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
}

.now-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.now-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.now-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.now-card ul li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 14px;
    position: relative;
}

.now-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72rem;
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: var(--accent);
    transform: rotate(45deg);
}

.now-updated {
    margin-top: 3rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-bg-img {
        width: min(64vw, 620px);
        opacity: 0.68;
    }

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

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

    .brasa-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 32px;
    }

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

@media (max-width: 640px) {
    .container { padding: 0 20px; }

    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-actions { gap: 8px; }
    .lang-btn { padding: 4px 8px; font-size: 0.65rem; }

    .hero {
        min-height: auto;
        padding-top: 88px;
        padding-bottom: 56px;
    }

    .hero h1 { font-size: 2rem; }

    .hero-bg-img {
        width: 100%;
        opacity: 0.34;
        object-position: 62% top;
    }

    .hero-vignette {
        background:
            linear-gradient(180deg, rgba(8, 9, 14, 0.72) 0%, rgba(8, 9, 14, 0.8) 36%, rgba(8, 9, 14, 0.92) 100%);
    }

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

    .story-section,
    .signals-section,
    .review-section,
    .brasa-section,
    .contact-section {
        padding: 72px 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .brasa-card {
        padding: 32px 24px;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 48px 0;
    }
}

/* ╔══════════════════════════════════════════════════════════════════╗
   ║  DRAMATIC VISUAL LAYER — "cair o queixo" upgrade                ║
   ║  Layered on top of existing styles. Tokens stay the same.       ║
   ╚══════════════════════════════════════════════════════════════════╝ */

:root {
    --accent-2: #8b6914;
    --accent-2-glow: rgba(139, 105, 20, 0.22);
    --accent-cyan: #8b6914;
    --grad-accent: linear-gradient(110deg, #f0d896 0%, #d4a853 45%, #a87a2e 100%);
    --grad-aurora-1: radial-gradient(60% 50% at 20% 30%, rgba(212, 168, 83, 0.32), transparent 65%);
    --grad-aurora-2: radial-gradient(50% 50% at 85% 18%, rgba(212, 168, 83, 0.20), transparent 65%);
    --grad-aurora-3: radial-gradient(55% 45% at 70% 78%, rgba(139, 105, 20, 0.18), transparent 70%);
    --grad-aurora-4: radial-gradient(40% 40% at 12% 80%, rgba(92, 225, 216, 0.16), transparent 70%);
    --shadow-glass: 0 30px 80px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -28px rgba(0, 0, 0, 0.85);
}

/* ── Aurora animated background ────────────────────── */
html body::before {
    background:
        var(--grad-aurora-1),
        var(--grad-aurora-2),
        var(--grad-aurora-3),
        var(--grad-aurora-4),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%);
    background-size: 200% 200%, 220% 220%, 200% 220%, 180% 180%, 100% 100%;
    background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%, 0 0;
    animation: auroraDrift 32s ease-in-out infinite alternate;
    will-change: background-position;
}

@keyframes auroraDrift {
    0%   { background-position: 0% 10%, 100% 0%, 100% 100%, 0% 100%, 0 0; }
    50%  { background-position: 18% 28%, 78% 22%, 70% 70%, 16% 80%, 0 0; }
    100% { background-position: 30% 10%, 70% 0%, 100% 80%, 6% 96%, 0 0; }
}

/* ── Cinematic typography ──────────────────────────── */
.hero h1 {
    font-family: var(--font-display) !important;
    font-size: clamp(3rem, 9vw, 6.6rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.035em !important;
    font-weight: 600 !important;
    font-variation-settings: 'opsz' 96 !important;
    margin-bottom: 1.5rem !important;
}

.page-hero h1 {
    font-family: var(--font-display) !important;
    font-size: clamp(2.4rem, 6.4vw, 4.6rem) !important;
    line-height: 1 !important;
    letter-spacing: -0.03em !important;
    font-weight: 600 !important;
    font-variation-settings: 'opsz' 72 !important;
}

.hero h1 .accent,
.story-column h2 .accent,
.page-hero h1 .accent {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 220% 220%;
    animation: gradShift 12s ease-in-out infinite;
}

@keyframes gradShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.hero-greeting {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 7px 16px 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-hover);
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 30px -16px rgba(0, 0, 0, 0.5);
}

.hero-greeting::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 0;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: greetingPulse 2s step-end infinite;
}

@keyframes greetingPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

.story-column h2,
.signals-section .section-header h2,
.brasa-content h2,
.contact-section h2 {
    font-size: clamp(1.85rem, 3.4vw, 2.7rem) !important;
    letter-spacing: -0.028em !important;
    line-height: 1.08 !important;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.2rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.035em !important;
}

/* ── Meta pills upgrade ────────────────────────────── */
.meta-pill {
    background: transparent;
    border-color: var(--border-subtle);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    transition: all 0.4s var(--ease-out);
}

.meta-pill::before {
    display: none;
}

.meta-pill:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(0, 229, 255, 0.05);
}

/* ── Marquee credential strip ──────────────────────── */
.marquee {
    position: relative;
    padding: 28px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: marqueeScroll 38s linear infinite;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.marquee-item .dot {
    width: 4px;
    height: 4px;
    border-radius: 0;
    background: var(--text-muted);
    opacity: 0.5;
    flex-shrink: 0;
}

.marquee-item strong {
    color: var(--accent);
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── Signal cards: glass + animated gradient border ── */
.signal-card {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: var(--shadow-card);
    position: relative;
    isolation: isolate;
}

.signal-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg), transparent 0deg, var(--accent) 90deg, transparent 180deg, var(--cta) 270deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    animation: spinBorder 6s linear infinite;
}

@property --angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes spinBorder {
    to { --angle: 360deg; }
}

.signal-card:hover::after { opacity: 1; }

.signal-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(212, 168, 83, 0.18);
}

.signal-card h3 {
    background: linear-gradient(180deg, #ffffff, #c8c2bc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

/* ── Credential cards (story section) glass treatment ─ */
.cred-item {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.cred-item:hover {
    border-color: rgba(212, 168, 83, 0.35);
    transform: translateY(-1px);
}

/* ── Brasa CTA card glow upgrade ───────────────────── */
.brasa-card {
    background:
        radial-gradient(70% 100% at 100% 0%, rgba(232, 115, 74, 0.18), transparent 60%),
        radial-gradient(60% 90% at 0% 100%, rgba(212, 168, 83, 0.12), transparent 60%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(232, 115, 74, 0.22) !important;
    box-shadow: var(--shadow-glass), 0 0 0 0 transparent;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.brasa-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(232, 115, 74, 0.10) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.brasa-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glass), 0 0 60px -20px rgba(232, 115, 74, 0.35);
}

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

/* ── Section headings: section-label dramatic ──────── */
.section-label,
.page-hero .page-label,
.now-card-label,
.story-highlight .highlight-label {
    position: relative;
    padding-left: 28px;
}

.section-label::before,
.page-hero .page-label::before,
.now-card-label::before,
.story-highlight .highlight-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 18px;
    height: 1px;
    background: var(--accent);
    transform: translateY(-50%);
}

.story-highlight .highlight-label::before { background: var(--brasa-accent); }
.now-card-label::before { background: var(--accent); }

/* ── Stat block (optional addition to story) ──────── */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-subtle);
}

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

.stat-num {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

@media (max-width: 720px) {
    .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ── Review section (existing) glass upgrade ───────── */
.review-card {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: var(--shadow-card);
}

/* ── Essay cards glass ─────────────────────────────── */
.essay-card {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: var(--shadow-card);
}

.essay-card:hover {
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(212, 168, 83, 0.22);
}

/* ── Nav: subtle glow on logo ───────────────────────── */
.nav-brand span {
    position: relative;
}

.nav-brand span::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background: var(--grad-accent);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.nav-brand:hover span::after { transform: scaleX(1); }

/* ── Page hero gradient orb ─────────────────────────── */
.page-hero {
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, var(--accent-glow), transparent 65%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

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

/* ── Smooth reveal stagger ──────────────────────────── */
.signals-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.signals-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.signals-grid .reveal:nth-child(3) { transition-delay: 0.25s; }
.cred-list .reveal:nth-child(1) { transition-delay: 0.05s; }
.cred-list .reveal:nth-child(2) { transition-delay: 0.10s; }
.cred-list .reveal:nth-child(3) { transition-delay: 0.15s; }
.cred-list .reveal:nth-child(4) { transition-delay: 0.20s; }
.cred-list .reveal:nth-child(5) { transition-delay: 0.25s; }
.cred-list .reveal:nth-child(6) { transition-delay: 0.30s; }

/* ── Selection style ────────────────────────────────── */
::selection {
    background: rgba(212, 168, 83, 0.32);
    color: var(--text-primary);
}

/* ── Scrollbar (webkit) ─────────────────────────────── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--cta));
    border-radius: 10px;
    border: 2px solid var(--bg-primary);
}

/* ── Reduced motion respect ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html body::before { animation: none; }
    .hero h1 .accent { animation: none; }
    .marquee-track { animation: none; }
    .signal-card::after { animation: none; }
    .hero-greeting::before { animation: none; }
}

/* ╔══════════════════════════════════════════════════════════════════╗
   ║  EXECUTIVE EDITORIAL REDESIGN — home page                       ║
   ╚══════════════════════════════════════════════════════════════════╝ */

:root {
    --bg-primary: #07080b;
    --bg-secondary: #0d1116;
    --bg-card: #10151b;
    --bg-card-hover: #151b23;
    --text-primary: #f4f0e8;
    --text-secondary: #c7c0b5;
    --text-muted: #8f887e;
    --accent: #36b5a0;
    --accent-soft: rgba(54, 181, 160, 0.1);
    --accent-glow: rgba(54, 181, 160, 0.18);
    --cta: #d4a853;
    --cta-text: #12100a;
    --cta-soft: rgba(212, 168, 83, 0.12);
    --border-subtle: rgba(244, 240, 232, 0.09);
    --border-hover: rgba(244, 240, 232, 0.18);
    --radius: 8px;
    --radius-sm: 8px;
}

html body {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 96px 96px,
        linear-gradient(180deg, #07080b 0%, #0b0f14 48%, #07080b 100%);
    color: var(--text-primary);
}

html body::before {
    background:
        linear-gradient(115deg, rgba(54, 181, 160, 0.11), transparent 34%),
        linear-gradient(245deg, rgba(212, 168, 83, 0.09), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 44%);
    animation: none;
}

.container {
    max-width: 1180px;
    padding: 0 28px;
}

body[data-page="index"] .reveal {
    opacity: 1;
    transform: none;
}

header {
    padding: 14px 0;
    background: rgba(7, 8, 11, 0.78);
    border-bottom-color: rgba(244, 240, 232, 0.08);
}

.nav-brand {
    font-size: 1rem;
    letter-spacing: 0;
}

.nav-brand span,
.nav-links a:hover,
.legal-links a:hover {
    color: var(--accent);
}

.nav-links {
    gap: 26px;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
}

.nav-cta {
    border-radius: 8px;
    border-color: rgba(212, 168, 83, 0.35);
    color: var(--cta);
    background: rgba(212, 168, 83, 0.06);
}

.lang-btn {
    border-radius: 6px;
}

.lang-btn.active {
    color: var(--text-primary);
    border-color: rgba(54, 181, 160, 0.45);
    background: rgba(54, 181, 160, 0.1);
}

.section-label,
.section-kicker,
.page-hero .page-label,
.now-card-label,
.story-highlight .highlight-label {
    padding-left: 0;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-label::before,
.section-kicker::before,
.page-hero .page-label::before,
.now-card-label::before,
.story-highlight .highlight-label::before,
.nav-brand span::after {
    display: none;
}

.executive-hero {
    min-height: 82svh;
    align-items: center;
    padding: 104px 0 44px;
    background:
        linear-gradient(90deg, rgba(7, 8, 11, 0.94) 0%, rgba(7, 8, 11, 0.76) 52%, rgba(7, 8, 11, 0.32) 100%),
        linear-gradient(180deg, rgba(244, 240, 232, 0.045), transparent 58%);
}

.executive-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(244, 240, 232, 0.22), transparent);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: clamp(36px, 6vw, 78px);
    align-items: center;
}

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

.hero h1 {
    max-width: 700px;
    margin: 0 0 22px !important;
    color: var(--text-primary);
    font-family: var(--font-heading) !important;
    font-size: clamp(2.9rem, 5.8vw, 5.25rem) !important;
    font-weight: 600 !important;
    line-height: 0.96 !important;
    letter-spacing: 0 !important;
    text-wrap: balance;
}

.hero-intro {
    max-width: 650px;
    margin: 0 0 28px;
    color: var(--text-secondary);
    font-size: clamp(1.05rem, 1.45vw, 1.25rem);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-link {
    min-height: 48px;
    border-radius: 8px;
    padding: 13px 18px;
    font-size: 0.88rem;
    font-weight: 650;
    letter-spacing: 0;
}

.hero-link.primary,
.contact-link-primary {
    background: var(--cta);
    border-color: var(--cta);
    color: var(--cta-text);
    box-shadow: 0 18px 48px -26px rgba(212, 168, 83, 0.9);
}

.hero-link.primary:hover,
.contact-link-primary:hover {
    background: #e6bd67;
    border-color: #e6bd67;
    color: var(--cta-text);
    box-shadow: 0 24px 52px -28px rgba(212, 168, 83, 1);
}

.hero-link.secondary,
.contact-link {
    border-color: rgba(244, 240, 232, 0.16);
    background: rgba(244, 240, 232, 0.035);
    color: var(--text-primary);
}

.hero-link.secondary:hover,
.contact-link:hover {
    border-color: rgba(54, 181, 160, 0.45);
    background: rgba(54, 181, 160, 0.08);
    color: var(--text-primary);
}

.hero-assurance {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    max-width: 680px;
    margin-top: 28px;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.hero-assurance span {
    min-height: 64px;
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    line-height: 1.45;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-right: 1px solid var(--border-subtle);
}

.hero-assurance span:first-child {
    padding-left: 0;
}

.hero-assurance span:last-child {
    border-right: 0;
}

.hero-portrait {
    position: relative;
    justify-self: end;
    width: min(100%, 390px);
}

.portrait-frame {
    aspect-ratio: 0.78;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(244, 240, 232, 0.16);
    background: #10151b;
    box-shadow: 0 44px 120px -70px rgba(0, 0, 0, 0.95);
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: saturate(0.92) contrast(1.04);
}

.portrait-card {
    width: min(88%, 340px);
    margin: -72px 0 0 auto;
    padding: 20px;
    border: 1px solid rgba(244, 240, 232, 0.14);
    border-radius: 8px;
    background: rgba(11, 15, 20, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 28px 80px -44px rgba(0, 0, 0, 0.95);
    position: relative;
}

.portrait-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.portrait-card strong {
    display: block;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    line-height: 1.22;
    letter-spacing: 0;
}

.portrait-card p {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.58;
}

.trust-strip {
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(244, 240, 232, 0.025);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-item {
    min-height: 138px;
    padding: 28px 28px 26px 0;
    border-right: 1px solid var(--border-subtle);
}

.trust-item:last-child {
    border-right: 0;
}

.trust-item strong {
    display: block;
    margin-bottom: 14px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 0.92;
    letter-spacing: 0;
}

.trust-item span {
    display: block;
    max-width: 210px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.5;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.editorial-section,
.signals-section,
.proof-section,
.brasa-section,
.writing-preview,
.contact-section {
    padding: clamp(82px, 11vw, 142px) 0;
    border-top: 0;
}

.story-layout {
    display: grid;
    grid-template-columns: 0.26fr 0.9fr 0.72fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.story-lede h2,
.section-header h2,
.proof-copy h2,
.brasa-content h2,
.writing-intro h2,
.contact-section h2 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.6vw, 4.25rem) !important;
    font-weight: 600;
    line-height: 1.02 !important;
    letter-spacing: 0 !important;
    text-wrap: balance;
}

.story-lede h2,
.proof-copy h2 {
    margin: 0;
}

.story-lede p,
.story-body p,
.section-header p,
.proof-copy p,
.brasa-content p,
.writing-intro p,
.contact-section .contact-sub {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.75;
}

.story-body {
    padding-top: 8px;
}

.story-body p + p {
    margin-top: 22px;
}

.signals-section {
    background:
        linear-gradient(180deg, rgba(244, 240, 232, 0.025), rgba(244, 240, 232, 0.01));
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.signals-section .section-header {
    display: grid;
    grid-template-columns: 0.9fr 1.15fr;
    gap: 52px;
    align-items: end;
    margin-bottom: 42px;
}

.signals-section .section-header .section-label {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.signals-section .section-header h2 {
    margin: 0;
}

.signals-section .section-header p {
    max-width: 520px;
    margin: 0;
}

.signals-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
}

.signal-card {
    min-height: 330px;
    padding: 34px;
    border: 0 !important;
    border-radius: 0;
    background: rgba(7, 8, 11, 0.68) !important;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.signal-card::before,
.signal-card::after,
.review-card::before,
.brasa-card::before {
    display: none;
}

.signal-card:hover {
    background: rgba(13, 17, 22, 0.96) !important;
    box-shadow: none;
    transform: translateY(-3px) !important;
}

.signal-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 30px;
    color: var(--accent);
}

.signal-card h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: 1.28rem;
    line-height: 1.18;
    letter-spacing: 0;
}

.signal-card p {
    max-width: 31ch;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.proof-layout,
.writing-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: clamp(40px, 7vw, 96px);
    align-items: start;
}

.proof-copy {
    position: sticky;
    top: 110px;
}

.proof-copy .section-label,
.writing-intro .section-label,
.brasa-content .section-label,
.contact-section .section-label {
    margin-bottom: 18px;
}

.proof-copy p,
.writing-intro p {
    margin-top: 22px;
    max-width: 520px;
}

.proof-ledger {
    border-top: 1px solid var(--border-subtle);
}

.ledger-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 26px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.ledger-row span {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.5;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ledger-row strong {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(1.06rem, 1.55vw, 1.35rem);
    font-weight: 550;
    line-height: 1.35;
    letter-spacing: 0;
}

.brasa-section {
    padding-top: 0;
}

.brasa-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 42px;
    padding: clamp(34px, 6vw, 64px);
    border-radius: 8px;
    border: 1px solid rgba(232, 115, 74, 0.24) !important;
    background:
        linear-gradient(135deg, rgba(232, 115, 74, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(244, 240, 232, 0.045), rgba(244, 240, 232, 0.016)) !important;
    box-shadow: 0 36px 110px -80px rgba(0, 0, 0, 0.95);
}

.brasa-card:hover {
    transform: translateY(-2px);
}

.brasa-card::after {
    display: none;
}

.brasa-content {
    max-width: 760px;
}

.brasa-content .section-label {
    color: var(--brasa-accent);
}

.brasa-content h2 {
    max-width: 780px;
    margin-bottom: 18px;
}

.brasa-cta {
    min-height: 50px;
    padding: 14px 18px;
    border-radius: 8px;
    background: var(--brasa-accent);
    color: #130c08;
}

.writing-preview {
    border-top: 1px solid var(--border-subtle);
}

.writing-list {
    border-top: 1px solid var(--border-subtle);
}

.writing-row {
    display: grid;
    grid-template-columns: 150px 1fr 22px;
    gap: 24px;
    align-items: center;
    min-height: 104px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.writing-row > span:first-child {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    line-height: 1.5;
    text-transform: uppercase;
}

.writing-row strong {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(1.08rem, 1.6vw, 1.35rem);
    font-weight: 550;
    line-height: 1.3;
}

.writing-row:hover strong,
.writing-row:hover .icon-slot {
    color: var(--accent);
}

.contact-section {
    padding-top: 0;
}

.contact-panel {
    text-align: left;
}

.contact-panel > div {
    max-width: 860px;
    padding-top: clamp(72px, 9vw, 116px);
    border-top: 1px solid var(--border-subtle);
}

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

.contact-section .contact-sub {
    max-width: 690px;
    margin: 0 0 34px;
}

.contact-links {
    justify-content: flex-start;
    gap: 12px;
}

.contact-link {
    min-height: 48px;
    border-radius: 8px;
    padding: 13px 18px;
    font-weight: 650;
}

footer {
    padding: 38px 0;
    background: #07080b;
}

.footer-inner {
    border-top: 1px solid rgba(244, 240, 232, 0.08);
    padding-top: 28px;
}

@media (max-width: 980px) {
    .hero-grid,
    .story-layout,
    .signals-section .section-header,
    .proof-layout,
    .writing-layout,
    .brasa-card {
        grid-template-columns: 1fr;
    }

    .hero-portrait {
        justify-self: start;
        width: min(100%, 520px);
    }

    .portrait-frame {
        aspect-ratio: 1.02;
    }

    .proof-copy {
        position: static;
    }

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

    .signal-card {
        min-height: auto;
    }

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

    .trust-item:nth-child(2) {
        border-right: 0;
    }

    .trust-item:nth-child(n + 3) {
        border-top: 1px solid var(--border-subtle);
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    header {
        padding: 12px 0;
    }

    .nav {
        gap: 14px;
    }

    .nav-actions {
        gap: 6px;
    }

    .executive-hero {
        min-height: auto;
        padding: 92px 0 48px;
    }

    .hero h1 {
        font-size: clamp(2.45rem, 15vw, 4rem) !important;
    }

    .hero-intro {
        font-size: 1rem;
        line-height: 1.65;
    }

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

    .hero-link,
    .contact-link {
        justify-content: center;
        width: 100%;
    }

    .hero-assurance {
        grid-template-columns: 1fr;
    }

    .hero-assurance span {
        min-height: auto;
        padding: 12px 0;
        border-right: 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    .hero-assurance span:last-child {
        border-bottom: 0;
    }

    .portrait-card {
        width: calc(100% - 24px);
        margin-top: -46px;
    }

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

    .trust-item {
        min-height: auto;
        padding: 24px 0;
        border-right: 0;
        border-top: 1px solid var(--border-subtle);
    }

    .trust-item:first-child {
        border-top: 0;
    }

    .editorial-section,
    .signals-section,
    .proof-section,
    .brasa-section,
    .writing-preview,
    .contact-section {
        padding: 68px 0;
    }

    .brasa-section,
    .contact-section {
        padding-top: 0;
    }

    .story-lede h2,
    .section-header h2,
    .proof-copy h2,
    .brasa-content h2,
    .writing-intro h2,
    .contact-section h2 {
        font-size: clamp(2rem, 11vw, 3rem) !important;
    }

    .signal-card {
        padding: 28px 24px;
    }

    .ledger-row,
    .writing-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .writing-row {
        min-height: auto;
    }

    .writing-row .icon-slot {
        display: none;
    }

    .footer-inner {
        align-items: flex-start;
        text-align: left;
    }
}

/* ── Final identity lock: carbon + brass, background portrait hero ── */
:root {
    --bg-primary: #050504;
    --bg-secondary: #0c0b09;
    --bg-card: #12100d;
    --bg-card-hover: #181510;
    --text-primary: #f4efe6;
    --text-secondary: #c9c0b2;
    --text-muted: #8e8578;
    --accent: #b9935a;
    --accent-soft: rgba(185, 147, 90, 0.12);
    --accent-glow: rgba(185, 147, 90, 0.18);
    --cta: #b9935a;
    --cta-text: #100c07;
    --cta-soft: rgba(185, 147, 90, 0.12);
    --border-subtle: rgba(244, 239, 230, 0.11);
    --border-hover: rgba(185, 147, 90, 0.38);
    --font-heading: 'IBM Plex Sans', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-display: 'IBM Plex Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

html body {
    background:
        linear-gradient(90deg, rgba(244, 239, 230, 0.016) 1px, transparent 1px) 0 0 / 112px 112px,
        linear-gradient(180deg, #050504 0%, #0a0908 44%, #050504 100%);
}

html body::before {
    background:
        linear-gradient(115deg, rgba(185, 147, 90, 0.075), transparent 34%),
        linear-gradient(180deg, rgba(244, 239, 230, 0.02), transparent 42%);
}

.nav-cta {
    border-color: rgba(185, 147, 90, 0.42);
    color: var(--accent);
    background: rgba(185, 147, 90, 0.06);
}

.nav-cta:hover {
    background: rgba(185, 147, 90, 0.12);
    border-color: var(--accent);
}

.lang-btn.active {
    color: var(--text-primary);
    border-color: rgba(185, 147, 90, 0.48);
    background: rgba(185, 147, 90, 0.1);
}

.ui-icon-svg .icon-accent {
    stroke: currentColor;
}

.ui-icon-svg .icon-accent-fill {
    fill: currentColor;
}

.executive-hero {
    min-height: 92svh;
    isolation: isolate;
    overflow: hidden;
    padding: 118px 0 64px;
    background: #050504;
}

.executive-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(5, 5, 4, 1) 0%, rgba(5, 5, 4, 0.98) 31%, rgba(5, 5, 4, 0.86) 48%, rgba(5, 5, 4, 0.36) 70%, rgba(5, 5, 4, 0.1) 88%, rgba(5, 5, 4, 0.3) 100%),
        linear-gradient(180deg, rgba(5, 5, 4, 0.05) 0%, rgba(5, 5, 4, 0.1) 52%, rgba(5, 5, 4, 0.9) 100%);
    pointer-events: none;
}

.executive-hero::after {
    background: linear-gradient(90deg, transparent, rgba(185, 147, 90, 0.22), transparent);
}

.hero-grid {
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: min(620px, 48vw);
}

.hero h1 {
    max-width: 620px;
    font-size: clamp(3rem, 5.15vw, 5.05rem) !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

.hero-intro {
    max-width: 610px;
}

.hero-portrait {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: -2;
    width: min(61vw, 960px);
    height: 100%;
    pointer-events: none;
}

.hero-portrait::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 5, 4, 0.98) 0%, rgba(5, 5, 4, 0.82) 24%, rgba(5, 5, 4, 0.22) 56%, rgba(5, 5, 4, 0.1) 78%, rgba(5, 5, 4, 0.22) 100%),
        linear-gradient(180deg, rgba(5, 5, 4, 0.02) 0%, rgba(5, 5, 4, 0.08) 56%, rgba(5, 5, 4, 0.78) 100%);
}

.portrait-frame {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    background: #050504;
    box-shadow: none;
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.82;
    filter: saturate(0.86) contrast(1.04) brightness(0.84);
}

.portrait-card {
    display: none;
}

.hero-link.primary,
.contact-link-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--cta-text);
    box-shadow: 0 20px 54px -30px rgba(185, 147, 90, 0.9);
}

.hero-link.primary:hover,
.contact-link-primary:hover {
    background: #d0ad70;
    border-color: #d0ad70;
    color: var(--cta-text);
    box-shadow: 0 24px 58px -30px rgba(185, 147, 90, 1);
}

.hero-link.secondary,
.contact-link {
    border-color: rgba(244, 239, 230, 0.16);
    background: rgba(244, 239, 230, 0.028);
}

.hero-assurance,
.trust-strip,
.signals-grid,
.proof-ledger,
.writing-list,
.contact-panel > div,
.footer-inner {
    border-color: var(--border-subtle);
}

.trust-strip,
.signals-section {
    background: rgba(244, 239, 230, 0.018);
}

.trust-item,
.hero-assurance span,
.ledger-row,
.writing-row {
    border-color: var(--border-subtle);
}

.signal-card {
    background: rgba(5, 5, 4, 0.74) !important;
}

.signal-card:hover {
    background: rgba(15, 13, 10, 0.96) !important;
}

.brasa-card {
    border-color: rgba(232, 115, 74, 0.22) !important;
    background:
        linear-gradient(135deg, rgba(232, 115, 74, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(244, 239, 230, 0.035), rgba(244, 239, 230, 0.012)) !important;
}

.brasa-cta {
    background: var(--brasa-accent);
    color: #130c08;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
}

@media (max-width: 980px) {
    .executive-hero {
        min-height: 88svh;
    }

    .hero-content {
        max-width: min(620px, 60vw);
    }

    .hero-portrait {
        width: min(64vw, 820px);
    }

    .portrait-frame {
        aspect-ratio: auto;
    }
}

@media (max-width: 640px) {
    .executive-hero {
        min-height: auto;
        padding: 88px 0 42px;
    }

    .executive-hero::before {
        background:
            linear-gradient(180deg, rgba(5, 5, 4, 0.8) 0%, rgba(5, 5, 4, 0.93) 36%, #050504 68%),
            linear-gradient(90deg, rgba(5, 5, 4, 0.94), rgba(5, 5, 4, 0.42));
    }

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

    .hero h1 {
        font-size: clamp(2.45rem, 13.4vw, 3.7rem) !important;
    }

    .hero-portrait {
        position: relative;
        z-index: 1;
        width: calc(100% + 40px);
        height: 360px;
        margin: 34px -20px -42px;
    }

    .hero-portrait::after {
        background:
            linear-gradient(180deg, rgba(5, 6, 7, 0.1) 0%, rgba(5, 6, 7, 0.2) 48%, rgba(5, 6, 7, 0.68) 100%);
    }

    .portrait-frame {
        border-top: 1px solid rgba(244, 239, 230, 0.12);
        border-bottom: 1px solid rgba(244, 239, 230, 0.12);
    }

    .portrait-frame img {
        object-position: center 12%;
        opacity: 0.68;
    }
}

/* Final homepage polish: modern navigation, concise hero, visual profile cards */
header {
    border-bottom: 1px solid rgba(244, 239, 230, 0.08);
    background: rgba(5, 5, 4, 0.7);
    backdrop-filter: blur(22px);
}

.nav {
    min-height: 78px;
}

.nav-brand {
    letter-spacing: -0.02em;
}

.nav-links {
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(244, 239, 230, 0.1);
    border-radius: 999px;
    background: rgba(244, 239, 230, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-links a {
    padding: 9px 14px;
    border-radius: 999px;
    color: rgba(244, 239, 230, 0.74);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
}

.nav-links a::after {
    display: none;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(244, 239, 230, 0.08);
}

.lang-switcher {
    gap: 2px;
    padding: 4px;
    border: 1px solid rgba(244, 239, 230, 0.1);
    border-radius: 999px;
    background: rgba(244, 239, 230, 0.045);
}

.lang-btn {
    width: auto;
    min-width: 38px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.76rem;
    letter-spacing: 0.02em;
}

.lang-btn.active {
    background: rgba(185, 147, 90, 0.18);
    box-shadow: inset 0 0 0 1px rgba(185, 147, 90, 0.32);
}

.nav-cta {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}

.executive-hero {
    min-height: 90svh;
    padding-top: 124px;
}

.executive-hero .hero-container {
    position: static;
}

.executive-hero::before {
    background:
        linear-gradient(90deg, rgba(5, 5, 4, 1) 0%, rgba(5, 5, 4, 0.98) 25%, rgba(5, 5, 4, 0.78) 46%, rgba(5, 5, 4, 0.28) 68%, rgba(5, 5, 4, 0.08) 86%, rgba(5, 5, 4, 0.28) 100%),
        linear-gradient(180deg, rgba(5, 5, 4, 0.03) 0%, rgba(5, 5, 4, 0.08) 52%, rgba(5, 5, 4, 0.9) 100%);
}

.hero-content {
    max-width: min(780px, 54vw);
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(4.2rem, 7.6vw, 8.4rem) !important;
    line-height: 0.9 !important;
    font-weight: 650 !important;
}

.hero-intro {
    max-width: 690px;
    margin-top: 24px;
    font-size: clamp(1.06rem, 1.22vw, 1.28rem);
    line-height: 1.58;
}

.portrait-frame img {
    opacity: 0.9;
    filter: saturate(0.9) contrast(1.04) brightness(0.9);
}

.hero-portrait {
    width: min(68vw, 1040px);
    height: 100%;
}

.hero-actions {
    gap: 12px;
    margin-top: 38px;
}

.hero-link {
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 0.98rem;
    letter-spacing: 0;
    box-shadow: none;
}

.hero-actions .icon-slot {
    display: none;
}

.hero-link.primary::after {
    content: "→";
    margin-left: 10px;
    font-size: 1.1em;
    transform: translateY(-1px);
}

.hero-link.secondary {
    color: var(--text-primary);
    background: rgba(244, 239, 230, 0.065);
}

.hero-link.secondary:hover {
    background: rgba(244, 239, 230, 0.1);
}

.hero-assurance {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 760px;
    margin-top: 24px;
    border: 0;
}

.hero-assurance span {
    min-height: 0;
    padding: 9px 13px;
    border: 1px solid rgba(244, 239, 230, 0.12);
    border-radius: 999px;
    background: rgba(244, 239, 230, 0.05);
    color: rgba(244, 239, 230, 0.82);
    font-size: 0.82rem;
    letter-spacing: 0;
    text-transform: none;
}

.trust-strip {
    padding: 26px 0 10px;
    border: 0;
    background: transparent;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    border: 0;
}

.trust-item {
    min-height: 118px;
    padding: 20px;
    border: 1px solid rgba(244, 239, 230, 0.1);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(244, 239, 230, 0.06), rgba(244, 239, 230, 0.018)),
        rgba(5, 5, 4, 0.42);
    box-shadow: 0 18px 60px -52px rgba(0, 0, 0, 0.8);
}

.trust-item strong {
    font-size: clamp(2rem, 3vw, 3.4rem);
    letter-spacing: -0.04em;
}

.trust-item span {
    max-width: 16ch;
    color: rgba(244, 239, 230, 0.68);
    letter-spacing: 0;
    text-transform: none;
}

.signals-section {
    background:
        radial-gradient(circle at 16% 0%, rgba(185, 147, 90, 0.11), transparent 28%),
        rgba(244, 239, 230, 0.012);
}

.signals-grid {
    counter-reset: signal;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    border: 0;
    background: transparent;
}

.signal-card {
    position: relative;
    counter-increment: signal;
    min-height: 304px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(244, 239, 230, 0.1) !important;
    border-radius: 22px;
    background:
        linear-gradient(160deg, rgba(244, 239, 230, 0.074), rgba(244, 239, 230, 0.018) 48%, rgba(185, 147, 90, 0.07)),
        rgba(8, 7, 6, 0.72) !important;
    box-shadow: 0 26px 80px -64px rgba(0, 0, 0, 0.88);
}

.signal-card::before {
    content: "0" counter(signal);
    display: block;
    position: static;
    width: auto;
    height: auto;
    margin-bottom: 54px;
    border: 0;
    background: none;
    color: rgba(185, 147, 90, 0.92);
    font-family: var(--font-mono);
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    opacity: 1;
    transform: none;
}

.signal-card::after {
    content: "";
    position: absolute;
    inset: auto 24px 24px auto;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(185, 147, 90, 0.18);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185, 147, 90, 0.14), transparent 68%);
    opacity: 0.8;
}

.signal-icon {
    display: none;
}

.signal-card h3 {
    max-width: 15ch;
    font-size: clamp(1.28rem, 1.7vw, 1.72rem);
    line-height: 1.06;
    letter-spacing: -0.025em;
}

.signal-card p {
    max-width: 31ch;
    margin-top: 18px;
    color: rgba(244, 239, 230, 0.63);
    font-size: 0.98rem;
    line-height: 1.7;
}

.signal-card:hover {
    border-color: rgba(185, 147, 90, 0.34) !important;
    background:
        linear-gradient(160deg, rgba(244, 239, 230, 0.09), rgba(244, 239, 230, 0.024) 46%, rgba(185, 147, 90, 0.11)),
        rgba(12, 10, 8, 0.9) !important;
    transform: translateY(-4px);
}

.proof-ledger {
    border: 0;
    border-radius: 24px;
    background: transparent;
}

.ledger-row {
    margin-bottom: 12px;
    border: 1px solid rgba(244, 239, 230, 0.1);
    border-radius: 18px;
    background: rgba(244, 239, 230, 0.035);
}

.ledger-row:last-child {
    margin-bottom: 0;
}

@media (max-width: 1080px) {
    .hero-content {
        max-width: min(720px, 62vw);
    }

    .hero h1 {
        font-size: clamp(3.8rem, 8vw, 7.2rem) !important;
    }
}

@media (max-width: 980px) {
    .nav-links {
        display: none;
    }

    .hero-content {
        max-width: min(680px, 66vw);
    }

    .trust-grid,
    .signals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    header {
        background: rgba(5, 5, 4, 0.82);
    }

    .nav {
        min-height: 70px;
    }

    .nav-brand {
        font-size: 1rem;
    }

    .nav-actions {
        gap: 6px;
    }

    .lang-btn {
        min-width: 32px;
        height: 30px;
        font-size: 0.68rem;
    }

    .nav-cta {
        min-height: 38px;
        padding: 0 12px;
        font-size: 0.78rem;
    }

    .executive-hero {
        padding-top: 92px;
    }

    .executive-hero .hero-container {
        position: relative;
    }

    .hero h1 {
        max-width: 9ch;
        font-size: clamp(3.05rem, 15vw, 4.7rem) !important;
    }

    .hero-intro {
        max-width: 34ch;
        font-size: 1.02rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-link {
        width: 100%;
        justify-content: center;
    }

    .portrait-frame img {
        opacity: 0.78;
    }

    .trust-grid,
    .signals-grid {
        grid-template-columns: 1fr;
    }

    .trust-item {
        min-height: 104px;
    }

    .signal-card {
        min-height: 250px;
        padding: 26px;
    }

    .signal-card::before {
        margin-bottom: 36px;
    }
}

/* Reputation redesign lock: must stay last */
:root {
    --bg-primary: #f4f0e8;
    --bg-secondary: #ebe5da;
    --bg-card: #fffaf1;
    --bg-card-hover: #fffdf8;
    --text-primary: #171411;
    --text-secondary: #4f4941;
    --text-muted: #7b7167;
    --accent: #b8422d;
    --accent-soft: rgba(184, 66, 45, 0.1);
    --accent-glow: rgba(184, 66, 45, 0.18);
    --cta: #171411;
    --cta-text: #fffaf1;
    --border-subtle: rgba(23, 20, 17, 0.14);
    --border-hover: rgba(184, 66, 45, 0.34);
    --font-heading: 'Source Serif 4', Georgia, serif;
    --font-body: 'Manrope', system-ui, sans-serif;
    --font-display: 'Source Serif 4', Georgia, serif;
    --font-mono: 'Manrope', system-ui, sans-serif;
}

body[data-page="index"] {
    background: #f4f0e8;
    color: var(--text-primary);
    font-family: var(--font-body);
}

body[data-page="index"]::before {
    background:
        linear-gradient(90deg, rgba(23, 20, 17, 0.045) 1px, transparent 1px) 0 0 / 96px 96px,
        linear-gradient(180deg, rgba(255, 250, 241, 0.9), rgba(244, 240, 232, 0.4));
}

body[data-page="index"] header {
    border-bottom: 1px solid rgba(23, 20, 17, 0.1);
    background: rgba(244, 240, 232, 0.78);
    color: var(--text-primary);
}

body[data-page="index"] .nav-brand,
body[data-page="index"] .nav-links a,
body[data-page="index"] .lang-btn,
body[data-page="index"] .nav-cta,
body[data-page="index"] .hero-link,
body[data-page="index"] .contact-link {
    font-family: var(--font-body);
}

body[data-page="index"] .nav-brand {
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.03em;
}

body[data-page="index"] .nav-brand span,
body[data-page="index"] .section-label,
body[data-page="index"] .section-kicker,
body[data-page="index"] .proof-ledger span,
body[data-page="index"] .writing-row span {
    color: var(--accent);
}

body[data-page="index"] .nav-links {
    gap: 22px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body[data-page="index"] .nav-links a {
    padding: 0;
    color: rgba(23, 20, 17, 0.62);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body[data-page="index"] .nav-links a:hover {
    color: var(--text-primary);
    background: transparent;
}

body[data-page="index"] .lang-switcher {
    border-color: rgba(23, 20, 17, 0.12);
    background: rgba(255, 250, 241, 0.7);
}

body[data-page="index"] .lang-btn {
    color: rgba(23, 20, 17, 0.48);
}

body[data-page="index"] .lang-btn.active {
    color: #fffaf1;
    background: var(--text-primary);
    box-shadow: none;
}

body[data-page="index"] .nav-cta {
    color: var(--text-primary);
    border-color: rgba(23, 20, 17, 0.16);
    background: transparent;
}

body[data-page="index"] .executive-hero,
body[data-page="index"] .story-section,
body[data-page="index"] .signals-section,
body[data-page="index"] .proof-section,
body[data-page="index"] .writing-preview,
body[data-page="index"] .brasa-section,
body[data-page="index"] .trust-strip {
    background: #f4f0e8 !important;
}

body[data-page="index"] .executive-hero {
    min-height: 94svh;
    padding: 132px 0 56px;
}

body[data-page="index"] .executive-hero .hero-container {
    position: static;
}

body[data-page="index"] .executive-hero::before {
    background:
        linear-gradient(90deg, #f4f0e8 0%, rgba(244, 240, 232, 0.97) 24%, rgba(244, 240, 232, 0.58) 43%, rgba(244, 240, 232, 0.03) 64%, rgba(244, 240, 232, 0.18) 100%),
        linear-gradient(180deg, rgba(244, 240, 232, 0) 42%, #f4f0e8 100%);
}

body[data-page="index"] .executive-hero::after {
    display: none;
}

body[data-page="index"] .hero-content {
    max-width: min(720px, 52vw);
}

body[data-page="index"] .hero h1 {
    max-width: 720px;
    color: var(--text-primary);
    font-family: var(--font-body) !important;
    font-size: clamp(4.45rem, 7.7vw, 8.45rem) !important;
    font-weight: 800 !important;
    line-height: 0.9 !important;
    letter-spacing: -0.07em !important;
}

body[data-page="index"] .hero-intro {
    max-width: 610px;
    color: rgba(23, 20, 17, 0.76);
    font-size: clamp(1.05rem, 1.22vw, 1.22rem);
    line-height: 1.7;
}

body[data-page="index"] .hero-portrait {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: -2;
    width: min(58vw, 900px);
    height: 100%;
}

body[data-page="index"] .hero-portrait::after {
    background:
        linear-gradient(90deg, #f4f0e8 0%, rgba(244, 240, 232, 0.82) 15%, rgba(244, 240, 232, 0.18) 39%, rgba(244, 240, 232, 0) 70%, rgba(244, 240, 232, 0.26) 100%),
        linear-gradient(180deg, rgba(244, 240, 232, 0.04) 0%, rgba(244, 240, 232, 0.04) 62%, #f4f0e8 100%);
}

body[data-page="index"] .portrait-frame,
body[data-page="index"] .portrait-frame img {
    border: 0;
    border-radius: 0;
}

body[data-page="index"] .portrait-frame img {
    object-position: center top;
    opacity: 1;
    filter: saturate(0.94) contrast(1.05) brightness(0.98);
}

body[data-page="index"] .hero-link,
body[data-page="index"] .contact-link {
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

body[data-page="index"] .hero-actions .icon-slot {
    display: none;
}

body[data-page="index"] .hero-link.primary,
body[data-page="index"] .contact-link-primary {
    color: #fffaf1;
    border-color: var(--text-primary);
    background: var(--text-primary);
}

body[data-page="index"] .hero-link.primary::after,
body[data-page="index"] .contact-link-primary::after {
    content: "→";
    margin-left: 10px;
}

body[data-page="index"] .hero-link.secondary,
body[data-page="index"] .contact-link {
    color: var(--text-primary);
    border-color: rgba(23, 20, 17, 0.16);
    background: rgba(255, 250, 241, 0.62);
}

body[data-page="index"] .hero-assurance {
    border: 0;
}

body[data-page="index"] .hero-assurance span {
    color: rgba(23, 20, 17, 0.64);
    border-color: rgba(23, 20, 17, 0.13);
    background: rgba(255, 250, 241, 0.54);
    font-weight: 800;
}

body[data-page="index"] .trust-grid {
    border-top: 1px solid rgba(23, 20, 17, 0.14);
    gap: 0;
}

body[data-page="index"] .trust-item {
    border: 0;
    border-right: 1px solid rgba(23, 20, 17, 0.1);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body[data-page="index"] .trust-item strong,
body[data-page="index"] .story-lede h2,
body[data-page="index"] .section-header h2,
body[data-page="index"] .proof-copy h2,
body[data-page="index"] .writing-intro h2,
body[data-page="index"] .contact-panel h2,
body[data-page="index"] .brasa-card h2,
body[data-page="index"] .signal-card h3 {
    color: var(--text-primary);
    font-family: var(--font-heading) !important;
    font-weight: 650;
    letter-spacing: -0.045em;
}

body[data-page="index"] .trust-item strong {
    font-size: clamp(2.2rem, 3vw, 3.65rem);
    line-height: 0.95;
    letter-spacing: 0;
}

body[data-page="index"] .trust-item span,
body[data-page="index"] .story-lede p,
body[data-page="index"] .story-body p,
body[data-page="index"] .section-header p,
body[data-page="index"] .proof-copy p,
body[data-page="index"] .writing-intro p,
body[data-page="index"] .brasa-card p,
body[data-page="index"] .contact-sub,
body[data-page="index"] .signal-card p {
    color: rgba(23, 20, 17, 0.64);
}

body[data-page="index"] .story-layout {
    grid-template-columns: 0.68fr 1.18fr 0.88fr;
    border-top: 1px solid rgba(23, 20, 17, 0.13);
}

body[data-page="index"] .section-header {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
}

body[data-page="index"] .signals-grid,
body[data-page="index"] .proof-ledger,
body[data-page="index"] .writing-list {
    display: block;
    border: 0;
    border-top: 1px solid rgba(23, 20, 17, 0.14);
    background: transparent;
}

body[data-page="index"] .signal-card {
    display: grid;
    grid-template-columns: 92px 0.95fr 1fr;
    gap: clamp(20px, 4vw, 64px);
    min-height: 0;
    padding: 34px 0;
    border: 0 !important;
    border-bottom: 1px solid rgba(23, 20, 17, 0.14) !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
}

body[data-page="index"] .signal-card::after {
    display: none;
}

body[data-page="index"] .signal-card h3 {
    max-width: 20ch;
    font-size: clamp(1.7rem, 2.4vw, 2.65rem);
    line-height: 1;
}

body[data-page="index"] .signal-card p {
    max-width: 42ch;
    margin: 2px 0 0;
    font-size: 1rem;
    line-height: 1.72;
}

body[data-page="index"] .ledger-row,
body[data-page="index"] .writing-row {
    grid-template-columns: 180px 1fr;
    border: 0;
    border-bottom: 1px solid rgba(23, 20, 17, 0.14);
    border-radius: 0;
    background: transparent;
}

body[data-page="index"] .ledger-row strong,
body[data-page="index"] .writing-row strong {
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 800;
}

body[data-page="index"] .brasa-card {
    border: 0 !important;
    border-top: 1px solid rgba(23, 20, 17, 0.14) !important;
    border-bottom: 1px solid rgba(23, 20, 17, 0.14) !important;
    border-radius: 0;
    background: transparent !important;
}

body[data-page="index"] .contact-section,
body[data-page="index"] footer {
    color: #fffaf1;
    background: #171411;
}

body[data-page="index"] .contact-panel > div {
    border: 0;
    background: transparent;
}

body[data-page="index"] .contact-panel h2 {
    color: #fffaf1;
}

body[data-page="index"] .contact-sub {
    color: rgba(255, 250, 241, 0.68);
}

body[data-page="index"] .contact-links .contact-link {
    color: #fffaf1;
    border-color: rgba(255, 250, 241, 0.22);
    background: transparent;
}

body[data-page="index"] .contact-links .contact-link-primary {
    color: #171411;
    border-color: #fffaf1;
    background: #fffaf1;
}

@media (max-width: 980px) {
    body[data-page="index"] .story-layout,
    body[data-page="index"] .section-header,
    body[data-page="index"] .proof-layout,
    body[data-page="index"] .writing-layout {
        grid-template-columns: 1fr;
    }

    body[data-page="index"] .signal-card {
        grid-template-columns: 72px 1fr;
    }

    body[data-page="index"] .signal-card p {
        grid-column: 2;
    }
}

@media (max-width: 640px) {
    body[data-page="index"] .nav-cta {
        display: none;
    }

    body[data-page="index"] .executive-hero {
        min-height: auto;
        padding: 92px 0 0;
    }

    body[data-page="index"] .executive-hero .hero-container {
        position: relative;
    }

    body[data-page="index"] .hero-content {
        max-width: 100%;
    }

    body[data-page="index"] .hero h1 {
        max-width: 8.4ch;
        font-size: clamp(3.45rem, 17vw, 5.3rem) !important;
    }

    body[data-page="index"] .hero-portrait {
        position: relative;
        z-index: 1;
        width: calc(100% + 40px);
        height: 390px;
        margin: 40px -20px 0;
    }

    body[data-page="index"] .hero-portrait::after {
        background:
            linear-gradient(180deg, rgba(244, 240, 232, 0) 0%, rgba(244, 240, 232, 0.08) 58%, #f4f0e8 100%),
            linear-gradient(90deg, #f4f0e8 0%, rgba(244, 240, 232, 0.08) 20%, rgba(244, 240, 232, 0.08) 80%, #f4f0e8 100%);
    }

    body[data-page="index"] .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-page="index"] .trust-item {
        border-right: 0;
        border-bottom: 1px solid rgba(23, 20, 17, 0.12);
    }

    body[data-page="index"] .signal-card,
    body[data-page="index"] .ledger-row,
    body[data-page="index"] .writing-row,
    body[data-page="index"] .brasa-card {
        grid-template-columns: 1fr;
    }

    body[data-page="index"] .signal-card p {
        grid-column: auto;
    }
}

/* Hero emphasis, stronger proof strip and dark mode */
body[data-page="index"] {
    --font-hero: 'Sora', 'Manrope', system-ui, sans-serif;
}

body[data-page="index"] .theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(23, 20, 17, 0.14);
    border-radius: 999px;
    background: rgba(255, 250, 241, 0.7);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

body[data-page="index"] .theme-toggle:hover {
    border-color: rgba(23, 20, 17, 0.3);
    background: #fffaf1;
    transform: translateY(-1px);
}

body[data-page="index"] .theme-toggle-mark {
    position: relative;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: inset -5px -2px 0 rgba(255, 250, 241, 0.72);
}

body[data-page="index"][data-theme="dark"] .theme-toggle-mark {
    box-shadow:
        0 -7px 0 -5px currentColor,
        0 7px 0 -5px currentColor,
        7px 0 0 -5px currentColor,
        -7px 0 0 -5px currentColor,
        5px 5px 0 -5px currentColor,
        -5px 5px 0 -5px currentColor,
        5px -5px 0 -5px currentColor,
        -5px -5px 0 -5px currentColor;
}

body[data-page="index"] .hero h1 {
    font-family: var(--font-hero) !important;
    font-weight: 800 !important;
    letter-spacing: -0.075em !important;
}

body[data-page="index"] .hero-highlight {
    position: relative;
    display: inline-block;
    color: var(--text-primary);
    isolation: isolate;
}

body[data-page="index"] .hero-highlight::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -0.06em;
    right: -0.06em;
    bottom: 0.06em;
    height: 0.24em;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(184, 66, 45, 0.1), rgba(184, 66, 45, 0.42) 48%, rgba(184, 66, 45, 0.14));
    transform: skewX(-10deg);
}

body[data-page="index"] .hero-highlight::after {
    display: none;
    content: none;
}

body[data-page="index"] .trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-page="index"] .trust-item {
    display: grid;
    align-content: start;
    min-height: 174px;
    padding: 28px 24px 28px 0;
}

body[data-page="index"] .trust-item strong {
    font-family: var(--font-hero) !important;
    font-size: clamp(2.35rem, 3.35vw, 4.1rem);
    letter-spacing: -0.075em;
}

body[data-page="index"] .trust-item span {
    max-width: 23ch;
    margin-top: 16px;
    color: rgba(23, 20, 17, 0.76);
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.28;
}

body[data-page="index"] .trust-item small {
    display: block;
    max-width: 25ch;
    margin-top: 10px;
    color: rgba(23, 20, 17, 0.52);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.46;
}

body[data-page="index"] .certification-rail {
    padding: 28px 0 58px;
    background: #f4f0e8;
}

body[data-page="index"] .cert-rail-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

body[data-page="index"] .cert-rail-header p {
    max-width: 520px;
    margin: 0;
    color: rgba(23, 20, 17, 0.58);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
}

body[data-page="index"] .cert-marquee {
    display: flex;
    width: 100%;
    overflow: hidden;
    border-top: 1px solid rgba(23, 20, 17, 0.14);
    border-bottom: 1px solid rgba(23, 20, 17, 0.14);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

body[data-page="index"] .cert-track {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    padding: 14px 10px 14px 0;
    animation: certRail 44s linear infinite;
}

body[data-page="index"] .cert-track span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(23, 20, 17, 0.12);
    border-radius: 999px;
    background: rgba(255, 250, 241, 0.52);
    color: rgba(23, 20, 17, 0.72);
    font-size: 0.78rem;
    font-weight: 850;
    white-space: nowrap;
}

@keyframes certRail {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    body[data-page="index"] .cert-track {
        animation: none;
    }
}

body[data-page="index"][data-theme="dark"] {
    --bg-primary: #0f0d0a;
    --bg-secondary: #17130f;
    --bg-card: #1d1712;
    --bg-card-hover: #251e17;
    --text-primary: #fff6ea;
    --text-secondary: #d8cabb;
    --text-muted: #a99785;
    --accent: #f06d4f;
    --border-subtle: rgba(255, 246, 234, 0.16);
    --border-hover: rgba(240, 109, 79, 0.42);
    background: #0f0d0a;
    color: var(--text-primary);
}

body[data-page="index"][data-theme="dark"]::before {
    background:
        linear-gradient(90deg, rgba(255, 246, 234, 0.045) 1px, transparent 1px) 0 0 / 96px 96px,
        radial-gradient(circle at 72% 6%, rgba(240, 109, 79, 0.13), transparent 34%),
        linear-gradient(180deg, #0f0d0a, #14100d);
}

body[data-page="index"][data-theme="dark"] header {
    border-bottom-color: rgba(255, 246, 234, 0.12);
    background: rgba(15, 13, 10, 0.78);
}

body[data-page="index"][data-theme="dark"] .nav-brand,
body[data-page="index"][data-theme="dark"] .nav-links a:hover,
body[data-page="index"][data-theme="dark"] .nav-cta,
body[data-page="index"][data-theme="dark"] .hero h1,
body[data-page="index"][data-theme="dark"] .hero-highlight,
body[data-page="index"][data-theme="dark"] .trust-item strong,
body[data-page="index"][data-theme="dark"] .story-lede h2,
body[data-page="index"][data-theme="dark"] .section-header h2,
body[data-page="index"][data-theme="dark"] .proof-copy h2,
body[data-page="index"][data-theme="dark"] .writing-intro h2,
body[data-page="index"][data-theme="dark"] .brasa-card h2,
body[data-page="index"][data-theme="dark"] .signal-card h3,
body[data-page="index"][data-theme="dark"] .ledger-row strong,
body[data-page="index"][data-theme="dark"] .writing-row strong {
    color: var(--text-primary);
}

body[data-page="index"][data-theme="dark"] .nav-links a,
body[data-page="index"][data-theme="dark"] .lang-btn,
body[data-page="index"][data-theme="dark"] .hero-intro,
body[data-page="index"][data-theme="dark"] .story-lede p,
body[data-page="index"][data-theme="dark"] .story-body p,
body[data-page="index"][data-theme="dark"] .section-header p,
body[data-page="index"][data-theme="dark"] .proof-copy p,
body[data-page="index"][data-theme="dark"] .writing-intro p,
body[data-page="index"][data-theme="dark"] .brasa-card p,
body[data-page="index"][data-theme="dark"] .signal-card p,
body[data-page="index"][data-theme="dark"] .trust-item small {
    color: rgba(255, 246, 234, 0.66);
}

body[data-page="index"][data-theme="dark"] .executive-hero,
body[data-page="index"][data-theme="dark"] .story-section,
body[data-page="index"][data-theme="dark"] .signals-section,
body[data-page="index"][data-theme="dark"] .proof-section,
body[data-page="index"][data-theme="dark"] .writing-preview,
body[data-page="index"][data-theme="dark"] .brasa-section,
body[data-page="index"][data-theme="dark"] .trust-strip,
body[data-page="index"][data-theme="dark"] .certification-rail {
    background: #0f0d0a !important;
}

body[data-page="index"][data-theme="dark"] .executive-hero::before {
    background:
        linear-gradient(90deg, #0f0d0a 0%, rgba(15, 13, 10, 0.97) 25%, rgba(15, 13, 10, 0.74) 45%, rgba(15, 13, 10, 0.16) 68%, rgba(15, 13, 10, 0.42) 100%),
        linear-gradient(180deg, rgba(15, 13, 10, 0.02) 42%, #0f0d0a 100%);
}

body[data-page="index"][data-theme="dark"] .hero-portrait::after {
    background:
        linear-gradient(90deg, #0f0d0a 0%, rgba(15, 13, 10, 0.82) 15%, rgba(15, 13, 10, 0.22) 41%, rgba(15, 13, 10, 0.02) 70%, rgba(15, 13, 10, 0.34) 100%),
        linear-gradient(180deg, rgba(15, 13, 10, 0.06) 0%, rgba(15, 13, 10, 0.12) 62%, #0f0d0a 100%);
}

body[data-page="index"][data-theme="dark"] .portrait-frame {
    background: #0f0d0a;
}

body[data-page="index"][data-theme="dark"] .portrait-frame img {
    filter: saturate(0.88) contrast(1.08) brightness(0.86);
}

body[data-page="index"][data-theme="dark"] .hero-highlight::before {
    background:
        linear-gradient(90deg, rgba(240, 109, 79, 0.12), rgba(240, 109, 79, 0.48) 48%, rgba(240, 109, 79, 0.16));
}

body[data-page="index"][data-theme="dark"] .lang-switcher,
body[data-page="index"][data-theme="dark"] .theme-toggle,
body[data-page="index"][data-theme="dark"] .hero-link.secondary,
body[data-page="index"][data-theme="dark"] .hero-assurance span {
    border-color: rgba(255, 246, 234, 0.16);
    background: rgba(255, 246, 234, 0.07);
}

body[data-page="index"][data-theme="dark"] .theme-toggle,
body[data-page="index"][data-theme="dark"] .hero-link.secondary,
body[data-page="index"][data-theme="dark"] .hero-assurance span {
    color: var(--text-primary);
}

body[data-page="index"][data-theme="dark"] .lang-btn.active,
body[data-page="index"][data-theme="dark"] .hero-link.primary {
    color: #0f0d0a;
    background: #fff6ea;
    border-color: #fff6ea;
}

body[data-page="index"][data-theme="dark"] .nav-cta {
    border-color: rgba(255, 246, 234, 0.16);
}

body[data-page="index"][data-theme="dark"] .trust-grid,
body[data-page="index"][data-theme="dark"] .cert-marquee,
body[data-page="index"][data-theme="dark"] .story-layout,
body[data-page="index"][data-theme="dark"] .signals-grid,
body[data-page="index"][data-theme="dark"] .proof-ledger,
body[data-page="index"][data-theme="dark"] .writing-list,
body[data-page="index"][data-theme="dark"] .brasa-card {
    border-color: rgba(255, 246, 234, 0.14) !important;
}

body[data-page="index"][data-theme="dark"] .trust-item,
body[data-page="index"][data-theme="dark"] .cert-track span,
body[data-page="index"][data-theme="dark"] .signal-card,
body[data-page="index"][data-theme="dark"] .ledger-row,
body[data-page="index"][data-theme="dark"] .writing-row {
    border-color: rgba(255, 246, 234, 0.14) !important;
}

body[data-page="index"][data-theme="dark"] .cert-rail-header p,
body[data-page="index"][data-theme="dark"] .cert-track span {
    color: rgba(255, 246, 234, 0.68);
}

body[data-page="index"][data-theme="dark"] .cert-track span {
    background: rgba(255, 246, 234, 0.07);
}

body[data-page="index"][data-theme="dark"] .brasa-card {
    border-top-color: rgba(232, 115, 74, 0.38) !important;
    border-bottom-color: rgba(232, 115, 74, 0.28) !important;
}

body[data-page="index"][data-theme="dark"] .contact-section,
body[data-page="index"][data-theme="dark"] footer {
    background: #090806;
}

@media (max-width: 640px) {
    body[data-page="index"] .hero h1 {
        font-size: clamp(3.1rem, 14.5vw, 4.7rem) !important;
        letter-spacing: -0.078em !important;
    }

    body[data-page="index"] .trust-grid {
        grid-template-columns: 1fr;
    }

    body[data-page="index"] .trust-item {
        min-height: auto;
        padding: 22px 0;
    }

    body[data-page="index"] .cert-rail-header {
        display: block;
    }

    body[data-page="index"] .cert-rail-header p {
        margin-top: 10px;
    }
}

/* Cleaner theme glyph */
body[data-page="index"] .theme-toggle-mark {
    box-shadow: inset -5px -2px 0 rgba(255, 250, 241, 0.78);
}

body[data-page="index"] .theme-toggle-mark::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: 0;
}

body[data-page="index"][data-theme="dark"] .theme-toggle-mark {
    background: currentColor;
    box-shadow: none;
}

body[data-page="index"][data-theme="dark"] .theme-toggle-mark::before {
    opacity: 0.34;
}

/* About page editorial redesign */
body[data-page="about"] {
    --bg-primary: #f4f0e8;
    --bg-secondary: #ede7dc;
    --bg-card: #fffaf1;
    --bg-card-hover: #fff6e9;
    --text-primary: #171411;
    --text-secondary: #5d5750;
    --text-muted: #81786d;
    --accent: #d65436;
    --border-subtle: rgba(23, 20, 17, 0.14);
    --border-hover: rgba(214, 84, 54, 0.36);
    --font-heading: "Sora", sans-serif;
    --font-body: "Manrope", sans-serif;
    --font-display: "Source Serif 4", Georgia, serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body[data-page="about"]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(23, 20, 17, 0.035) 1px, transparent 1px) 0 0 / 96px 96px,
        radial-gradient(circle at 78% 4%, rgba(214, 84, 54, 0.12), transparent 34%),
        linear-gradient(180deg, #f4f0e8, #eee7dc);
}

body[data-page="about"] header {
    border-bottom: 1px solid rgba(23, 20, 17, 0.12);
    background: rgba(244, 240, 232, 0.78);
    backdrop-filter: blur(22px);
}

body[data-page="about"] .nav {
    min-height: 82px;
}

body[data-page="about"] .nav-brand,
body[data-page="about"] .nav-links a:hover,
body[data-page="about"] .nav-links a[aria-current="page"],
body[data-page="about"] .nav-cta {
    color: var(--text-primary);
}

body[data-page="about"] .nav-brand span,
body[data-page="about"] .section-label,
body[data-page="about"] .about-section-title {
    color: var(--accent);
}

body[data-page="about"] .nav-links a,
body[data-page="about"] .lang-btn {
    color: rgba(23, 20, 17, 0.6);
}

body[data-page="about"] .lang-switcher,
body[data-page="about"] .theme-toggle,
body[data-page="about"] .nav-cta,
body[data-page="about"] .hero-link.secondary {
    border-color: rgba(23, 20, 17, 0.14);
    background: rgba(255, 250, 241, 0.56);
}

body[data-page="about"] .lang-btn.active,
body[data-page="about"] .hero-link.primary {
    color: #fffaf1;
    background: #171411;
    border-color: #171411;
}

body[data-page="about"] .theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px;
    color: var(--text-primary);
    cursor: pointer;
}

body[data-page="about"] .theme-toggle-mark {
    position: relative;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: inset -5px -2px 0 rgba(255, 250, 241, 0.78);
}

body[data-page="about"] .theme-toggle-mark::before {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: 0;
}

body[data-page="about"] .about-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(42px, 6vw, 96px);
    align-items: end;
    min-height: auto;
    padding-top: 116px !important;
    padding-bottom: 38px !important;
    border-bottom: 1px solid rgba(23, 20, 17, 0.14);
}

body[data-page="about"] .about-hero h1 {
    max-width: 1060px;
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-heading) !important;
    font-size: clamp(3rem, 4.25vw, 4.45rem) !important;
    font-weight: 800 !important;
    line-height: 0.98 !important;
    letter-spacing: 0 !important;
    font-variation-settings: normal !important;
}

body[data-page="about"] .page-sub {
    max-width: 690px;
    margin: 18px 0 0;
    color: rgba(23, 20, 17, 0.68);
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    font-weight: 500;
    line-height: 1.65;
}

body[data-page="about"] .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

body[data-page="about"] .hero-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 850;
    text-decoration: none;
}

body[data-page="about"] .about-hero-note {
    padding: 0 0 8px 26px;
    border-left: 1px solid rgba(23, 20, 17, 0.16);
}

body[data-page="about"] .about-hero-note span,
body[data-page="about"] .timeline-date,
body[data-page="about"] .timeline-company {
    color: rgba(23, 20, 17, 0.5);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

body[data-page="about"] .about-hero-note strong {
    display: block;
    margin-top: 14px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.18rem;
    line-height: 1.2;
}

body[data-page="about"] .about-hero-note p {
    margin: 14px 0 0;
    color: rgba(23, 20, 17, 0.62);
    font-size: 0.9rem;
    line-height: 1.7;
}

body[data-page="about"] .about-proof-section,
body[data-page="about"] .about-verification,
body[data-page="about"] .about-cert-rail,
body[data-page="about"] .about-timeline,
body[data-page="about"] .about-details {
    background: transparent;
}

body[data-page="about"] .about-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid rgba(23, 20, 17, 0.14);
}

body[data-page="about"] .about-proof-item {
    min-height: 150px;
    padding: 30px 34px 30px 0;
    border-right: 1px solid rgba(23, 20, 17, 0.14);
}

body[data-page="about"] .about-proof-item:last-child {
    border-right: 0;
}

body[data-page="about"] .about-proof-item strong {
    display: block;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 3vw, 3.65rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: 0;
}

body[data-page="about"] .about-proof-item span {
    display: block;
    max-width: 230px;
    margin-top: 18px;
    color: rgba(23, 20, 17, 0.62);
    font-size: 0.92rem;
    font-weight: 850;
    line-height: 1.35;
}

body[data-page="about"] .verification-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(44px, 7vw, 112px);
    padding-top: 110px;
    padding-bottom: 108px;
    border-bottom: 1px solid rgba(23, 20, 17, 0.14);
}

body[data-page="about"] .section-label,
body[data-page="about"] .about-section-title {
    display: inline-flex;
    margin-bottom: 18px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

body[data-page="about"] .verification-copy h2,
body[data-page="about"] .section-header h2,
body[data-page="about"] .about-contact h2 {
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0;
}

body[data-page="about"] .verification-copy p,
body[data-page="about"] .section-header p {
    max-width: 560px;
    margin: 22px 0 0;
    color: rgba(23, 20, 17, 0.62);
    font-size: 1.05rem;
    line-height: 1.75;
}

body[data-page="about"] .verification-list {
    border-top: 1px solid rgba(23, 20, 17, 0.14);
}

body[data-page="about"] .verification-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 28px;
    padding: 26px 0;
    border-bottom: 1px solid rgba(23, 20, 17, 0.14);
}

body[data-page="about"] .verification-row > span {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 800;
}

body[data-page="about"] .verification-row strong {
    display: block;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.18rem;
    line-height: 1.25;
}

body[data-page="about"] .verification-row p {
    max-width: 620px;
    margin: 8px 0 0;
    color: rgba(23, 20, 17, 0.62);
    font-size: 0.98rem;
    line-height: 1.7;
}

body[data-page="about"] .certification-rail {
    padding: 78px 0 84px;
    border-bottom: 1px solid rgba(23, 20, 17, 0.14);
}

body[data-page="about"] .cert-rail-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

body[data-page="about"] .cert-rail-header p {
    max-width: 520px;
    margin: 0;
    color: rgba(23, 20, 17, 0.58);
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.5;
}

body[data-page="about"] .cert-marquee {
    display: flex;
    width: 100%;
    overflow: hidden;
    border-top: 1px solid rgba(23, 20, 17, 0.14);
    border-bottom: 1px solid rgba(23, 20, 17, 0.14);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

body[data-page="about"] .cert-track {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    padding: 14px 10px 14px 0;
    animation: certRail 44s linear infinite;
}

body[data-page="about"] .cert-track span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(23, 20, 17, 0.12);
    border-radius: 999px;
    background: rgba(255, 250, 241, 0.52);
    color: rgba(23, 20, 17, 0.72);
    font-size: 0.78rem;
    font-weight: 850;
    white-space: nowrap;
}

body[data-page="about"] main {
    display: flex;
    flex-direction: column;
}

body[data-page="about"] .about-hero { order: 0; }
body[data-page="about"] .about-timeline { order: 1; }
body[data-page="about"] .about-details { order: 2; }
body[data-page="about"] .about-proof-section { order: 3; }
body[data-page="about"] .about-verification { order: 4; }
body[data-page="about"] .about-cert-rail { order: 5; }
body[data-page="about"] .about-contact { order: 6; }

body[data-page="about"] .timeline-section {
    padding: 48px 0 76px;
}

body[data-page="about"] .section-header {
    max-width: 900px;
    margin-bottom: 26px;
}

body[data-page="about"] .timeline {
    border-top: 1px solid rgba(23, 20, 17, 0.14);
}

body[data-page="about"] .timeline::before,
body[data-page="about"] .timeline-item::before {
    display: none;
}

body[data-page="about"] .timeline-item {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(26px, 4vw, 72px);
    margin: 0;
    padding: 34px 0;
    border-bottom: 1px solid rgba(23, 20, 17, 0.14);
}

body[data-page="about"] .timeline-role {
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 2.4vw, 2.55rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0;
}

body[data-page="about"] .timeline-company {
    margin-top: 10px;
    text-transform: none;
}

body[data-page="about"] .timeline-desc {
    max-width: 780px;
    margin: 18px 0 0;
    color: rgba(23, 20, 17, 0.64);
    font-size: 1rem;
    line-height: 1.75;
}

body[data-page="about"] .about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(36px, 6vw, 88px);
    padding: 66px 0 90px;
    border-top: 1px solid rgba(23, 20, 17, 0.14);
}

body[data-page="about"] .cred-list {
    border-top: 1px solid rgba(23, 20, 17, 0.14);
}

body[data-page="about"] .cred-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 22px;
    min-height: 58px;
    padding: 17px 0;
    border: 0;
    border-bottom: 1px solid rgba(23, 20, 17, 0.14);
    border-radius: 0;
    background: transparent;
}

body[data-page="about"] .cred-item::before {
    display: none !important;
}

body[data-page="about"] .cred-title {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(0.98rem, 1.2vw, 1.18rem);
    font-weight: 800;
    line-height: 1.25;
}

body[data-page="about"] .cred-meta {
    color: rgba(23, 20, 17, 0.5);
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.35;
    text-align: right;
    white-space: nowrap;
}

body[data-page="about"] .language-panel {
    margin-top: 44px;
}

body[data-page="about"] .language-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(23, 20, 17, 0.14);
}

body[data-page="about"] .language-line span {
    display: inline-flex;
    padding: 9px 13px;
    border: 1px solid rgba(23, 20, 17, 0.12);
    border-radius: 999px;
    color: rgba(23, 20, 17, 0.72);
    background: rgba(255, 250, 241, 0.46);
    font-size: 0.82rem;
    font-weight: 850;
}

body[data-page="about"] .about-contact {
    margin: 0;
    padding: 0;
    max-width: none;
    background: #171411;
    color: #fffaf1;
}

body[data-page="about"] .about-contact .contact-inner {
    padding: 100px 0;
}

body[data-page="about"] .about-contact h2 {
    color: #fffaf1;
}

body[data-page="about"] .about-contact .contact-sub {
    max-width: 650px;
    margin-top: 18px;
    color: rgba(255, 250, 241, 0.68);
    font-size: 1.06rem;
    line-height: 1.7;
}

body[data-page="about"] .contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

body[data-page="about"] .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(255, 250, 241, 0.18);
    border-radius: 999px;
    color: #fffaf1;
    background: rgba(255, 250, 241, 0.06);
    font-size: 0.9rem;
    font-weight: 850;
    text-decoration: none;
}

body[data-page="about"] .contact-link:hover {
    border-color: rgba(255, 250, 241, 0.38);
    background: rgba(255, 250, 241, 0.1);
    transform: translateY(-1px);
}

body[data-page="about"] footer {
    background: #171411;
    border-top: 1px solid rgba(255, 250, 241, 0.12);
}

body[data-page="about"] footer p,
body[data-page="about"] footer a {
    color: rgba(255, 250, 241, 0.62);
}

body[data-page="about"][data-theme="dark"] {
    --bg-primary: #0f0d0a;
    --bg-secondary: #17130f;
    --bg-card: #1d1712;
    --bg-card-hover: #251e17;
    --text-primary: #fff6ea;
    --text-secondary: #d8cabb;
    --text-muted: #a99785;
    --accent: #f06d4f;
    --border-subtle: rgba(255, 246, 234, 0.16);
    --border-hover: rgba(240, 109, 79, 0.42);
    background: #0f0d0a;
    color: var(--text-primary);
}

body[data-page="about"][data-theme="dark"]::before {
    background:
        linear-gradient(90deg, rgba(255, 246, 234, 0.045) 1px, transparent 1px) 0 0 / 96px 96px,
        radial-gradient(circle at 78% 4%, rgba(240, 109, 79, 0.13), transparent 34%),
        linear-gradient(180deg, #0f0d0a, #14100d);
}

body[data-page="about"][data-theme="dark"] header {
    border-bottom-color: rgba(255, 246, 234, 0.12);
    background: rgba(15, 13, 10, 0.78);
}

body[data-page="about"][data-theme="dark"] .nav-brand,
body[data-page="about"][data-theme="dark"] .nav-links a:hover,
body[data-page="about"][data-theme="dark"] .nav-links a[aria-current="page"],
body[data-page="about"][data-theme="dark"] .nav-cta,
body[data-page="about"][data-theme="dark"] .about-hero h1,
body[data-page="about"][data-theme="dark"] .about-hero-note strong,
body[data-page="about"][data-theme="dark"] .about-proof-item strong,
body[data-page="about"][data-theme="dark"] .verification-copy h2,
body[data-page="about"][data-theme="dark"] .verification-row strong,
body[data-page="about"][data-theme="dark"] .section-header h2,
body[data-page="about"][data-theme="dark"] .timeline-role,
body[data-page="about"][data-theme="dark"] .cred-title {
    color: var(--text-primary);
}

body[data-page="about"][data-theme="dark"] .nav-links a,
body[data-page="about"][data-theme="dark"] .lang-btn,
body[data-page="about"][data-theme="dark"] .page-sub,
body[data-page="about"][data-theme="dark"] .about-hero-note p,
body[data-page="about"][data-theme="dark"] .about-proof-item span,
body[data-page="about"][data-theme="dark"] .verification-copy p,
body[data-page="about"][data-theme="dark"] .verification-row p,
body[data-page="about"][data-theme="dark"] .timeline-desc,
body[data-page="about"][data-theme="dark"] .cert-rail-header p,
body[data-page="about"][data-theme="dark"] .cert-track span,
body[data-page="about"][data-theme="dark"] .cred-meta,
body[data-page="about"][data-theme="dark"] .language-line span {
    color: rgba(255, 246, 234, 0.66);
}

body[data-page="about"][data-theme="dark"] .about-hero-note span,
body[data-page="about"][data-theme="dark"] .timeline-date,
body[data-page="about"][data-theme="dark"] .timeline-company {
    color: rgba(255, 246, 234, 0.48);
}

body[data-page="about"][data-theme="dark"] .lang-switcher,
body[data-page="about"][data-theme="dark"] .theme-toggle,
body[data-page="about"][data-theme="dark"] .nav-cta,
body[data-page="about"][data-theme="dark"] .hero-link.secondary,
body[data-page="about"][data-theme="dark"] .cert-track span,
body[data-page="about"][data-theme="dark"] .language-line span {
    border-color: rgba(255, 246, 234, 0.16);
    background: rgba(255, 246, 234, 0.07);
}

body[data-page="about"][data-theme="dark"] .lang-btn.active,
body[data-page="about"][data-theme="dark"] .hero-link.primary {
    color: #0f0d0a;
    background: #fff6ea;
    border-color: #fff6ea;
}

body[data-page="about"][data-theme="dark"] .theme-toggle-mark {
    background: currentColor;
    box-shadow: none;
}

body[data-page="about"][data-theme="dark"] .theme-toggle-mark::before {
    opacity: 0.34;
}

body[data-page="about"][data-theme="dark"] .about-hero,
body[data-page="about"][data-theme="dark"] .about-proof-grid,
body[data-page="about"][data-theme="dark"] .about-proof-item,
body[data-page="about"][data-theme="dark"] .verification-layout,
body[data-page="about"][data-theme="dark"] .verification-list,
body[data-page="about"][data-theme="dark"] .verification-row,
body[data-page="about"][data-theme="dark"] .certification-rail,
body[data-page="about"][data-theme="dark"] .cert-marquee,
body[data-page="about"][data-theme="dark"] .timeline,
body[data-page="about"][data-theme="dark"] .timeline-item,
body[data-page="about"][data-theme="dark"] .about-grid,
body[data-page="about"][data-theme="dark"] .cred-list,
body[data-page="about"][data-theme="dark"] .cred-item,
body[data-page="about"][data-theme="dark"] .language-line {
    border-color: rgba(255, 246, 234, 0.14);
}

body[data-page="about"][data-theme="dark"] .about-contact,
body[data-page="about"][data-theme="dark"] footer {
    background: #090806;
}

@media (prefers-reduced-motion: reduce) {
    body[data-page="about"] .cert-track {
        animation: none;
    }
}

@media (max-width: 980px) {
    body[data-page="about"] .about-hero,
    body[data-page="about"] .verification-layout,
    body[data-page="about"] .about-grid {
        grid-template-columns: 1fr;
    }

    body[data-page="about"] .about-hero-note {
        max-width: 620px;
        padding-left: 20px;
    }

    body[data-page="about"] .about-proof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-page="about"] .about-proof-item:nth-child(2) {
        border-right: 0;
    }

    body[data-page="about"] .timeline-item {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 760px) {
    body[data-page="about"] .nav {
        min-height: 74px;
    }

    body[data-page="about"] .nav-links {
        display: none;
    }

    body[data-page="about"] .nav-actions {
        gap: 8px;
    }

    body[data-page="about"] .nav-cta {
        display: none;
    }

    body[data-page="about"] .about-hero {
        min-height: auto;
        padding-top: 112px !important;
        padding-bottom: 38px !important;
    }

    body[data-page="about"] .about-hero h1 {
        font-size: clamp(2.35rem, 9.8vw, 3.25rem) !important;
        line-height: 1 !important;
    }

    body[data-page="about"] .hero-actions,
    body[data-page="about"] .contact-links {
        flex-direction: column;
        align-items: stretch;
    }

    body[data-page="about"] .hero-link,
    body[data-page="about"] .contact-link {
        justify-content: center;
    }

    body[data-page="about"] .about-proof-grid {
        grid-template-columns: 1fr;
    }

    body[data-page="about"] .about-proof-item {
        min-height: auto;
        padding: 26px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(23, 20, 17, 0.14);
    }

    body[data-page="about"] .cert-rail-header {
        display: block;
    }

    body[data-page="about"] .cert-rail-header p {
        margin-top: 10px;
    }

    body[data-page="about"] .verification-layout,
    body[data-page="about"] .timeline-section,
    body[data-page="about"] .about-grid,
    body[data-page="about"] .about-contact .contact-inner {
        padding-top: 68px;
        padding-bottom: 68px;
    }

    body[data-page="about"] .cred-item {
        grid-template-columns: 1fr;
        gap: 5px;
        align-items: start;
    }

    body[data-page="about"] .cred-meta {
        text-align: left;
        white-space: normal;
    }
}

/* Brasa section: compact company band using Brasa published brand tokens */
body[data-page="index"] .brasa-section {
    padding: 0 !important;
    color: #f5f0ea;
    background:
        radial-gradient(circle at 78% 10%, rgba(214, 106, 52, 0.12), transparent 28%),
        radial-gradient(circle at 15% 100%, rgba(243, 173, 122, 0.08), transparent 26%),
        linear-gradient(180deg, #050403, #0d0b09 68%, #050403) !important;
}

body[data-page="index"] .brasa-panel {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 280px;
    gap: clamp(28px, 3.6vw, 50px);
    align-items: center;
    padding: 62px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-page="index"] .brasa-brand {
    display: flex;
    align-items: center;
    min-height: 104px;
    padding-right: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-page="index"] .brasa-logo-picture {
    display: block;
    width: min(100%, 232px);
}

body[data-page="index"] .brasa-logo {
    display: block;
    width: 100%;
    height: auto;
}

body[data-page="index"] .brasa-content .section-label {
    color: #f3ad7a;
}

body[data-page="index"] .brasa-content h2 {
    max-width: 540px;
    margin: 0;
    color: #f5f0ea;
    font-family: "Sora", sans-serif !important;
    font-size: clamp(1.72rem, 2.2vw, 2.58rem) !important;
    font-weight: 800;
    line-height: 1.04 !important;
    letter-spacing: 0;
}

body[data-page="index"] .brasa-content p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #c4b8ae !important;
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.72;
}

body[data-page="index"] .brasa-side {
    display: grid;
    justify-items: start;
    gap: 22px;
}

body[data-page="index"] .brasa-tags {
    display: grid;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body[data-page="index"] .brasa-tags span {
    position: relative;
    padding: 13px 0 13px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #c4b8ae;
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.45;
}

body[data-page="index"] .brasa-tags span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.4em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #f26a2e;
    box-shadow: 0 0 16px rgba(242, 106, 46, 0.34);
}

body[data-page="index"] .brasa-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 20px;
    border: 1px solid rgba(243, 173, 122, 0.28);
    border-radius: 999px;
    color: #fff6ef;
    background: linear-gradient(135deg, #d66a34 0%, #9f4722 100%);
    box-shadow: 0 10px 24px rgba(214, 106, 52, 0.2);
    font-size: 0.9rem;
    font-weight: 850;
    text-decoration: none;
}

body[data-page="index"] .brasa-cta:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 214, 170, 0.48);
    box-shadow: 0 12px 30px rgba(214, 106, 52, 0.28);
}

body[data-page="index"][data-theme="dark"] .brasa-section {
    background:
        radial-gradient(circle at 78% 10%, rgba(214, 106, 52, 0.14), transparent 28%),
        radial-gradient(circle at 15% 100%, rgba(243, 173, 122, 0.08), transparent 26%),
        linear-gradient(180deg, #050403, #0d0b09 68%, #050403) !important;
}

body[data-page="index"][data-theme="dark"] .brasa-panel {
    border-color: rgba(255, 246, 234, 0.14) !important;
}

@media (max-width: 980px) {
    body[data-page="index"] .brasa-panel {
        grid-template-columns: 1fr;
        padding: 48px 0;
    }

    body[data-page="index"] .brasa-brand {
        min-height: auto;
        padding-bottom: 20px;
        padding-right: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    body[data-page="index"] .brasa-logo-picture {
        width: min(100%, 212px);
    }

    body[data-page="index"] .brasa-side {
        width: 100%;
    }
}

@media (max-width: 640px) {
    body[data-page="index"] .brasa-logo-picture {
        width: min(64vw, 184px);
    }
}

/* Final homepage refinements */
body[data-page="index"] .cert-rail-header p,
body[data-page="about"] .cert-rail-header p {
    max-width: none;
    white-space: nowrap;
}

body[data-page="index"] .hero-portrait::after {
    background:
        linear-gradient(90deg, #f4f0e8 0%, rgba(244, 240, 232, 0.82) 16%, rgba(244, 240, 232, 0.26) 36%, rgba(244, 240, 232, 0) 62%) !important;
}

body[data-page="index"] .portrait-frame {
    background: transparent !important;
}

body[data-page="index"] .portrait-frame img {
    filter: saturate(0.98) contrast(1.02) brightness(1) !important;
}

body[data-page="index"][data-theme="dark"] .hero-portrait::after {
    background:
        linear-gradient(90deg, #0f0d0a 0%, rgba(15, 13, 10, 0.82) 16%, rgba(15, 13, 10, 0.24) 38%, rgba(15, 13, 10, 0) 64%) !important;
}

@media (max-width: 760px) {
    body[data-page="index"] .cert-rail-header p,
    body[data-page="about"] .cert-rail-header p {
        white-space: normal;
    }

    body[data-page="index"] .hero-portrait {
        display: none !important;
    }
}

@media (min-width: 761px) {
    body[data-page="index"] .executive-hero {
        min-height: 82svh;
    }

    body[data-page="index"] .hero-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
        gap: clamp(44px, 6vw, 88px);
        align-items: center;
    }

    body[data-page="index"] .hero-content {
        max-width: 760px;
    }

    body[data-page="index"] .hero-portrait {
        position: relative !important;
        inset: auto !important;
        z-index: 0 !important;
        display: block !important;
        justify-self: end;
        width: min(100%, 520px) !important;
        height: clamp(500px, 64svh, 720px) !important;
        margin: 0 !important;
        pointer-events: none;
    }

    body[data-page="index"] .hero-portrait::after {
        display: none !important;
        content: none !important;
    }

    body[data-page="index"] .portrait-frame {
        width: 100%;
        height: 100%;
        border: 1px solid rgba(23, 20, 17, 0.12) !important;
        border-radius: 0 !important;
        overflow: hidden;
        background: transparent !important;
        box-shadow: none !important;
    }

    body[data-page="index"] .portrait-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        opacity: 1 !important;
        filter: saturate(0.98) contrast(1.02) brightness(1) !important;
    }

    body[data-page="index"] .portrait-card {
        display: none !important;
    }
}

/* Hero image as a blended background, not a static portrait column */
@media (min-width: 761px) {
    body[data-page="index"] .executive-hero {
        min-height: 90svh;
        overflow: hidden;
    }

    body[data-page="index"] .hero-grid {
        display: block !important;
    }

    body[data-page="index"] .hero-content {
        position: relative;
        z-index: 2;
        max-width: min(720px, 52vw);
    }

    body[data-page="index"] .hero-portrait {
        position: absolute !important;
        inset: 0 0 0 auto !important;
        z-index: 0 !important;
        display: block !important;
        width: min(62vw, 980px) !important;
        height: 100% !important;
        margin: 0 !important;
        pointer-events: none;
    }

    body[data-page="index"] .hero-portrait::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        background:
            linear-gradient(90deg, #f4f0e8 0%, rgba(244, 240, 232, 0.94) 15%, rgba(244, 240, 232, 0.56) 34%, rgba(244, 240, 232, 0.12) 55%, rgba(244, 240, 232, 0) 78%),
            linear-gradient(180deg, rgba(244, 240, 232, 0) 62%, #f4f0e8 100%);
    }

    body[data-page="index"] .hero-portrait::after {
        display: none !important;
        content: none !important;
    }

    body[data-page="index"] .portrait-frame {
        width: 100%;
        height: 100%;
        border: 0 !important;
        border-radius: 0 !important;
        overflow: hidden;
        background: transparent !important;
        box-shadow: none !important;
    }

    body[data-page="index"] .portrait-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        opacity: 1 !important;
        filter: saturate(0.96) contrast(1.04) brightness(0.98) !important;
    }

    body[data-page="index"][data-theme="dark"] .hero-portrait::before {
        background:
            linear-gradient(90deg, #0f0d0a 0%, rgba(15, 13, 10, 0.94) 15%, rgba(15, 13, 10, 0.58) 34%, rgba(15, 13, 10, 0.16) 55%, rgba(15, 13, 10, 0) 78%),
            linear-gradient(180deg, rgba(15, 13, 10, 0) 62%, #0f0d0a 100%);
    }
}

@media (max-width: 760px) {
    body[data-page="index"] .hero-portrait {
        position: absolute !important;
        inset: 86px 0 auto auto !important;
        z-index: 0 !important;
        display: block !important;
        width: 74vw !important;
        height: 430px !important;
        margin: 0 !important;
        opacity: 0.18;
        pointer-events: none;
    }

    body[data-page="index"] .hero-portrait::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        background:
            linear-gradient(90deg, #f4f0e8 0%, rgba(244, 240, 232, 0.64) 34%, rgba(244, 240, 232, 0) 78%),
            linear-gradient(180deg, rgba(244, 240, 232, 0) 40%, #f4f0e8 100%);
    }

    body[data-page="index"] .hero-content {
        position: relative;
        z-index: 2;
    }
}

/* Writing page: editorial index in the same identity system */
body[data-page="writing"] {
    --bg-primary: #f4f0e8;
    --bg-secondary: #ede7dc;
    --bg-card: #fffaf1;
    --bg-card-hover: #fff6e9;
    --text-primary: #171411;
    --text-secondary: #5d5750;
    --text-muted: #81786d;
    --accent: #d65436;
    --border-subtle: rgba(23, 20, 17, 0.14);
    --border-hover: rgba(214, 84, 54, 0.36);
    --font-heading: "Sora", sans-serif;
    --font-body: "Manrope", sans-serif;
    --font-display: "Source Serif 4", Georgia, serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body[data-page="writing"]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(23, 20, 17, 0.035) 1px, transparent 1px) 0 0 / 96px 96px,
        radial-gradient(circle at 82% 8%, rgba(214, 84, 54, 0.12), transparent 34%),
        linear-gradient(180deg, #f4f0e8, #eee7dc);
}

body[data-page="writing"] header {
    border-bottom: 1px solid rgba(23, 20, 17, 0.12);
    background: rgba(244, 240, 232, 0.78);
    backdrop-filter: blur(22px);
}

body[data-page="writing"] .nav {
    min-height: 82px;
}

body[data-page="writing"] .nav-brand,
body[data-page="writing"] .nav-links a:hover,
body[data-page="writing"] .nav-links a[aria-current="page"] {
    color: var(--text-primary);
}

body[data-page="writing"] .nav-brand span,
body[data-page="writing"] .section-label,
body[data-page="writing"] .writing-entry-number,
body[data-page="writing"] .writing-entry-meta {
    color: var(--accent);
}

body[data-page="writing"] .nav-links a,
body[data-page="writing"] .lang-btn {
    color: rgba(23, 20, 17, 0.6);
}

body[data-page="writing"] .lang-switcher,
body[data-page="writing"] .theme-toggle,
body[data-page="writing"] .hero-link.secondary {
    border-color: rgba(23, 20, 17, 0.14);
    background: rgba(255, 250, 241, 0.56);
}

body[data-page="writing"] .lang-btn.active,
body[data-page="writing"] .hero-link.primary {
    color: #fffaf1;
    background: #171411;
    border-color: #171411;
}

body[data-page="writing"] .theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px;
    color: var(--text-primary);
    cursor: pointer;
}

body[data-page="writing"] .theme-toggle-mark {
    position: relative;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: inset -5px -2px 0 rgba(255, 250, 241, 0.78);
}

body[data-page="writing"] .theme-toggle-mark::before {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: 0;
}

body[data-page="writing"] .writing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(42px, 6vw, 96px);
    align-items: end;
    padding-top: 126px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(23, 20, 17, 0.14);
}

body[data-page="writing"] .writing-hero h1 {
    max-width: 1050px;
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5.4vw, 6.3rem);
    font-weight: 800;
    line-height: 0.94;
    letter-spacing: 0;
}

body[data-page="writing"] .page-sub {
    max-width: 730px;
    margin: 22px 0 0;
    color: rgba(23, 20, 17, 0.68);
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    font-weight: 500;
    line-height: 1.65;
}

body[data-page="writing"] .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

body[data-page="writing"] .hero-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 850;
    text-decoration: none;
}

body[data-page="writing"] .writing-hero-note {
    padding: 0 0 8px 26px;
    border-left: 1px solid rgba(23, 20, 17, 0.16);
}

body[data-page="writing"] .writing-hero-note span {
    color: rgba(23, 20, 17, 0.5);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

body[data-page="writing"] .writing-hero-note p {
    margin: 14px 0 0;
    color: rgba(23, 20, 17, 0.62);
    font-size: 0.94rem;
    line-height: 1.72;
}

body[data-page="writing"] .writing-index-section {
    padding: 68px 0 86px;
}

body[data-page="writing"] .writing-index-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 18px;
}

body[data-page="writing"] .section-label {
    display: inline-flex;
    margin-bottom: 0;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

body[data-page="writing"] .writing-index-head p {
    max-width: 660px;
    margin: 0;
    color: rgba(23, 20, 17, 0.58);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.55;
}

body[data-page="writing"] .writing-index {
    border-top: 1px solid rgba(23, 20, 17, 0.14);
}

body[data-page="writing"] .writing-entry {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 124px;
    gap: clamp(20px, 4vw, 54px);
    align-items: center;
    min-height: 178px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(23, 20, 17, 0.14);
    color: inherit;
    text-decoration: none;
}

body[data-page="writing"] .writing-entry-number {
    align-self: start;
    padding-top: 8px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 900;
}

body[data-page="writing"] .writing-entry-meta {
    display: block;
    margin-bottom: 11px;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

body[data-page="writing"] .writing-entry h2 {
    max-width: 980px;
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3.2vw, 3.4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

body[data-page="writing"] .writing-entry p {
    max-width: 760px;
    margin: 16px 0 0;
    color: rgba(23, 20, 17, 0.62);
    font-size: 1rem;
    line-height: 1.7;
}

body[data-page="writing"] .writing-entry-action {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 9px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(23, 20, 17, 0.14);
    border-radius: 999px;
    color: rgba(23, 20, 17, 0.72);
    background: rgba(255, 250, 241, 0.5);
    font-size: 0.82rem;
    font-weight: 850;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

body[data-page="writing"] .writing-entry:hover .writing-entry-action {
    transform: translateX(3px);
    border-color: rgba(214, 84, 54, 0.34);
    background: rgba(214, 84, 54, 0.08);
    color: var(--accent);
}

body[data-page="writing"] .writing-themes-section {
    padding: 0;
    color: #fff6ea;
    background: #171411;
}

body[data-page="writing"] .writing-themes {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(40px, 7vw, 112px);
    padding-top: 82px;
    padding-bottom: 82px;
    border-top: 1px solid rgba(255, 246, 234, 0.14);
    border-bottom: 1px solid rgba(255, 246, 234, 0.14);
}

body[data-page="writing"] .writing-themes .section-label {
    color: #f06d4f;
}

body[data-page="writing"] .writing-themes-copy h2 {
    margin: 18px 0 0;
    color: #fff6ea;
    font-family: var(--font-heading);
    font-size: clamp(2.15rem, 4.3vw, 5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0;
}

body[data-page="writing"] .writing-theme-list {
    display: grid;
    border-top: 1px solid rgba(255, 246, 234, 0.14);
}

body[data-page="writing"] .writing-theme {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 26px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 246, 234, 0.14);
}

body[data-page="writing"] .writing-theme strong {
    color: #fff6ea;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.2;
}

body[data-page="writing"] .writing-theme p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 246, 234, 0.64);
    font-size: 0.95rem;
    line-height: 1.68;
}

body[data-page="writing"] .writing-contact {
    margin: 0;
    padding: 0;
    max-width: none;
    background: #f4f0e8;
}

body[data-page="writing"] .writing-contact .contact-inner {
    padding: 92px 0;
}

body[data-page="writing"] .writing-contact h2 {
    max-width: 820px;
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.4vw, 5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0;
}

body[data-page="writing"] .writing-contact .contact-sub {
    max-width: 650px;
    margin-top: 18px;
    color: rgba(23, 20, 17, 0.62);
    font-size: 1.06rem;
    line-height: 1.7;
}

body[data-page="writing"] .contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

body[data-page="writing"] .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid rgba(23, 20, 17, 0.14);
    border-radius: 999px;
    color: var(--text-primary);
    background: rgba(255, 250, 241, 0.56);
    font-size: 0.9rem;
    font-weight: 850;
    text-decoration: none;
}

body[data-page="writing"] footer {
    background: #171411;
    border-top: 1px solid rgba(255, 246, 234, 0.12);
}

body[data-page="writing"] .footer-inner {
    border-color: rgba(255, 246, 234, 0.12);
}

body[data-page="writing"] footer p,
body[data-page="writing"] footer a {
    color: rgba(255, 246, 234, 0.62);
}

body[data-page="writing"][data-theme="dark"] {
    --bg-primary: #0f0d0a;
    --bg-secondary: #17130f;
    --bg-card: #1d1712;
    --bg-card-hover: #251e17;
    --text-primary: #fff6ea;
    --text-secondary: #d8cabb;
    --text-muted: #a99785;
    --accent: #f06d4f;
    --border-subtle: rgba(255, 246, 234, 0.16);
    --border-hover: rgba(240, 109, 79, 0.42);
    background: #0f0d0a;
    color: var(--text-primary);
}

body[data-page="writing"][data-theme="dark"]::before {
    background:
        linear-gradient(90deg, rgba(255, 246, 234, 0.045) 1px, transparent 1px) 0 0 / 96px 96px,
        radial-gradient(circle at 82% 8%, rgba(240, 109, 79, 0.13), transparent 34%),
        linear-gradient(180deg, #0f0d0a, #14100d);
}

body[data-page="writing"][data-theme="dark"] header {
    border-bottom-color: rgba(255, 246, 234, 0.12);
    background: rgba(15, 13, 10, 0.78);
}

body[data-page="writing"][data-theme="dark"] .nav-brand,
body[data-page="writing"][data-theme="dark"] .nav-links a:hover,
body[data-page="writing"][data-theme="dark"] .nav-links a[aria-current="page"],
body[data-page="writing"][data-theme="dark"] .writing-hero h1,
body[data-page="writing"][data-theme="dark"] .writing-entry h2,
body[data-page="writing"][data-theme="dark"] .writing-contact h2 {
    color: var(--text-primary);
}

body[data-page="writing"][data-theme="dark"] .nav-links a,
body[data-page="writing"][data-theme="dark"] .lang-btn,
body[data-page="writing"][data-theme="dark"] .page-sub,
body[data-page="writing"][data-theme="dark"] .writing-hero-note p,
body[data-page="writing"][data-theme="dark"] .writing-index-head p,
body[data-page="writing"][data-theme="dark"] .writing-entry p,
body[data-page="writing"][data-theme="dark"] .writing-contact .contact-sub {
    color: rgba(255, 246, 234, 0.66);
}

body[data-page="writing"][data-theme="dark"] .writing-hero-note span,
body[data-page="writing"][data-theme="dark"] .writing-entry-action {
    color: rgba(255, 246, 234, 0.48);
}

body[data-page="writing"][data-theme="dark"] .lang-switcher,
body[data-page="writing"][data-theme="dark"] .theme-toggle,
body[data-page="writing"][data-theme="dark"] .hero-link.secondary,
body[data-page="writing"][data-theme="dark"] .writing-entry-action,
body[data-page="writing"][data-theme="dark"] .contact-link {
    border-color: rgba(255, 246, 234, 0.16);
    background: rgba(255, 246, 234, 0.07);
}

body[data-page="writing"][data-theme="dark"] .lang-btn.active,
body[data-page="writing"][data-theme="dark"] .hero-link.primary {
    color: #0f0d0a;
    background: #fff6ea;
    border-color: #fff6ea;
}

body[data-page="writing"][data-theme="dark"] .theme-toggle-mark {
    background: currentColor;
    box-shadow: none;
}

body[data-page="writing"][data-theme="dark"] .theme-toggle-mark::before {
    opacity: 0.34;
}

body[data-page="writing"][data-theme="dark"] .writing-hero,
body[data-page="writing"][data-theme="dark"] .writing-hero-note,
body[data-page="writing"][data-theme="dark"] .writing-index,
body[data-page="writing"][data-theme="dark"] .writing-entry {
    border-color: rgba(255, 246, 234, 0.14);
}

body[data-page="writing"][data-theme="dark"] .writing-themes-section,
body[data-page="writing"][data-theme="dark"] footer {
    background: #090806;
}

body[data-page="writing"][data-theme="dark"] .writing-contact {
    background: #0f0d0a;
}

body[data-page="writing"] .reveal {
    opacity: 1;
    transform: none;
}

@media (max-width: 980px) {
    body[data-page="writing"] .writing-hero,
    body[data-page="writing"] .writing-themes {
        grid-template-columns: 1fr;
    }

    body[data-page="writing"] .writing-hero-note {
        max-width: 620px;
        padding-left: 20px;
    }

    body[data-page="writing"] .writing-entry {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    body[data-page="writing"] .writing-entry-action {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 760px) {
    body[data-page="writing"] .nav {
        min-height: 74px;
    }

    body[data-page="writing"] .nav-links {
        display: none;
    }

    body[data-page="writing"] .nav-actions {
        gap: 8px;
    }

    body[data-page="writing"] .writing-hero {
        padding-top: 112px;
        padding-bottom: 46px;
    }

    body[data-page="writing"] .writing-hero h1 {
        font-size: clamp(2.35rem, 11vw, 3.45rem);
        line-height: 0.98;
    }

    body[data-page="writing"] .hero-actions,
    body[data-page="writing"] .contact-links {
        flex-direction: column;
        align-items: stretch;
    }

    body[data-page="writing"] .hero-link,
    body[data-page="writing"] .contact-link {
        justify-content: center;
    }

    body[data-page="writing"] .writing-index-head {
        display: block;
    }

    body[data-page="writing"] .writing-index-head p {
        margin-top: 10px;
    }

    body[data-page="writing"] .writing-entry {
        grid-template-columns: 1fr;
        gap: 14px;
        min-height: auto;
        padding: 28px 0;
    }

    body[data-page="writing"] .writing-entry-number {
        padding-top: 0;
    }

    body[data-page="writing"] .writing-entry-action {
        grid-column: auto;
    }

    body[data-page="writing"] .writing-themes,
    body[data-page="writing"] .writing-contact .contact-inner {
        padding-top: 68px;
        padding-bottom: 68px;
    }

    body[data-page="writing"] .writing-theme {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Final article standard: all writing destinations use the same system */
body[data-page="writing"] .writing-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.45fr);
    padding-top: 116px;
    padding-bottom: 44px;
}

body[data-page="writing"] .writing-hero h1 {
    max-width: 900px;
    font-size: clamp(2.8rem, 4.2vw, 4.9rem);
    line-height: 0.98;
}

body[data-page="index"] .ledger-row:first-child {
    position: relative;
    grid-template-columns: 148px minmax(0, 1fr);
    margin: 0;
    padding: 4px 0 30px;
    border: 0;
    border-bottom: 1px solid rgba(23, 20, 17, 0.14);
    background: transparent;
}

body[data-page="index"] .ledger-row:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 82px;
    height: 2px;
    background: var(--accent);
}

body[data-page="index"] .ledger-row:first-child strong {
    max-width: 760px;
    font-family: var(--font-body);
    font-size: clamp(1.12rem, 1.45vw, 1.5rem);
    font-weight: 850;
    line-height: 1.22;
    letter-spacing: -0.025em;
}

body[data-page="index"] .ledger-row:first-child span {
    padding-top: 4px;
    color: var(--accent);
}

body[data-page="index"] .signals-grid .signal-card,
body[data-page="index"] .signals-grid .signal-card:hover {
    border-color: rgba(23, 20, 17, 0.14) !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

body[data-page="index"] .signals-grid .signal-card::after {
    content: none !important;
    display: none !important;
}

body[data-page="index"] .signals-grid .signal-card > * {
    z-index: auto;
}

body[data-page^="ensaio"] {
    --bg-primary: #f4f0e8;
    --bg-secondary: #ede7dc;
    --bg-card: #fffaf1;
    --bg-card-hover: #fff6e9;
    --text-primary: #171411;
    --text-secondary: #5d5750;
    --text-muted: #81786d;
    --accent: #d65436;
    --border-subtle: rgba(23, 20, 17, 0.14);
    --border-hover: rgba(214, 84, 54, 0.36);
    --font-heading: "Sora", sans-serif;
    --font-body: "Manrope", sans-serif;
    --font-display: "Source Serif 4", Georgia, serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body[data-page^="ensaio"]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(23, 20, 17, 0.03) 1px, transparent 1px) 0 0 / 96px 96px,
        radial-gradient(circle at 82% 4%, rgba(214, 84, 54, 0.1), transparent 34%),
        linear-gradient(180deg, #f4f0e8, #eee7dc);
}

body[data-page^="ensaio"] > header {
    border-bottom: 1px solid rgba(23, 20, 17, 0.12);
    background: rgba(244, 240, 232, 0.78);
    backdrop-filter: blur(22px);
}

body[data-page^="ensaio"] .nav {
    min-height: 82px;
}

body[data-page^="ensaio"] .nav-brand,
body[data-page^="ensaio"] .nav-links a:hover,
body[data-page^="ensaio"] .nav-links a[aria-current="page"] {
    color: var(--text-primary);
}

body[data-page^="ensaio"] .nav-brand span,
body[data-page^="ensaio"] .essay-tag,
body[data-page^="ensaio"] .essay-body h2 {
    color: var(--accent);
}

body[data-page^="ensaio"] .nav-links a,
body[data-page^="ensaio"] .lang-btn {
    color: rgba(23, 20, 17, 0.6);
}

body[data-page^="ensaio"] .lang-switcher,
body[data-page^="ensaio"] .theme-toggle,
body[data-page^="ensaio"] .contact-link {
    border-color: rgba(23, 20, 17, 0.14);
    background: rgba(255, 250, 241, 0.56);
}

body[data-page^="ensaio"] .lang-btn.active {
    color: #fffaf1;
    background: #171411;
    border-color: #171411;
}

body[data-page^="ensaio"] .theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px;
    color: var(--text-primary);
    cursor: pointer;
}

body[data-page^="ensaio"] .theme-toggle-mark {
    position: relative;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: inset -5px -2px 0 rgba(255, 250, 241, 0.78);
}

body[data-page^="ensaio"] .theme-toggle-mark::before {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: 0;
}

body[data-page^="ensaio"] .essay-main {
    padding-top: 82px;
}

body[data-page^="ensaio"] .essay-article {
    width: min(1180px, calc(100% - 48px));
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 0 108px;
}

body[data-page^="ensaio"] .essay-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin-bottom: 28px;
    color: rgba(23, 20, 17, 0.58);
    font-size: 0.84rem;
    font-weight: 850;
    text-decoration: none;
}

body[data-page^="ensaio"] .essay-hero {
    position: static;
    display: grid;
    width: auto;
    grid-template-columns: minmax(0, 0.78fr) minmax(260px, 0.34fr);
    column-gap: clamp(32px, 6vw, 92px);
    row-gap: 28px;
    align-items: end;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(23, 20, 17, 0.14);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: auto;
}

body[data-page^="ensaio"] .essay-meta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
}

body[data-page^="ensaio"] .essay-tag {
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

body[data-page^="ensaio"] .essay-date {
    color: rgba(23, 20, 17, 0.48);
    font-size: 0.78rem;
    font-weight: 850;
}

body[data-page^="ensaio"] .essay-hero h1 {
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(2.7rem, 5.1vw, 6rem);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: 0;
}

body[data-page^="ensaio"] .essay-hero > p {
    margin: 0 0 6px;
    color: rgba(23, 20, 17, 0.62);
    font-size: clamp(1rem, 1.25vw, 1.16rem);
    font-weight: 600;
    line-height: 1.62;
}

body[data-page^="ensaio"] .essay-body {
    max-width: 760px;
    margin: 54px auto 0;
}

body[data-page^="ensaio"] .essay-body h2 {
    margin: 48px 0 18px;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.1vw, 2.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

body[data-page^="ensaio"] .essay-body p {
    margin: 0 0 24px;
    color: rgba(23, 20, 17, 0.7);
    font-size: clamp(1.04rem, 1.25vw, 1.15rem);
    line-height: 1.86;
}

body[data-page^="ensaio"] .essay-body p strong {
    color: var(--text-primary);
    font-weight: 850;
}

body[data-page^="ensaio"] .essay-body blockquote {
    margin: 42px 0;
    padding: 26px 0 26px 28px;
    border-left: 2px solid var(--accent);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
}

body[data-page^="ensaio"] .essay-footer-note {
    max-width: 760px;
    margin: 64px auto 0;
    padding: 28px 0 0;
    border-top: 1px solid rgba(23, 20, 17, 0.14);
    background: transparent;
}

body[data-page^="ensaio"] .essay-footer-note p {
    max-width: 680px;
    margin: 0;
    color: rgba(23, 20, 17, 0.58);
    font-size: 0.94rem;
    font-weight: 650;
    line-height: 1.65;
}

body[data-page^="ensaio"] .essay-next-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

body[data-page^="ensaio"] .contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 17px;
    border: 1px solid rgba(23, 20, 17, 0.14);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 850;
    text-decoration: none;
}

body[data-page^="ensaio"] > footer {
    background: #171411;
    border-top: 1px solid rgba(255, 246, 234, 0.12);
}

body[data-page^="ensaio"] > footer .footer-inner {
    border-color: rgba(255, 246, 234, 0.12);
}

body[data-page^="ensaio"] > footer p,
body[data-page^="ensaio"] > footer a {
    color: rgba(255, 246, 234, 0.62);
}

body[data-page^="ensaio"][data-theme="dark"] {
    --bg-primary: #0f0d0a;
    --bg-secondary: #17130f;
    --bg-card: #1d1712;
    --bg-card-hover: #251e17;
    --text-primary: #fff6ea;
    --text-secondary: #d8cabb;
    --text-muted: #a99785;
    --accent: #f06d4f;
    --border-subtle: rgba(255, 246, 234, 0.16);
    --border-hover: rgba(240, 109, 79, 0.42);
    background: #0f0d0a;
}

body[data-page^="ensaio"][data-theme="dark"]::before {
    background:
        linear-gradient(90deg, rgba(255, 246, 234, 0.045) 1px, transparent 1px) 0 0 / 96px 96px,
        radial-gradient(circle at 82% 4%, rgba(240, 109, 79, 0.12), transparent 34%),
        linear-gradient(180deg, #0f0d0a, #14100d);
}

body[data-page^="ensaio"][data-theme="dark"] > header {
    border-bottom-color: rgba(255, 246, 234, 0.12);
    background: rgba(15, 13, 10, 0.78);
}

body[data-page^="ensaio"][data-theme="dark"] .nav-brand,
body[data-page^="ensaio"][data-theme="dark"] .nav-links a:hover,
body[data-page^="ensaio"][data-theme="dark"] .nav-links a[aria-current="page"],
body[data-page^="ensaio"][data-theme="dark"] .essay-hero h1,
body[data-page^="ensaio"][data-theme="dark"] .essay-body p strong,
body[data-page^="ensaio"][data-theme="dark"] .essay-body blockquote,
body[data-page^="ensaio"][data-theme="dark"] .contact-link {
    color: var(--text-primary);
}

body[data-page^="ensaio"][data-theme="dark"] .nav-links a,
body[data-page^="ensaio"][data-theme="dark"] .lang-btn,
body[data-page^="ensaio"][data-theme="dark"] .essay-back,
body[data-page^="ensaio"][data-theme="dark"] .essay-date,
body[data-page^="ensaio"][data-theme="dark"] .essay-hero > p,
body[data-page^="ensaio"][data-theme="dark"] .essay-body p,
body[data-page^="ensaio"][data-theme="dark"] .essay-footer-note p {
    color: rgba(255, 246, 234, 0.66);
}

body[data-page^="ensaio"][data-theme="dark"] .lang-switcher,
body[data-page^="ensaio"][data-theme="dark"] .theme-toggle,
body[data-page^="ensaio"][data-theme="dark"] .contact-link {
    border-color: rgba(255, 246, 234, 0.16);
    background: rgba(255, 246, 234, 0.07);
}

body[data-page^="ensaio"][data-theme="dark"] .lang-btn.active {
    color: #0f0d0a;
    background: #fff6ea;
    border-color: #fff6ea;
}

body[data-page^="ensaio"][data-theme="dark"] .theme-toggle-mark {
    background: currentColor;
    box-shadow: none;
}

body[data-page^="ensaio"][data-theme="dark"] .theme-toggle-mark::before {
    opacity: 0.34;
}

body[data-page^="ensaio"][data-theme="dark"] .essay-hero,
body[data-page^="ensaio"][data-theme="dark"] .essay-footer-note {
    border-color: rgba(255, 246, 234, 0.14);
}

body[data-page^="ensaio"][data-theme="dark"] > footer {
    background: #090806;
}

body[data-page="index"][data-theme="dark"] .ledger-row:first-child {
    border-bottom-color: rgba(255, 246, 234, 0.14);
    background: transparent;
}

@media (max-width: 980px) {
    body[data-page^="ensaio"] .essay-hero,
    body[data-page="writing"] .writing-hero {
        grid-template-columns: 1fr;
    }

    body[data-page^="ensaio"] .essay-hero h1 {
        max-width: 880px;
    }
}

@media (max-width: 760px) {
    body[data-page="writing"] .writing-hero {
        padding-top: 108px;
        padding-bottom: 42px;
    }

    body[data-page="writing"] .writing-hero h1 {
        font-size: clamp(2.2rem, 9.2vw, 3.1rem);
    }

    body[data-page^="ensaio"] .nav {
        min-height: 74px;
    }

    body[data-page^="ensaio"] .nav-links {
        display: none;
    }

    body[data-page^="ensaio"] .nav-actions {
        gap: 8px;
    }

    body[data-page^="ensaio"] .essay-main {
        padding-top: 74px;
    }

    body[data-page^="ensaio"] .essay-article {
        width: min(100% - 40px, 1180px);
        padding-top: 34px;
        padding-bottom: 72px;
    }

    body[data-page^="ensaio"] .essay-hero {
        gap: 22px;
        padding-bottom: 34px;
    }

    body[data-page^="ensaio"] .essay-hero h1 {
        font-size: clamp(2rem, 9vw, 2.95rem);
        line-height: 0.98;
        overflow-wrap: break-word;
    }

    body[data-page^="ensaio"] .essay-body {
        margin-top: 38px;
    }

    body[data-page^="ensaio"] .essay-body p {
        font-size: 1rem;
        line-height: 1.78;
    }

    body[data-page^="ensaio"] .essay-body blockquote {
        margin: 34px 0;
        padding-left: 20px;
    }

    body[data-page^="ensaio"] .essay-next-links {
        flex-direction: column;
        align-items: stretch;
    }

    body[data-page^="ensaio"] .contact-link {
        justify-content: center;
    }

    body[data-page="index"] .ledger-row:first-child {
        grid-template-columns: 1fr;
        padding: 0 0 24px;
    }
}

/* Home polish: time-based details without mouse-follow effects */
body[data-page="index"] .hero h1 {
    text-wrap: balance;
}

body[data-page="index"] .hero-highlight {
    position: relative;
    display: inline-block;
    isolation: isolate;
}

body[data-page="index"] .hero-highlight::before {
    content: "";
    position: absolute;
    left: -0.03em;
    right: -0.05em;
    bottom: 0.02em;
    z-index: -1;
    height: 0.2em;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(214, 84, 54, 0.18), rgba(214, 84, 54, 0.46), rgba(214, 84, 54, 0.18));
    background-size: 220% 100%;
    animation: heroTrustMark 5.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

body[data-page="index"] .hero-highlight::after {
    content: "";
    position: absolute;
    left: -0.02em;
    right: 0.1em;
    bottom: -0.04em;
    height: 2px;
    background: currentColor;
    opacity: 0.18;
    transform: scaleX(0.72);
    transform-origin: left center;
}

body[data-page="index"] .hero-content > .reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: editorialRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body[data-page="index"] .hero-content > .reveal:nth-child(2) {
    animation-delay: 0.1s;
}

body[data-page="index"] .hero-content > .reveal:nth-child(3) {
    animation-delay: 0.2s;
}

body[data-page="index"] .hero-content > .reveal:nth-child(4) {
    animation-delay: 0.3s;
}

body[data-page="index"] .hero-assurance span,
body[data-page="index"] .cert-track span {
    transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

body[data-page="index"] .hero-assurance span:hover,
body[data-page="index"] .cert-track span:hover {
    color: var(--text-primary);
    border-color: rgba(214, 84, 54, 0.34);
    transform: translateY(-1px);
}

body[data-page="index"] .trust-item {
    position: relative;
}

body[data-page="index"] .trust-item::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-page="index"] .trust-item:hover::before {
    width: 54px;
}

body[data-page="index"] .section-label,
body[data-page="index"] .section-kicker {
    position: relative;
}

body[data-page="index"] .section-label::after,
body[data-page="index"] .section-kicker::after {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    margin-top: 10px;
    background: currentColor;
    opacity: 0.45;
    transform: scaleX(0.72);
    transform-origin: left center;
}

body[data-page="index"] .signal-card h3,
body[data-page="index"] .ledger-row strong,
body[data-page="index"] .writing-row strong {
    transition: color 0.25s ease, transform 0.25s ease;
}

body[data-page="index"] .signal-card:hover h3,
body[data-page="index"] .ledger-row:hover strong,
body[data-page="index"] .writing-row:hover strong {
    color: #b8422d;
}

body[data-page="index"] .writing-row {
    position: relative;
    overflow: hidden;
}

body[data-page="index"] .writing-row::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-page="index"] .writing-row:hover::before {
    width: 92px;
}

body[data-page="index"] .writing-row .icon-slot {
    transition: transform 0.25s ease, color 0.25s ease;
}

body[data-page="index"] .writing-row:hover .icon-slot {
    color: var(--accent);
    transform: translateX(4px);
}

body[data-page="index"] .brasa-panel {
    position: relative;
    overflow: hidden;
}

body[data-page="index"] .brasa-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 84px;
    height: 2px;
    background: #d66a34;
}

body[data-page="index"][data-theme="dark"] .hero-highlight::before {
    background: linear-gradient(90deg, rgba(240, 109, 79, 0.14), rgba(240, 109, 79, 0.42), rgba(240, 109, 79, 0.14));
}

body[data-page="index"][data-theme="dark"] .signal-card:hover h3,
body[data-page="index"][data-theme="dark"] .ledger-row:hover strong,
body[data-page="index"][data-theme="dark"] .writing-row:hover strong {
    color: #f06d4f;
}

@keyframes heroTrustMark {
    0%, 100% {
        background-position: 0% 50%;
        opacity: 0.62;
    }
    48% {
        background-position: 100% 50%;
        opacity: 1;
    }
}

@keyframes editorialRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body[data-page="index"] .hero-highlight::before,
    body[data-page="index"] .hero-content > .reveal {
        animation: none;
    }

    body[data-page="index"] .hero-content > .reveal {
        opacity: 1;
        transform: none;
    }
}
