/* =====================================================================
   Tawazun — Design System
   McKinsey meets Islamic architecture meets editorial magazine
   ===================================================================== */

:root {
    /* Brand palette — as specified in the brief */
    --c-bg:        #07111C;   /* primary near-black navy */
    --c-surface:   #0C1E30;   /* slightly lighter navy for cards */
    --c-surface-2: #11273C;
    --c-gold:      #C89A36;   /* warm gold accent */
    --c-gold-2:    #DDB84A;   /* lighter gold for headlines */
    --c-body:      #C4D4DE;   /* smoke blue body text */
    --c-muted:     #8A9FAA;   /* muted */
    --c-cream:     #F5F2EE;
    --c-red:       #B83030;   /* Training 01 accent */
    --c-green:     #1F7856;   /* Training 03 accent */

    /* Typography */
    --f-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --f-body:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --f-label: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --f-ar:    'Noto Kufi Arabic', var(--f-body);

    /* Rhythm */
    --max-w: 1280px;
    --max-w-narrow: 880px;
    --gap-xs: 0.5rem;
    --gap-sm: 1rem;
    --gap-md: 2rem;
    --gap-lg: 4rem;
    --gap-xl: 6rem;
    --radius: 2px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[lang="ar"], html[dir="rtl"] { direction: rtl; }
html[lang="ar"] body, html[dir="rtl"] body { font-family: var(--f-ar); }

body {
    font-family: var(--f-body);
    background: var(--c-bg);
    color: var(--c-body);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ====== Typography tokens ====== */
h1, h2, h3, h4, h5 {
    font-family: var(--f-serif);
    font-weight: 600;
    color: var(--c-cream);
    letter-spacing: -0.02em;
    line-height: 1.15;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.75rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; }
em { font-style: italic; color: var(--c-gold-2); }

.eyebrow {
    display: inline-block;
    font-family: var(--f-label);
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.tm {
    font-family: var(--f-body);
    font-size: 0.55em;
    vertical-align: super;
    margin-left: 0.1em;
    color: var(--c-gold);
    opacity: 0.9;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(24px, 6vw, 80px);
}
.container.narrow { max-width: var(--max-w-narrow); }

/* ====== Buttons ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.75rem;
    font-family: var(--f-label);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: all 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}
.btn-sm { padding: 0.65rem 1.15rem; font-size: 0.72rem; letter-spacing: 0.16em; }
.btn-gold {
    background: var(--c-gold);
    color: var(--c-bg);
    border-color: var(--c-gold);
}
.btn-gold:hover { background: var(--c-gold-2); border-color: var(--c-gold-2); }
.btn-ghost {
    background: transparent;
    color: var(--c-cream);
    border-color: rgba(196, 212, 222, 0.25);
}
.btn-ghost:hover { border-color: var(--c-gold); color: var(--c-gold); }
.btn-accent-red   { background: var(--c-red);   color: #fff; border-color: var(--c-red); }
.btn-accent-red:hover { background: #a22828; border-color: #a22828; }
.btn-accent-gold  { background: var(--c-gold);  color: var(--c-bg); border-color: var(--c-gold); }
.btn-accent-gold:hover { background: var(--c-gold-2); border-color: var(--c-gold-2); }
.btn-accent-green { background: var(--c-green); color: #fff; border-color: var(--c-green); }
.btn-accent-green:hover { background: #186146; border-color: #186146; }

/* ====== Loading screen ====== */
.loading-screen {
    position: fixed; inset: 0;
    background: var(--c-bg);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    animation: fadeOutScreen 0.5s ease-out 1.4s forwards;
}
.loading-text {
    font-family: var(--f-serif);
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--c-gold);
    letter-spacing: 0.12em;
    animation: pulse 1.4s ease-in-out infinite;
    font-weight: 700;
}
@keyframes pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes fadeOutScreen {
    to { opacity: 0; pointer-events: none; visibility: hidden; }
}

/* ====== Header / Nav ====== */
#site-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.15rem 0;
    background: rgba(7, 17, 28, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s, padding 0.3s;
}
#site-header.scrolled {
    background: rgba(7, 17, 28, 0.96);
    border-bottom-color: rgba(200, 154, 54, 0.18);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(24px, 6vw, 80px);
    display: flex; align-items: center;
    gap: 2rem;
}
.brand {
    display: inline-flex; align-items: center; gap: 0.7rem;
    font-family: var(--f-serif);
    color: var(--c-cream);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease;
}
.brand-mark {
    width: 34px; height: 34px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23C89A36' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='20' cy='20' r='17'/%3E%3Cpath d='M20 7 L30 20 L20 33 L10 20 Z'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='1.5' fill='%23C89A36'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.45s cubic-bezier(.2,.7,.3,1);
}
.brand:hover .brand-mark { transform: rotate(45deg); }
.brand-word {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.01em;
    color: var(--c-cream);
    transition: color 0.25s ease;
    line-height: 1;
}
.brand:hover .brand-word { color: var(--c-gold-2); }
#site-header.scrolled .brand-mark { width: 28px; height: 28px; }
#site-header.scrolled .brand-word { font-size: 1.15rem; }

.primary-nav {
    display: flex; gap: 1.85rem;
    margin-left: auto;
}
.primary-nav a {
    font-family: var(--f-label);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-body);
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.2s;
}
.primary-nav a::after {
    content: ''; position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px; background: var(--c-gold);
    transition: width 0.25s;
}
.primary-nav a:hover { color: var(--c-gold-2); }
.primary-nav a:hover::after { width: 100%; }

.nav-utilities {
    display: flex; align-items: center; gap: 1.25rem;
}
.lang-switch {
    display: flex; align-items: center;
    border: 1px solid rgba(196, 212, 222, 0.18);
    border-radius: 2px;
    padding: 2px;
}
.lang-btn {
    padding: 0.35rem 0.55rem;
    font-family: var(--f-label);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--c-muted);
    transition: all 0.2s;
}
.lang-btn.is-active { color: var(--c-gold); }
.lang-btn:hover { color: var(--c-gold-2); }

.nav-toggle { display: none; width: 32px; height: 32px; position: relative; }
.nav-toggle span {
    display: block; position: absolute; left: 4px;
    width: 24px; height: 1.5px; background: var(--c-cream);
    transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle span:nth-child(1) { top: 10px; }
.nav-toggle span:nth-child(2) { top: 16px; }
.nav-toggle span:nth-child(3) { top: 22px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ====== Section basics ====== */
section { padding: clamp(5rem, 10vw, 9rem) 0; position: relative; }

.section-head { max-width: 720px; margin-bottom: clamp(3rem, 5vw, 5rem); }
.section-title { margin-bottom: 1.25rem; }
.section-intro { color: var(--c-body); font-size: 1.08rem; max-width: 55ch; }

/* ====== Hero ====== */
.hero {
    padding-top: clamp(10rem, 15vw, 13rem);
    padding-bottom: clamp(4rem, 7vw, 7rem);
    position: relative;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(200, 154, 54, 0.08), transparent 50%),
        var(--c-bg);
    overflow: hidden;
}
.hero-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 clamp(24px, 6vw, 80px);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 5vw, 6rem);
    align-items: center;
    position: relative; z-index: 1;
}
.hero-copy { max-width: 640px; }
.hero-headline {
    font-weight: 700;
    margin: 0.5rem 0 1.75rem;
}
.hero-headline em { font-weight: 900; }
.hero-sub {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--c-body);
    margin-bottom: 2.25rem;
    max-width: 52ch;
}
.hero-actions {
    display: flex; flex-wrap: wrap; gap: 0.85rem;
    margin-bottom: 2.5rem;
}
.hero-meta {
    display: flex; align-items: center; gap: 0.85rem;
    font-family: var(--f-label);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-muted);
}
.hero-meta .dot {
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--c-gold);
    opacity: 0.7;
}

.hero-aside {
    position: relative;
    justify-self: end;
    width: 100%;
    max-width: 440px;
}
.hero-aside-inner {
    position: relative;
    padding: clamp(2rem, 3.5vw, 3rem) clamp(1.75rem, 3vw, 2.5rem);
    background: linear-gradient(155deg, rgba(12, 30, 48, 0.95), rgba(7, 17, 28, 0.85));
    border: 1px solid rgba(200, 154, 54, 0.28);
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
    overflow: hidden;
}
.hero-aside-inner::before {
    content: ''; position: absolute;
    top: -24px; right: -24px; bottom: 24px; left: 24px;
    border: 1px solid rgba(200, 154, 54, 0.28);
    pointer-events: none; z-index: 0;
}
.hero-aside-eyebrow {
    font-family: var(--f-label);
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--c-gold);
    opacity: 0.85;
    position: relative; z-index: 1;
}
.hero-aside-arabic {
    font-family: 'Noto Kufi Arabic', var(--f-serif), serif;
    font-weight: 600;
    font-size: clamp(3.4rem, 6vw, 4.75rem);
    line-height: 1;
    color: var(--c-gold);
    margin-top: 1.25rem;
    text-align: right;
    direction: rtl;
    position: relative; z-index: 1;
    letter-spacing: 0.02em;
}
.hero-aside-divider {
    height: 1px;
    width: 64px;
    background: var(--c-gold);
    opacity: 0.6;
    margin: 1.4rem 0 1.25rem;
    position: relative; z-index: 1;
}
.hero-aside-meaning {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--c-body);
    margin: 0;
    max-width: 34ch;
    position: relative; z-index: 1;
}
.hero-aside-meaning em {
    color: var(--c-light-gold);
    font-style: italic;
    font-weight: 600;
}
.hero-aside-ornament {
    margin: 1.5rem 0 0.5rem;
    width: 100%;
    max-width: 220px;
    opacity: 0.85;
    position: relative; z-index: 1;
}
.hero-aside-ornament svg { width: 100%; height: auto; display: block; }
.hero-aside-foot {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(200, 154, 54, 0.2);
    display: flex; flex-direction: column;
    font-family: var(--f-label);
    position: relative; z-index: 1;
}
.hero-aside-foot-label {
    font-size: 0.65rem; letter-spacing: 0.25em;
    text-transform: uppercase; color: var(--c-gold);
}
.hero-aside-foot-name {
    font-family: var(--f-serif);
    font-size: 1.1rem;
    color: var(--c-cream);
    margin-top: 0.25rem;
}
.hero-aside-foot-title {
    font-size: 0.72rem; color: var(--c-muted);
    margin-top: 0.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-scrollhint {
    position: absolute;
    bottom: 2.5rem; left: clamp(24px, 6vw, 80px);
    display: flex; align-items: center; gap: 0.75rem;
    font-family: var(--f-label); font-size: 0.7rem;
    letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--c-muted);
    z-index: 1;
}
.hint-line {
    width: 60px; height: 1px; background: var(--c-gold);
    position: relative; overflow: hidden;
}
.hint-line::after {
    content: ''; position: absolute;
    left: -20px; top: 0; width: 20px; height: 100%;
    background: rgba(7,17,28,0.8);
    animation: hint 2.5s ease-in-out infinite;
}
@keyframes hint {
    0% { left: -20px; } 100% { left: 80px; }
}

/* ====== Manifesto ====== */
.manifesto {
    background: var(--c-bg);
    text-align: left;
    border-top: 1px solid rgba(200, 154, 54, 0.12);
    border-bottom: 1px solid rgba(200, 154, 54, 0.12);
}
.manifesto-lead {
    font-family: var(--f-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    color: var(--c-cream);
    line-height: 1.25;
    margin-bottom: 1.5rem;
    font-weight: 400;
}
.manifesto-lead em { font-style: italic; color: var(--c-gold-2); font-weight: 700; }
.manifesto-body {
    font-size: 1.08rem;
    color: var(--c-body);
    max-width: 62ch;
    margin-bottom: 2rem;
}
.manifesto-divider {
    width: 72px; height: 1px;
    background: var(--c-gold);
    opacity: 0.5;
    margin-bottom: 1.5rem;
}
.manifesto-slogan {
    font-family: var(--f-serif);
    font-style: italic;
    color: var(--c-gold);
    font-size: 1.2rem;
    letter-spacing: 0.02em;
}

/* ====== Trainings ====== */
.trainings { background: var(--c-bg); }
.training-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.75rem);
}
.training-grid.grid-5 {
    grid-template-columns: repeat(3, 1fr);
}
.training-grid.grid-5 > .training-card:nth-child(4),
.training-grid.grid-5 > .training-card:nth-child(5) {
    grid-column: span 1;
}
@media (min-width: 901px) {
    .training-grid.grid-5 > .training-card:nth-child(4) { grid-column: 1 / span 1; }
    .training-grid.grid-5 > .training-card:nth-child(5) { grid-column: 3 / span 1; }
}
.training-card {
    position: relative;
    background: var(--c-surface);
    overflow: hidden;
    display: flex;
    transition: transform 0.3s, box-shadow 0.3s;
}
.training-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.training-accent { flex: 0 0 6px; }
.training-card[data-accent="red"]   .training-accent { background: var(--c-red); }
.training-card[data-accent="gold"]  .training-accent { background: var(--c-gold); }
.training-card[data-accent="green"] .training-accent { background: var(--c-green); }
.training-card[data-accent="navy"]  .training-accent { background: #2B4968; }
.training-card[data-accent="teal"]  .training-accent { background: #4C8580; }
.btn-accent-navy { background: #2B4968; color: #fff; border-color: #2B4968; }
.btn-accent-navy:hover { background: #3a6289; border-color: #3a6289; }
.btn-accent-teal { background: #4C8580; color: #fff; border-color: #4C8580; }
.btn-accent-teal:hover { background: #5ea19b; border-color: #5ea19b; }

.training-inner {
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
    display: flex; flex-direction: column;
    flex: 1;
}
.training-number {
    font-family: var(--f-serif);
    font-size: 3.5rem;
    color: var(--c-gold);
    opacity: 0.2;
    line-height: 1;
    font-weight: 900;
    margin-bottom: 0.5rem;
}
.training-badge {
    display: inline-block;
    font-family: var(--f-label);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-gold);
    padding: 0.4rem 0;
    border-top: 1px solid rgba(200, 154, 54, 0.3);
    border-bottom: 1px solid rgba(200, 154, 54, 0.3);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}
.training-title {
    font-size: clamp(1.3rem, 1.7vw, 1.6rem);
    margin-bottom: 0.85rem;
    color: var(--c-cream);
}
.training-tagline {
    font-family: var(--f-serif);
    font-style: italic;
    color: var(--c-gold-2);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    padding-left: 1rem;
    border-left: 1px solid var(--c-gold);
}
.training-desc {
    color: var(--c-body);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.65;
}
.training-meta { list-style: none; margin-bottom: 1.5rem; padding: 0; }
.training-meta li {
    font-family: var(--f-label);
    font-size: 0.78rem;
    color: var(--c-muted);
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(196, 212, 222, 0.08);
}
.training-meta li:last-child { border-bottom: 0; }
.training-audience {
    display: flex; flex-wrap: wrap; gap: 0.35rem;
    margin-bottom: 1.75rem;
    align-items: center;
}
.training-audience > span:first-child {
    font-family: var(--f-label);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-right: 0.25rem;
}
.pill {
    font-family: var(--f-label);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.7rem;
    background: rgba(200, 154, 54, 0.08);
    color: var(--c-gold-2);
    border: 1px solid rgba(200, 154, 54, 0.2);
    border-radius: 100px;
}
.training-card .btn { margin-top: auto; align-self: flex-start; }

/* ====== Method ====== */
.method { background: var(--c-surface); }
.method-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(200, 154, 54, 0.2);
    list-style: none;
    position: relative;
}
.method-row::before {
    content: '';
    position: absolute;
    top: 40%; left: 5%; right: 5%;
    height: 1px; background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
    opacity: 0.4;
    z-index: 0;
}
.method-step {
    position: relative;
    background: var(--c-surface);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    min-height: 260px;
    display: flex; flex-direction: column;
    justify-content: flex-end;
}
.step-bg {
    position: absolute;
    top: 0.5rem; right: 1rem;
    font-family: var(--f-serif);
    font-size: clamp(5rem, 9vw, 8rem);
    font-weight: 900;
    color: var(--c-gold);
    opacity: 0.08;
    line-height: 0.85;
    pointer-events: none;
}
.step-label {
    font-family: var(--f-label);
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 0.75rem;
}
.step-title {
    font-family: var(--f-serif);
    font-size: clamp(1.5rem, 2vw, 1.85rem);
    color: var(--c-cream);
    margin-bottom: 0.85rem;
}
.step-desc {
    color: var(--c-body);
    font-size: 0.95rem;
    max-width: 28ch;
}

/* ====== Pull quote ====== */
.pullquote {
    background: var(--c-bg);
    text-align: center;
    padding: clamp(4rem, 8vw, 7rem) 0;
}
.pullquote blockquote p {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--c-gold-2);
    line-height: 1.3;
    max-width: 22ch;
    margin: 0 auto 1.5rem;
}
.pullquote cite {
    font-family: var(--f-label);
    font-style: normal;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-muted);
}

/* ====== About ====== */
.about { background: var(--c-surface); }
.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: flex-start;
}
.about-visual { position: sticky; top: 120px; }
.about-frame {
    padding: 0;
    background: var(--c-bg);
    border: 1px solid rgba(200, 154, 54, 0.22);
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.about-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.02) contrast(1.02);
}
.about-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(7, 17, 28, 0.55) 100%);
    pointer-events: none;
}

.about-copy .section-title { margin-top: 0.25rem; margin-bottom: 0.75rem; }
.about-role {
    font-family: var(--f-label);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 1.5rem;
}
.about-lead {
    color: var(--c-body);
    font-size: 1.05rem;
    margin-bottom: 2.25rem;
}
.credential-list { margin-bottom: 2.5rem; }
.credential {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.25rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(200, 154, 54, 0.15);
    align-items: baseline;
}
.credential:last-child { border-bottom: 0; }
.cred-label {
    font-family: var(--f-label);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-gold);
}
.cred-body { color: var(--c-cream); font-size: 0.98rem; }
.about-quote { border-left: 2px solid var(--c-gold); padding-left: 1.5rem; }
.about-quote p {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--c-gold-2);
    line-height: 1.4;
}

/* ====== Sub-brands ====== */
.subbrands { background: var(--c-bg); }
.subbrand-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.subbrand {
    padding: 1.75rem 1.5rem;
    background: var(--c-surface);
    border: 1px solid rgba(200, 154, 54, 0.12);
    transition: border-color 0.25s, transform 0.25s;
    position: relative;
}
.subbrand.live:hover { border-color: var(--c-gold); transform: translateY(-3px); }
.subbrand.soon { opacity: 0.55; }
.sub-status {
    display: inline-block;
    font-family: var(--f-label);
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    margin-bottom: 1rem;
    border-radius: 100px;
}
.subbrand.live .sub-status { background: rgba(31, 120, 86, 0.15); color: #4fb68d; }
.subbrand.soon .sub-status { background: rgba(196, 212, 222, 0.08); color: var(--c-muted); }
.sub-name {
    font-family: var(--f-serif);
    font-size: 1.15rem;
    color: var(--c-cream);
    margin-bottom: 0.5rem;
}
.sub-desc { color: var(--c-muted); font-size: 0.9rem; line-height: 1.5; }

/* ====== Tools (premium full-section treatment) ====== */
.tools {
    background: var(--c-bg);
    border-top: 1px solid rgba(200, 154, 54, 0.12);
    position: relative;
    overflow: hidden;
}
.tools::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(200, 154, 54, 0.09), transparent 45%),
        radial-gradient(ellipse at 90% 80%, rgba(200, 154, 54, 0.05), transparent 40%);
    pointer-events: none;
}
.tools .container { position: relative; z-index: 1; }
.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.25rem, 2vw, 2rem);
}
.tool-card {
    position: relative;
    padding: clamp(2.25rem, 4vw, 3.5rem);
    background: linear-gradient(180deg, #0D2236 0%, #0A1A28 100%);
    border: 1px solid rgba(200, 154, 54, 0.18);
    display: flex; flex-direction: column;
    min-height: 320px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s, background 0.3s;
    overflow: hidden;
    text-decoration: none;
}
.tool-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 140px; height: 140px;
    background: radial-gradient(circle at top right, rgba(200, 154, 54, 0.08), transparent 70%);
    pointer-events: none;
}
.tool-card:hover {
    border-color: var(--c-gold);
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(200, 154, 54, 0.3);
}
.tool-no {
    font-family: var(--f-label);
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    color: var(--c-gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}
.tool-name {
    font-family: var(--f-serif);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    color: var(--c-gold-2);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}
.tool-divider {
    width: 64px;
    height: 1px;
    background: var(--c-gold);
    margin-bottom: 1.5rem;
    opacity: 0.85;
}
.tool-desc {
    color: var(--c-body);
    font-size: 1rem;
    flex: 1;
    margin-bottom: 2rem;
    line-height: 1.65;
    max-width: 38ch;
}
.tool-cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1.6rem;
    font-family: var(--f-label);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    color: var(--c-gold);
    text-transform: uppercase;
    border: 1px solid var(--c-gold);
    border-radius: 2px;
    transition: background 0.25s, color 0.25s;
    font-weight: 500;
}
.tool-card:hover .tool-cta {
    background: var(--c-gold);
    color: var(--c-bg);
}

/* ====== Join CTA ====== */
.join-cta {
    background: var(--c-surface);
    border-top: 1px solid rgba(200, 154, 54, 0.15);
    border-bottom: 1px solid rgba(200, 154, 54, 0.15);
}
.join-inner { max-width: 780px; }
.join-title { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 1.25rem; }
.join-sub { color: var(--c-body); font-size: 1.08rem; margin-bottom: 2.25rem; }
.join-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ====== Footer ====== */
.site-footer {
    background: var(--c-bg);
    padding-top: clamp(3rem, 6vw, 5rem);
}
.footer-logo-row {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}
.footer-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}
.footer-wordmark-mark {
    width: 40px; height: 40px;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23C89A36' stroke-width='1' stroke-linecap='round' stroke-linejoin='round' opacity='0.9'%3E%3Ccircle cx='20' cy='20' r='17'/%3E%3Cpath d='M20 7 L30 20 L20 33 L10 20 Z'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='1.5' fill='%23C89A36'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.footer-wordmark-text {
    font-family: var(--f-serif);
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.02em;
    color: var(--c-cream);
    line-height: 1;
}
.footer-slogan {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    color: var(--c-gold);
    text-align: center;
    opacity: 0.75;
    margin-bottom: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(200, 154, 54, 0.12);
}
.footer-col h4 {
    font-family: var(--f-label);
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 1.25rem;
    font-weight: 500;
}
.footer-col a, .footer-col span {
    display: block;
    color: var(--c-body);
    font-size: 0.9rem;
    padding: 0.35rem 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--c-gold); }
.footer-goldbar {
    background: var(--c-gold);
    color: var(--c-bg);
    padding: 1rem 0;
    margin-top: 2rem;
}
.goldbar-row {
    display: flex; flex-wrap: wrap; gap: 1.25rem;
    justify-content: space-between;
    font-family: var(--f-label);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--c-bg);
}
.gb-brand { font-family: var(--f-serif); font-size: 1rem; font-weight: 700; }

/* ====== Chat launcher ====== */
.chat-launcher {
    position: fixed;
    right: 1.75rem; bottom: 1.75rem;
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 1.1rem 0.6rem 0.6rem;
    background: var(--c-surface);
    border: 1px solid var(--c-gold);
    color: var(--c-gold);
    font-family: var(--f-label);
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    z-index: 950;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.chat-launcher:hover { background: var(--c-gold); color: var(--c-bg); }

.chat-panel {
    position: fixed;
    right: 1.75rem; bottom: 5.5rem;
    width: min(380px, calc(100vw - 3.5rem));
    max-height: 560px;
    background: var(--c-surface);
    border: 1px solid var(--c-gold);
    display: flex; flex-direction: column;
    z-index: 960;
    transform: translateY(20px); opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.chat-panel.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.chat-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(200, 154, 54, 0.2);
}
.chat-title { font-family: var(--f-serif); color: var(--c-gold-2); font-size: 1.1rem; font-weight: 700; }
.chat-sub { font-size: 0.7rem; color: var(--c-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.chat-close { color: var(--c-muted); font-size: 1.6rem; line-height: 1; padding: 0 0.4rem; }
.chat-close:hover { color: var(--c-gold); }
.chat-body {
    flex: 1;
    padding: 1rem 1.25rem;
    overflow-y: auto;
    display: flex; flex-direction: column; gap: 0.75rem;
    min-height: 200px;
    max-height: 360px;
}
.chat-msg {
    padding: 0.7rem 0.9rem;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 86%;
}
.chat-msg.bot {
    background: rgba(200, 154, 54, 0.08);
    border-left: 2px solid var(--c-gold);
    color: var(--c-body);
}
.chat-msg.user {
    background: rgba(196, 212, 222, 0.08);
    align-self: flex-end;
    color: var(--c-cream);
}
.chat-form {
    display: flex; padding: 0.75rem; gap: 0.5rem;
    border-top: 1px solid rgba(200, 154, 54, 0.2);
}
.chat-form input {
    flex: 1;
    background: var(--c-bg);
    border: 1px solid rgba(200, 154, 54, 0.2);
    color: var(--c-cream);
    padding: 0.65rem 0.85rem;
    font-family: var(--f-body);
    font-size: 0.9rem;
    border-radius: 2px;
}
.chat-form input:focus { outline: none; border-color: var(--c-gold); }
.chat-form button {
    width: 42px; height: 42px;
    background: var(--c-gold);
    color: var(--c-bg);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 2px;
}
.chat-form button:hover { background: var(--c-gold-2); }
.chat-fineprint {
    padding: 0.5rem 1.25rem 0.85rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--c-muted);
    text-align: center;
    text-transform: uppercase;
}

/* ====== Sub-page content helpers ====== */
.page-hero {
    position: relative;
    padding: clamp(9rem, 14vw, 12rem) 0 clamp(3rem, 5vw, 5rem);
    background:
        radial-gradient(ellipse at 88% 18%, rgba(200, 154, 54, 0.1), transparent 55%),
        radial-gradient(ellipse at 8% 90%, rgba(31, 120, 86, 0.05), transparent 55%),
        var(--c-bg);
    border-bottom: 1px solid rgba(200, 154, 54, 0.15);
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 50%; right: -80px;
    transform: translateY(-50%);
    width: clamp(260px, 30vw, 420px);
    height: clamp(260px, 30vw, 420px);
    pointer-events: none;
    opacity: 0.45;
    border: 1px solid rgba(200, 154, 54, 0.28);
    border-radius: 50%;
}
.page-hero::after {
    content: '';
    position: absolute;
    top: 50%; right: calc(-80px + (clamp(260px, 30vw, 420px) * 0.5));
    transform: translate(-50%, -50%);
    width: clamp(120px, 16vw, 200px);
    height: clamp(120px, 16vw, 200px);
    pointer-events: none;
    border: 1px solid rgba(200, 154, 54, 0.22);
    border-radius: 50%;
    opacity: 0.65;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .eyebrow { margin-bottom: 0.75rem; }
.page-hero p { max-width: 60ch; color: var(--c-body); font-size: 1.05rem; }

/* Matching-tool callout on division pages */
.tool-pairing {
    position: relative;
    margin-top: clamp(2rem, 5vw, 3rem);
    padding: clamp(1.75rem, 3.5vw, 2.5rem);
    background:
        linear-gradient(155deg, rgba(200, 154, 54, 0.1), rgba(7, 17, 28, 0) 60%),
        var(--c-surface);
    border: 1px solid rgba(200, 154, 54, 0.35);
    border-radius: 3px;
    display: grid;
    grid-template-columns: 76px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    overflow: hidden;
}
.tool-pairing::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(200, 154, 54, 0.2), transparent 50%);
    pointer-events: none;
}
.tool-pairing-icon {
    position: relative;
    width: 72px; height: 72px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: radial-gradient(circle at 30% 30%, rgba(245, 228, 181, 0.3), transparent 60%), rgba(200, 154, 54, 0.14);
    border: 1px solid rgba(200, 154, 54, 0.55);
    color: var(--c-gold-2);
    box-shadow: inset 0 0 20px rgba(200, 154, 54, 0.1);
}
.tool-pairing-icon svg {
    width: 30px; height: 30px;
    stroke: currentColor;
    fill: none; stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.tool-pairing-body {
    position: relative;
}
.tool-pairing-eyebrow {
    display: block;
    font-family: var(--f-label);
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 0.35rem;
}
.tool-pairing-name {
    font-family: var(--f-serif);
    font-size: 1.25rem;
    color: var(--c-cream);
    margin-bottom: 0.35rem;
    font-weight: 600;
}
.tool-pairing-desc {
    color: var(--c-body);
    font-size: 0.94rem;
    line-height: 1.55;
    margin: 0;
}
.tool-pairing-cta { position: relative; white-space: nowrap; }
@media (max-width: 720px) {
    .tool-pairing { grid-template-columns: 1fr; text-align: left; }
    .tool-pairing-icon { margin-bottom: 0.25rem; }
}

/* Pillar card decorative glyphs */
.pillar-card { position: relative; overflow: hidden; }
.pillar-glyph {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    width: 44px; height: 44px;
    color: rgba(200, 154, 54, 0.5);
    opacity: 0.95;
    transition: color 0.3s ease, opacity 0.3s ease;
}
.pillar-card:hover .pillar-glyph { color: var(--c-gold-2); opacity: 1; }
.pillar-glyph svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 0.9; stroke-linecap: round; stroke-linejoin: round; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.prose h3 { margin-top: 1.75rem; margin-bottom: 0.75rem; }
.prose p { margin-bottom: 1.15rem; color: var(--c-body); }
.prose ul { padding-left: 1.2rem; margin-bottom: 1.15rem; color: var(--c-body); }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--c-cream); }

/* ====== Contact form ====== */
.form-card {
    background: var(--c-surface);
    border: 1px solid rgba(200, 154, 54, 0.18);
    padding: clamp(1.75rem, 3vw, 2.75rem);
}
.form-row { margin-bottom: 1.25rem; }
.form-row label {
    display: block;
    font-family: var(--f-label);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 0.45rem;
}
.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    background: var(--c-bg);
    border: 1px solid rgba(200, 154, 54, 0.2);
    color: var(--c-cream);
    padding: 0.85rem 1rem;
    font-family: var(--f-body);
    font-size: 1rem;
    border-radius: 2px;
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
    outline: none; border-color: var(--c-gold);
}
.form-feedback {
    margin-top: 1rem;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 2px;
    display: none;
}
.form-feedback.ok    { display: block; background: rgba(31, 120, 86, 0.15); color: #4fb68d; }
.form-feedback.error { display: block; background: rgba(184, 48, 48, 0.15); color: #e87070; }

/* ====== Mobile ====== */
@media (max-width: 900px) {
    .primary-nav {
        position: fixed;
        top: 70px; left: 0; right: 0;
        background: var(--c-bg);
        flex-direction: column;
        gap: 0;
        padding: 1.5rem 1.5rem;
        border-top: 1px solid rgba(200, 154, 54, 0.15);
        transform: translateY(-100%); opacity: 0;
        pointer-events: none;
        transition: all 0.25s;
    }
    body.nav-open .primary-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .primary-nav a { padding: 0.9rem 0; border-bottom: 1px solid rgba(196, 212, 222, 0.08); width: 100%; }
    .nav-toggle { display: block; order: 3; }
    .nav-utilities .btn { display: none; }

    .hero-grid { grid-template-columns: 1fr; }
    .hero-aside { justify-self: center; max-width: 420px; width: 100%; margin-top: 2rem; }

    .training-grid,
    .training-grid.grid-5,
    .method-row,
    .subbrand-list,
    .tool-grid,
    .footer-grid { grid-template-columns: 1fr; }
    .training-grid.grid-5 > .training-card:nth-child(4),
    .training-grid.grid-5 > .training-card:nth-child(5) { grid-column: auto; }
    .method-row::before { display: none; }

    .about-grid { grid-template-columns: 1fr; }
    .about-visual { position: static; max-width: 320px; }
    .credential { grid-template-columns: 100px 1fr; gap: 0.75rem; }

    .chat-launcher { right: 1rem; bottom: 1rem; }
    .chat-panel { right: 1rem; bottom: 4.75rem; }
}

@media (max-width: 560px) {
    .goldbar-row { flex-direction: column; gap: 0.5rem; text-align: center; }
    .chat-panel { right: 0.5rem; left: 0.5rem; width: auto; }
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.9rem; }
}

/* ====== RTL adjustments ====== */
html[dir="rtl"] .hero-aside-inner::before { right: auto; left: -24px; top: -24px; bottom: 24px; }
html[dir="rtl"] .hero-aside-arabic { text-align: left; }
html[dir="rtl"] .training-accent { order: 2; }
html[dir="rtl"] .training-tagline { padding-left: 0; padding-right: 1rem; border-left: 0; border-right: 1px solid var(--c-gold); }
html[dir="rtl"] .about-quote { padding-left: 0; padding-right: 1.5rem; border-left: 0; border-right: 2px solid var(--c-gold); }
html[dir="rtl"] .chat-msg.bot { border-left: 0; border-right: 2px solid var(--c-gold); }
html[dir="rtl"] .chat-launcher { right: auto; left: 1.75rem; }
html[dir="rtl"] .chat-panel { right: auto; left: 1.75rem; }

/* ====== AI Tool (full-screen overlay) ====== */
.tool-overlay {
    position: fixed;
    inset: 0;
    background: var(--c-bg);
    z-index: 1200;
    display: none;
    overflow-y: auto;
    animation: fadeInOverlay 0.35s ease-out;
}
.tool-overlay.is-open { display: block; }
@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }
.tool-overlay-topbar {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(7, 17, 28, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 154, 54, 0.15);
    padding: 1.25rem 0;
}
.tool-overlay-topbar-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 clamp(24px, 6vw, 80px);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.tool-overlay-brand {
    display: flex; align-items: center; gap: 0.75rem;
    font-family: var(--f-serif);
    color: var(--c-gold);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
}
.tool-overlay-brand .footer-wordmark { gap: 0.6rem; }
.tool-overlay-brand .footer-wordmark-mark { width: 28px; height: 28px; }
.tool-overlay-brand .footer-wordmark-text { font-size: 1.15rem; }
.tool-overlay-progress {
    flex: 1;
    height: 3px;
    background: rgba(200, 154, 54, 0.15);
    border-radius: 100px;
    overflow: hidden;
    max-width: 380px;
}
.tool-overlay-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--c-gold), var(--c-gold-2));
    width: 0%;
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 100px;
}
.tool-overlay-close {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border: 1px solid rgba(200, 154, 54, 0.3);
    color: var(--c-gold);
    font-size: 1.4rem;
    font-weight: 300;
    border-radius: 50%;
    transition: all 0.25s;
    cursor: pointer;
}
.tool-overlay-close:hover { background: var(--c-gold); color: var(--c-bg); border-color: var(--c-gold); }
.tool-overlay-body {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 5rem) clamp(24px, 6vw, 80px) clamp(4rem, 8vw, 6rem);
    min-height: calc(100vh - 75px);
    display: flex;
    align-items: center;
}
.tool-overlay-mount { width: 100%; }
body.overlay-open { overflow: hidden; }

.tool-runner {
    min-height: 65vh;
    padding: 2rem 0 4rem;
}
.tool-runner .container { max-width: 780px; }
.tool-progress {
    height: 3px; background: rgba(200, 154, 54, 0.15);
    margin-bottom: 2.5rem;
    border-radius: 100px;
}
.tool-progress-bar {
    height: 100%; background: var(--c-gold);
    width: 0%; transition: width 0.4s;
    border-radius: 100px;
}
.tool-question { margin-bottom: 2rem; animation: slideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.tool-question h3 {
    margin-bottom: 1.75rem;
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    font-family: var(--f-serif);
    color: var(--c-cream);
    font-weight: 600;
    line-height: 1.3;
}
.tool-question .qhint {
    color: var(--c-muted);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    font-family: var(--f-label);
    letter-spacing: 0.05em;
}
.tool-step-label {
    font-family: var(--f-label);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--c-gold);
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
}
.tool-option {
    display: block;
    padding: 1.15rem 1.35rem;
    margin-bottom: 0.75rem;
    background: var(--c-surface);
    border: 1px solid rgba(200, 154, 54, 0.18);
    color: var(--c-body);
    cursor: pointer;
    font-size: 1rem;
    border-radius: 2px;
    text-align: left;
    width: 100%;
    transition: all 0.22s;
    font-family: var(--f-body);
    line-height: 1.5;
}
.tool-option:hover {
    border-color: var(--c-gold);
    color: var(--c-cream);
    transform: translateX(4px);
}
.tool-option.is-selected {
    border-color: var(--c-gold);
    background: rgba(200, 154, 54, 0.12);
    color: var(--c-cream);
    box-shadow: 0 0 0 1px var(--c-gold);
}
.tool-textarea {
    width: 100%;
    background: var(--c-surface);
    border: 1px solid rgba(200, 154, 54, 0.2);
    color: var(--c-cream);
    padding: 1.1rem 1.25rem;
    font-family: var(--f-body);
    font-size: 1rem;
    border-radius: 2px;
    min-height: 140px;
    resize: vertical;
    line-height: 1.65;
}
.tool-textarea:focus { outline: none; border-color: var(--c-gold); }
.tool-scale { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tool-scale-btn {
    flex: 1;
    min-width: 100px;
    padding: 0.95rem 0.75rem;
    background: var(--c-surface);
    border: 1px solid rgba(200, 154, 54, 0.18);
    color: var(--c-body);
    font-family: var(--f-label);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s;
}
.tool-scale-btn:hover { border-color: var(--c-gold); color: var(--c-cream); }
.tool-scale-btn.is-selected {
    border-color: var(--c-gold);
    background: rgba(200, 154, 54, 0.14);
    color: var(--c-gold);
    box-shadow: 0 0 0 1px var(--c-gold);
}
.tool-nav {
    display: flex; justify-content: space-between; margin-top: 2.75rem;
    gap: 1rem;
}
.tool-nav .btn { min-width: 140px; }
.tool-result { padding: 1rem 0 2rem; animation: slideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.tool-result h2 {
    font-family: var(--f-serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--c-gold-2);
    line-height: 1.15;
    font-weight: 700;
}
.tool-result-level {
    display: inline-block;
    padding: 0.45rem 1rem;
    background: rgba(200, 154, 54, 0.12);
    color: var(--c-gold);
    font-family: var(--f-label);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid rgba(200, 154, 54, 0.35);
    margin-bottom: 1.75rem;
    border-radius: 100px;
}
.tool-result-body {
    font-size: 1.06rem;
    color: var(--c-body);
    margin-bottom: 2rem;
    white-space: pre-wrap;
    line-height: 1.8;
}
.tool-reflection {
    font-family: var(--f-serif);
    font-style: italic;
    color: var(--c-gold-2);
    font-size: 1.3rem;
    line-height: 1.5;
    padding: 1.5rem 1.75rem;
    border-left: 3px solid var(--c-gold);
    background: rgba(200, 154, 54, 0.05);
    margin-bottom: 2rem;
}
.tool-slogan {
    font-family: var(--f-serif);
    font-style: italic;
    text-align: center;
    color: var(--c-gold);
    font-size: 1.1rem;
    opacity: 0.75;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(200, 154, 54, 0.15);
}
.tool-loading {
    text-align: center; padding: 4rem 1rem;
    color: var(--c-muted);
    font-family: var(--f-label);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.tool-loading::after {
    content: '';
    display: block;
    width: 28px; height: 28px;
    margin: 1.75rem auto 0;
    border: 2px solid rgba(200, 154, 54, 0.25);
    border-top-color: var(--c-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tool-intro { padding: 1rem 0; animation: slideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.tool-intro h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--c-cream);
    font-family: var(--f-serif);
    line-height: 1.2;
}
.tool-intro-tagline {
    font-family: var(--f-serif);
    font-style: italic;
    color: var(--c-gold-2);
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.45;
    padding-left: 1.25rem;
    border-left: 3px solid var(--c-gold);
}
.tool-intro p { color: var(--c-body); margin-bottom: 1rem; font-size: 1.02rem; line-height: 1.7; }
.tool-intro .privacy {
    font-size: 0.88rem;
    color: var(--c-muted);
    padding: 1.15rem 1.3rem;
    background: rgba(7, 17, 28, 0.6);
    border: 1px solid rgba(200, 154, 54, 0.15);
    margin: 2rem 0 2.25rem;
    border-radius: 2px;
    line-height: 1.6;
}
.tool-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: clamp(1.25rem, 2vw, 2rem);
    margin-top: 2.5rem;
}

/* =========== Tool runner v2 additions =========== */
.tool-psych-frame {
    display: block;
    margin: 0 0 1.25rem;
    padding: 0.9rem 1.1rem;
    background: rgba(200, 154, 54, 0.06);
    border-left: 2px solid var(--c-gold);
    color: var(--c-body);
    font-size: 0.95rem;
    line-height: 1.6;
    border-radius: 2px;
}
.tool-psych-frame-label {
    display: inline-block;
    margin-right: 0.5rem;
    font-family: var(--f-label);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-gold);
    font-weight: 600;
}
.tool-choice-grid {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.tool-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.55rem;
    margin: 1.25rem 0 1rem;
}
.tool-value-chip {
    padding: 0.8rem 0.9rem;
    background: var(--c-surface);
    border: 1px solid rgba(200, 154, 54, 0.18);
    color: var(--c-body);
    font-family: var(--f-label);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.18s;
    text-align: center;
}
.tool-value-chip:hover {
    border-color: var(--c-gold);
    color: var(--c-cream);
    transform: translateY(-1px);
}
.tool-value-chip.is-selected {
    border-color: var(--c-gold);
    background: rgba(200, 154, 54, 0.14);
    color: var(--c-gold);
    box-shadow: 0 0 0 1px var(--c-gold);
}
.tool-values-meta {
    font-family: var(--f-label);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin: 0.5rem 0 1.5rem;
}
.tool-auto-hint {
    font-family: var(--f-label);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-muted);
    align-self: center;
}
.tool-loading-title {
    font-family: var(--f-serif);
    font-size: 1.25rem;
    color: var(--c-cream);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0.5rem;
    font-style: italic;
}
.tool-loading-sub {
    font-family: var(--f-label);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-gold);
}
.tool-result-cta {
    margin-top: 2rem;
    padding: 1.5rem 1.5rem;
    background: rgba(200, 154, 54, 0.06);
    border: 1px solid rgba(200, 154, 54, 0.2);
    border-radius: 2px;
}
.tool-result-cta-lead {
    font-family: var(--f-serif);
    font-style: italic;
    color: var(--c-gold-2);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

/* Tool-mode specific accents */
.tool-question[data-tool-mode="scenario-cards"] .tool-option {
    background: linear-gradient(180deg, var(--c-surface), var(--c-surface-2));
    padding: 1.35rem 1.5rem;
    font-size: 1.02rem;
}
.tool-question[data-tool-mode="somatic-check-in"] .tool-scale-btn {
    font-family: var(--f-serif);
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
    padding: 1.05rem 0.85rem;
}
.tool-question[data-tool-mode="narrative-diary"] .tool-textarea {
    min-height: 180px;
    font-family: var(--f-serif);
    font-size: 1.05rem;
    line-height: 1.8;
    font-style: italic;
    background: rgba(7, 17, 28, 0.55);
}
.tool-question[data-tool-mode="likert-statements"] h3 {
    font-family: var(--f-serif);
    font-style: italic;
    color: var(--c-cream);
}
.tool-question[data-tool-mode="sector-then-scales"] .tool-option {
    text-align: center;
    padding: 0.95rem 1rem;
}

/* ===========  Sub-brand pages  =========== */
.sub-body { padding: clamp(2rem,5vw,4rem) 0 clamp(5rem,9vw,8rem); background: var(--c-bg); }
.sub-block { margin-bottom: clamp(2rem, 4vw, 3rem); }
.sub-block h2 { font-family: var(--f-serif); font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--c-cream); margin-bottom: 1rem; font-weight: 600; }
.sub-block p { color: var(--c-body); font-size: 1.02rem; line-height: 1.75; margin-bottom: 1rem; }
.sub-block .tm { color: var(--c-gold); font-size: 0.65em; vertical-align: super; }
.plain-list { list-style: none; padding: 0; margin: 1rem 0; }
.plain-list li {
    color: var(--c-body);
    padding: 0.75rem 0 0.75rem 1.75rem;
    position: relative;
    line-height: 1.65;
    border-bottom: 1px solid rgba(196, 212, 222, 0.08);
}
.plain-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--c-gold);
    font-weight: 500;
}
.cta-block {
    margin-top: clamp(3rem, 6vw, 4rem);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    background: var(--c-surface);
    border-left: 3px solid var(--c-gold);
    border-radius: 2px;
}

/* ===========  Coming-soon pages  =========== */
.coming-soon-hero {
    padding: clamp(6rem, 14vw, 10rem) 0 clamp(4rem, 10vw, 7rem);
    background: var(--c-bg);
    text-align: center;
}
.coming-soon-hero .status-tag {
    display: inline-block;
    font-family: var(--f-label);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-gold);
    border: 1px solid var(--c-gold);
    padding: 0.45rem 1rem;
    border-radius: 2px;
    margin-bottom: 1.75rem;
}
.coming-soon-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); color: var(--c-cream); margin-bottom: 1.25rem; line-height: 1.1; }
.coming-soon-hero h1 .tm { color: var(--c-gold); font-size: 0.4em; vertical-align: super; }
.coming-soon-hero p { color: var(--c-body); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; line-height: 1.65; }

/* ===========  About-prose shared  =========== */
.about-prose p { color: var(--c-body); font-size: 1.02rem; line-height: 1.75; margin-bottom: 1.25rem; }
.about-prose em { color: var(--c-cream); font-style: italic; }

/* =====================================================================
   Landing page v2 — pillar gateways, compact About, founder page
   ===================================================================== */

/* Pillar gateways */
.pillars {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--c-bg);
    position: relative;
}
.pillars::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(200, 154, 54, 0.06), transparent 55%),
        radial-gradient(ellipse at 85% 100%, rgba(31, 120, 86, 0.05), transparent 55%);
    pointer-events: none;
}
.pillars .container { position: relative; z-index: 1; }
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 2vw, 2rem);
    margin-top: 3rem;
}
.pillar-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(2rem, 3.5vw, 2.75rem);
    background: linear-gradient(180deg, rgba(17, 39, 60, 0.6) 0%, rgba(12, 30, 48, 0.9) 100%);
    border: 1px solid rgba(200, 154, 54, 0.2);
    transition: transform 0.35s ease, border-color 0.3s ease, box-shadow 0.35s ease;
    overflow: hidden;
    text-decoration: none;
    min-height: 320px;
}
.pillar-card::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s ease;
}
.pillar-card:hover {
    transform: translateY(-6px);
    border-color: var(--c-gold);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.pillar-card:hover::after { transform: scaleX(1); }
.pillar-no {
    font-family: var(--f-label);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--c-gold);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}
.pillar-title {
    font-family: var(--f-serif);
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    color: var(--c-cream);
    margin-bottom: 0.75rem;
}
.pillar-title .tm { color: var(--c-gold); }
.pillar-tag {
    font-family: var(--f-label);
    color: var(--c-gold-2);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    opacity: 0.9;
}
.pillar-desc {
    color: var(--c-body);
    font-size: 0.98rem;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.75rem;
}
.pillar-cta {
    display: inline-flex;
    align-self: flex-start;
    font-family: var(--f-label);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-gold);
    border-bottom: 1px solid rgba(200, 154, 54, 0.4);
    padding-bottom: 0.35rem;
    transition: color 0.25s, border-color 0.25s;
}
.pillar-card:hover .pillar-cta { color: var(--c-gold-2); border-color: var(--c-gold-2); }

/* Compact about on homepage */
.about-compact { padding-top: clamp(3rem, 5vw, 5rem); padding-bottom: clamp(3rem, 5vw, 5rem); }
.about-lead-short {
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--c-body);
    margin: 1rem 0 1.5rem;
    max-width: 52ch;
}
.about-cta-row { margin-top: 1.75rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Over Guled page — founder layout */
.founder-strap {
    max-width: 60ch;
    color: var(--c-body);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 0.75rem;
}
.founder-intro {
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
    background: var(--c-bg);
    border-bottom: 1px solid rgba(200, 154, 54, 0.08);
}
.founder-intro-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.founder-portrait {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid rgba(200, 154, 54, 0.3);
    background: var(--c-surface);
}
.founder-portrait img { width: 100%; height: 100%; object-fit: cover; }
.founder-portrait::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(7, 17, 28, 0.55) 100%);
    pointer-events: none;
}
.founder-statement-lead {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.25;
    color: var(--c-gold-2);
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--c-gold);
}
.founder-statement-body {
    color: var(--c-body);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 55ch;
}
.founder-story { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 7rem); background: var(--c-bg); }
.founder-pullquote {
    margin: 2.25rem 0;
    padding: 1.75rem 2rem;
    background: rgba(200, 154, 54, 0.05);
    border-left: 3px solid var(--c-gold);
}
.founder-pullquote p {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.55;
    color: var(--c-cream);
    margin-bottom: 0.75rem;
}
.founder-pullquote cite {
    font-family: var(--f-label);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    color: var(--c-gold);
    text-transform: uppercase;
    font-style: normal;
}
.founder-cta {
    margin-top: 2.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* =====================================================================
   Rafiq — AI orb launcher + proactive reflection bubble + avatar chat
   ===================================================================== */

/* Override the old chat-launcher base to host the new orb */
.chat-launcher {
    padding: 0.55rem 1.1rem 0.55rem 0.55rem;
    background: linear-gradient(135deg, rgba(17, 39, 60, 0.95), rgba(7, 17, 28, 0.95));
    border-color: rgba(200, 154, 54, 0.5);
    gap: 0.75rem;
    backdrop-filter: blur(6px);
}
.chat-launcher:hover {
    background: linear-gradient(135deg, rgba(200, 154, 54, 0.18), rgba(200, 154, 54, 0.05));
    border-color: var(--c-gold);
    color: var(--c-gold-2);
    transform: translateY(-2px);
}
.chat-launcher.is-inviting {
    animation: rafiqInvite 1.8s ease-in-out 2;
}
@keyframes rafiqInvite {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

.chat-orb {
    position: relative;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    flex-shrink: 0;
}
.chat-orb-core {
    position: relative;
    width: 22px; height: 22px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #F5E4B5 0%, var(--c-gold) 45%, #8A6A1F 100%);
    box-shadow:
        0 0 18px rgba(200, 154, 54, 0.6),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4);
    z-index: 2;
    animation: rafiqCore 3.5s ease-in-out infinite;
}
@keyframes rafiqCore {
    0%, 100% { box-shadow: 0 0 18px rgba(200, 154, 54, 0.6), inset 0 -2px 4px rgba(0, 0, 0, 0.4); }
    50%      { box-shadow: 0 0 28px rgba(200, 154, 54, 0.85), inset 0 -2px 4px rgba(0, 0, 0, 0.4); }
}
.chat-orb-ring,
.chat-orb-ring-2 {
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 1px solid var(--c-gold);
    opacity: 0;
    animation: rafiqRing 2.8s ease-out infinite;
}
.chat-orb-ring-2 { animation-delay: 1.4s; }
@keyframes rafiqRing {
    0%   { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}
.chat-launcher-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}
.chat-label {
    font-family: var(--f-serif);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: none;
    color: var(--c-gold-2);
}
.chat-label-sub {
    font-family: var(--f-label);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    color: var(--c-muted);
    text-transform: uppercase;
    margin-top: 2px;
}
html[dir="rtl"] .chat-launcher-text { text-align: right; }

/* Chat head avatar on the panel */
.chat-head-left { display: flex; align-items: center; gap: 0.7rem; }
.chat-head-avatar {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #F5E4B5 0%, var(--c-gold) 45%, #8A6A1F 100%);
    color: var(--c-bg);
    font-family: var(--f-serif);
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 0 12px rgba(200, 154, 54, 0.4);
}

/* Proactive reflection bubble */
.chat-proactive {
    position: fixed;
    right: 1.75rem;
    bottom: 5.5rem;
    width: min(340px, calc(100vw - 3.5rem));
    padding: 1rem 1.1rem 1.1rem 1.1rem;
    background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg) 100%);
    border: 1px solid var(--c-gold);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(200, 154, 54, 0.15);
    z-index: 955;
    display: flex;
    gap: 0.85rem;
    transform: translateY(16px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s;
}
.chat-proactive.is-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.chat-proactive::before {
    content: '';
    position: absolute;
    bottom: -8px; right: 34px;
    width: 14px; height: 14px;
    background: var(--c-bg);
    border-right: 1px solid var(--c-gold);
    border-bottom: 1px solid var(--c-gold);
    transform: rotate(45deg);
}
html[dir="rtl"] .chat-proactive { right: auto; left: 1.75rem; }
html[dir="rtl"] .chat-proactive::before { right: auto; left: 34px; }

.chat-proactive-close {
    position: absolute;
    top: 6px; right: 8px;
    width: 22px; height: 22px;
    display: grid; place-items: center;
    color: var(--c-muted);
    font-size: 1.1rem;
    line-height: 1;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}
.chat-proactive-close:hover {
    color: var(--c-gold);
    background: rgba(200, 154, 54, 0.1);
}
.chat-proactive-avatar {
    position: relative;
    width: 44px; height: 44px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #F5E4B5 0%, var(--c-gold) 45%, #8A6A1F 100%);
    color: var(--c-bg);
    box-shadow: 0 0 18px rgba(200, 154, 54, 0.5);
}
.chat-proactive-avatar-glyph {
    font-family: var(--f-serif);
    font-weight: 900;
    font-size: 1.25rem;
    z-index: 2;
}
.chat-proactive-avatar-wave {
    position: absolute; inset: -4px;
    border: 1px solid var(--c-gold);
    border-radius: 50%;
    opacity: 0;
    animation: rafiqRing 2.6s ease-out infinite;
}
.chat-proactive-body { flex: 1; min-width: 0; }
.chat-proactive-eyebrow {
    display: block;
    font-family: var(--f-label);
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 0.35rem;
}
.chat-proactive-q {
    font-family: var(--f-serif);
    font-size: 1rem;
    line-height: 1.4;
    color: var(--c-cream);
    margin-bottom: 0.85rem;
    font-weight: 500;
}
.chat-proactive-cta {
    font-family: var(--f-label);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-gold);
    border: 1px solid var(--c-gold);
    padding: 0.5rem 0.85rem;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s;
}
.chat-proactive-cta:hover {
    background: var(--c-gold);
    color: var(--c-bg);
}

/* =====================================================================
   Flashier tool cards — AI avatar glyphs, animated glow, techno feel
   ===================================================================== */

.tool-card {
    padding-top: clamp(2.5rem, 4vw, 3.75rem);
}
.tool-card { position: relative; }
.tool-card .tool-avatar {
    position: absolute;
    top: clamp(1.5rem, 2.5vw, 2.25rem);
    right: clamp(1.5rem, 2.5vw, 2.25rem);
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(200, 154, 54, 0.45);
    color: var(--c-gold-2);
    transition: border-color 0.3s ease, color 0.3s ease;
    z-index: 2;
}
.tool-card:hover .tool-avatar {
    border-color: var(--c-gold);
    color: var(--c-gold);
}

.tool-card .tool-avatar svg {
    width: 22px; height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tool-card .tool-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--f-label);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    color: var(--c-gold);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    opacity: 0.85;
}
.tool-card .tool-tag::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--c-gold);
    opacity: 0.75;
}

/* Responsive */
@media (max-width: 900px) {
    .pillar-grid { grid-template-columns: 1fr; }
    .founder-intro-grid { grid-template-columns: 1fr; }
    .founder-portrait { max-width: 300px; }
    .chat-proactive { right: 1rem; left: auto; bottom: 4.5rem; }
}

/* =====================================================================
   Portfolio page — tabbed services with matching AI mirrors
   ===================================================================== */

.portfolio-hero {
    position: relative;
    padding: clamp(8rem, 14vw, 12rem) 0 clamp(3rem, 6vw, 5rem);
    background:
        radial-gradient(ellipse at 85% 10%, rgba(200, 154, 54, 0.12), transparent 55%),
        radial-gradient(ellipse at 10% 95%, rgba(31, 120, 86, 0.08), transparent 55%),
        var(--c-bg);
    overflow: hidden;
}
.portfolio-hero .container { position: relative; z-index: 2; }
.portfolio-hero h1 { margin-bottom: 1.5rem; font-size: clamp(2.75rem, 5.5vw, 4.5rem); }
.portfolio-hero .portfolio-hero-intro {
    max-width: 62ch;
    color: var(--c-body);
    font-size: 1.1rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}
.portfolio-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.5rem;
    align-items: center;
    font-family: var(--f-label);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-muted);
}
.portfolio-hero-meta strong { color: var(--c-gold); font-weight: 600; margin-right: 0.4em; }
.portfolio-hero-meta .dot {
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--c-gold); opacity: 0.45;
}
.portfolio-hero-ornament {
    position: absolute;
    right: -60px; top: 50%;
    transform: translateY(-50%);
    width: clamp(260px, 32vw, 440px);
    height: clamp(260px, 32vw, 440px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 1;
}

.portfolio-tabs-section {
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(5rem, 9vw, 8rem);
    background: var(--c-bg);
}

.portfolio-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
    border-top: 1px solid rgba(200, 154, 54, 0.18);
    border-bottom: 1px solid rgba(200, 154, 54, 0.18);
    padding: 0.65rem 0;
}

.pt-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 0.95rem 1.1rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 2px;
    color: var(--c-body);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
    position: relative;
}
.pt-tab:hover {
    background: rgba(200, 154, 54, 0.05);
    border-color: rgba(200, 154, 54, 0.22);
    color: var(--c-cream);
}
.pt-tab.is-active {
    background: linear-gradient(145deg, rgba(200, 154, 54, 0.14), rgba(200, 154, 54, 0.04));
    border-color: rgba(200, 154, 54, 0.55);
    color: var(--c-cream);
    box-shadow: 0 0 0 1px rgba(200, 154, 54, 0.15) inset, 0 10px 24px -14px rgba(200, 154, 54, 0.4);
}
.pt-tab.is-active::after {
    content: '';
    position: absolute;
    left: 1.1rem; right: 1.1rem;
    bottom: -0.65rem;
    height: 2px;
    background: var(--c-gold);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(200, 154, 54, 0.6);
}
.pt-tab-no {
    font-family: var(--f-label);
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 0.45rem;
    opacity: 0.85;
}
.pt-tab-name {
    font-family: var(--f-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: inherit;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}
.pt-tab-name .tm { color: var(--c-gold); font-size: 0.6em; }
.pt-tab-sub {
    font-family: var(--f-label);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-muted);
}
.pt-tab.is-active .pt-tab-sub { color: var(--c-gold-2); }

.pt-panel { display: none; animation: ptFade 0.4s ease; }
.pt-panel.is-active { display: block; }
@keyframes ptFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.pt-panel-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}
.pt-panel-copy h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1.25rem;
    line-height: 1.18;
}
.pt-panel-copy .pt-lead {
    color: var(--c-body);
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 60ch;
}
.pt-subhead {
    font-family: var(--f-label);
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin: 1.75rem 0 0.75rem;
    font-weight: 500;
}
.pt-list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}
.pt-list li {
    padding: 0.7rem 0 0.7rem 1.5rem;
    position: relative;
    color: var(--c-body);
    border-bottom: 1px solid rgba(196, 212, 222, 0.07);
    line-height: 1.6;
}
.pt-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 1.15rem;
    width: 10px; height: 1px;
    background: var(--c-gold);
}
.pt-list li strong { color: var(--c-cream); font-weight: 600; }
.pt-cta-row {
    display: flex; flex-wrap: wrap; gap: 0.75rem;
    margin-top: 1.75rem;
}

/* Tool-sidecar */
.pt-panel-tool {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.pt-tool-eyebrow {
    font-family: var(--f-label);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 0.25rem;
}
.pt-tool-card {
    position: relative;
    background:
        linear-gradient(155deg, rgba(200, 154, 54, 0.08), rgba(7, 17, 28, 0)) ,
        var(--c-surface);
    border: 1px solid rgba(200, 154, 54, 0.35);
    border-radius: 3px;
    padding: 2rem 1.75rem 1.75rem;
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.4s ease;
}
.pt-tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% -10%, rgba(200, 154, 54, 0.18), transparent 60%);
    pointer-events: none;
}
.pt-tool-card:hover {
    transform: translateY(-3px);
    border-color: var(--c-gold);
    box-shadow: 0 18px 48px -28px rgba(200, 154, 54, 0.5), 0 0 0 1px rgba(200, 154, 54, 0.2) inset;
}
.pt-tool-card + .pt-tool-card { margin-top: 0; }
.pt-tool-avatar {
    position: absolute;
    top: 1.4rem; right: 1.4rem;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(200, 154, 54, 0.5);
    color: var(--c-gold-2);
    z-index: 2;
}
.pt-tool-avatar svg {
    width: 22px; height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pt-tool-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--f-label);
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 1rem;
    opacity: 0.9;
}
.pt-tool-tag::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--c-gold);
    opacity: 0.8;
}
.pt-tool-name {
    position: relative;
    font-family: var(--f-serif);
    font-size: 1.25rem;
    color: var(--c-cream);
    margin-bottom: 0.65rem;
    font-weight: 600;
    line-height: 1.25;
}
.pt-tool-name .tm { color: var(--c-gold); font-size: 0.55em; vertical-align: super; }
.pt-tool-desc {
    position: relative;
    color: var(--c-body);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}
.pt-tool-meta {
    position: relative;
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    font-family: var(--f-label);
    font-size: 0.78rem;
    color: var(--c-muted);
}
.pt-tool-meta li {
    padding: 0.35rem 0 0.35rem 1rem;
    position: relative;
    border-bottom: 1px dashed rgba(196, 212, 222, 0.08);
    line-height: 1.4;
}
.pt-tool-meta li:last-child { border-bottom: 0; }
.pt-tool-meta li::before {
    content: '·';
    position: absolute; left: 0;
    color: var(--c-gold);
    font-weight: 700;
}

.pt-book-card { text-align: left; }
.pt-book-visual {
    display: block;
    width: 90px;
    margin-bottom: 1rem;
}

/* 4A Method band */
.portfolio-method-band {
    background:
        linear-gradient(180deg, rgba(200, 154, 54, 0.05), transparent 80%),
        var(--c-surface);
    border-top: 1px solid rgba(200, 154, 54, 0.18);
    border-bottom: 1px solid rgba(200, 154, 54, 0.18);
    padding: clamp(3rem, 6vw, 5rem) 0;
    text-align: center;
}
.portfolio-method-band h2 { margin-bottom: 1rem; }
.portfolio-method-band p { max-width: 62ch; margin: 0 auto; color: var(--c-body); }

/* Sectors grid */
.portfolio-sectors { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--c-bg); }
.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.sector-tile {
    background: var(--c-surface);
    border: 1px solid rgba(196, 212, 222, 0.08);
    border-left: 2px solid rgba(200, 154, 54, 0.5);
    padding: 1.5rem 1.25rem;
    border-radius: 2px;
    transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.sector-tile:hover {
    border-left-color: var(--c-gold);
    background: var(--c-surface-2);
    transform: translateY(-2px);
}
.sector-no {
    display: inline-block;
    font-family: var(--f-label);
    color: var(--c-gold);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    margin-bottom: 0.85rem;
    opacity: 0.85;
}
.sector-glyph {
    display: inline-block;
    color: var(--c-gold);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}
.sector-tile h4 {
    font-family: var(--f-serif);
    font-size: 1.1rem;
    color: var(--c-cream);
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.sector-tile p {
    color: var(--c-body);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

.portfolio-final-cta { padding: clamp(3rem, 7vw, 5rem) 0 clamp(5rem, 10vw, 8rem); background: var(--c-bg); }

/* Responsive */
@media (max-width: 1100px) {
    .portfolio-tabs { grid-template-columns: repeat(2, 1fr); }
    .pt-panel-grid { grid-template-columns: 1fr; }
    .pt-panel-tool { position: static; order: 2; }
    .portfolio-hero-ornament { opacity: 0.3; right: -200px; }
}
@media (max-width: 640px) {
    .portfolio-tabs { grid-template-columns: 1fr; }
    .pt-tab { flex-direction: row; align-items: center; gap: 1rem; padding: 0.85rem 1rem; }
    .pt-tab-no { margin-bottom: 0; }
    .pt-tab-name { flex: 1; font-size: 0.95rem; }
    .pt-tab-sub { font-size: 0.6rem; }
    .pt-tab.is-active::after { left: 1rem; right: 1rem; }
}

