/* =========================================================
   The Growth Codex — personal brand site
   Palette: royal blue (#0040A0) from the brand logo on light blue-white
   ========================================================= */

:root {
    --ink: #0b1f3a;
    --ink-2: #10294d;
    --ink-soft: #1d3a63;
    --royal: #0040a0;
    --royal-bright: #2e6cc4;
    --royal-deep: #002e78;
    --royal-soft: #8fb4e6;
    --ivory: #f4f6fb;
    --ivory-2: #e9eef7;
    --paper: #ffffff;
    --muted: #56657e;
    --line: rgba(11, 31, 58, 0.12);
    --line-light: rgba(244, 246, 251, 0.16);

    --shadow-sm: 0 4px 18px rgba(11, 31, 58, 0.08);
    --shadow-md: 0 18px 45px rgba(11, 31, 58, 0.14);
    --shadow-lg: 0 40px 90px rgba(11, 31, 58, 0.22);

    --radius: 20px;
    --radius-sm: 12px;
    --container: 1220px;
    --gold: #b08d45;
    --gold-deep: #8a6a2f;
    --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--ivory);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body::before {
    content: ""; position: fixed; inset: 0; z-index: 2000; pointer-events: none;
    opacity: .035; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong { font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 9vw, 130px) 0; position: relative; }
.eyebrow {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--royal-deep);
    margin: 0 0 1rem;
}
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 68px); text-align: center; }
.section-sub { color: var(--muted); font-size: 1.05rem; }
.grad {
    background: linear-gradient(100deg, var(--royal-bright), var(--royal) 40%, var(--royal-deep));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--ivory);
    padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
    padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--royal-bright), var(--royal) 55%, var(--royal-deep));
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 64, 160, 0.32);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(0, 64, 160, 0.42); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); transform: translateY(-3px); }
.btn-sm { padding: 11px 20px; font-size: 0.86rem; }
.btn-block { width: 100%; }
.link-arrow {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
    color: var(--royal-deep); margin-top: 6px;
}
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    padding: 16px 0; transition: all .4s var(--ease);
}
.site-header.scrolled {
    padding: 10px 0;
    background: rgba(244, 246, 251, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; flex: none; }
.brand-text em { color: var(--gold-deep); font-style: normal; font-weight: 700; }
.brand-logo {
    width: 40px; height: 40px; object-fit: contain; flex: none;
    border-radius: 10px; background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.nav { display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; }
.nav a { font-size: 0.86rem; font-weight: 500; color: var(--ink-soft); position: relative; white-space: nowrap; }
.nav a:not(.nav-cta)::after {
    content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--royal); transition: width .3s var(--ease);
}
.nav a:not(.nav-cta):hover::after,
.nav a.active:not(.nav-cta)::after { width: 100%; }
.nav a.active:not(.nav-cta) { color: var(--royal-deep); }
.nav-cta { color: #fff !important; padding: 10px 16px; font-size: 0.78rem; }
.nav-toggle {
    display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
    background: rgba(255,255,255,.5); cursor: pointer; padding: 0; place-items: center; gap: 5px;
    flex-direction: column;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(130px, 17vw, 210px) 0 0; overflow: hidden; }
.hero-glow {
    position: absolute; top: -220px; right: -180px; width: 720px; height: 720px; z-index: 0;
    background: radial-gradient(circle, rgba(0,64,160,.30), transparent 62%);
    filter: blur(10px); pointer-events: none;
}
.hero-inner {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(40px, 6vw, 80px);
    align-items: center; padding-bottom: clamp(50px, 7vw, 90px);
}
.hero h1 { margin: 12px 0 22px; }
.hero .lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 40px; }
.hero-stats { list-style: none; display: flex; gap: clamp(22px, 4vw, 46px); padding: 0; margin: 0; }
.hero-stats li { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--ink); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.hero-stats li + li { padding-left: clamp(22px, 4vw, 46px); border-left: 1px solid var(--line); }

.hero-visual { position: relative; }
.portrait-frame {
    position: relative; border-radius: 28px; overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,64,160,.4);
    background: var(--ink-2);
    aspect-ratio: 4 / 4.7;
    min-height: 470px;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: center 22%; }
.hero-slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.slide.active { opacity: 1; }
/* First slide stays in flow so the frame always has height,
   even if aspect-ratio is not supported by the browser. */
.slide:first-child { position: static; opacity: 1; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: center 22%; }
.slide:nth-child(3) img { object-position: center 10%; }
.slide-nav { position: absolute; z-index: 4; top: 50%; left: 0; right: 0; transform: translateY(-50%); display: flex; justify-content: space-between; padding: 0 12px; pointer-events: none; }
.slide-btn {
    pointer-events: auto; width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
    background: rgba(11,31,58,.5); color: var(--ivory);
    border: 1px solid rgba(244,246,251,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: opacity .3s, background .3s, transform .3s var(--ease);
    opacity: 0;
}
.portrait-frame:hover .slide-btn { opacity: 1; }
.slide-btn:hover { background: var(--royal); transform: scale(1.08); }
.slide-btn svg { width: 20px; height: 20px; }
.slide-dots { position: absolute; z-index: 4; left: 0; right: 0; bottom: 118px; display: flex; justify-content: center; gap: 10px; }
.slide-dots button {
    padding: 0; border: 0; background: transparent; cursor: pointer;
    width: 26px; height: 14px; display: grid; place-items: center;
}
.slide-dots button::before {
    content: ""; display: block; width: 26px; height: 3px; border-radius: 3px;
    background: rgba(244,246,251,.35); transition: background .3s, width .35s var(--ease);
}
.slide-dots button.active::before { background: var(--ivory); width: 34px; }
.slide-dots button:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; border-radius: 3px; }
.slide-btn:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
.portrait-shade {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(190deg, rgba(8,20,45,.22) 0%, rgba(8,20,45,.04) 38%, rgba(8,20,45,.78) 100%);
}
.portrait-plaque {
    position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 3;
    border-radius: 14px; padding: 16px 20px;
    background: rgba(8,20,45,.58); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(246,242,233,.16); color: var(--ivory);
    box-shadow: 0 22px 40px rgba(8,20,45,.35);
}
.plaque-rule { display: block; width: 34px; height: 2px; background: var(--royal); margin-bottom: 12px; }
.portrait-plaque strong { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: .01em; line-height: 1.1; }
.portrait-plaque small { color: rgba(246,242,233,.78); font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; }
.portrait-badge {
    position: absolute; top: 20px; right: 20px; z-index: 3;
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(246,242,233,.94); color: var(--ink);
    border: 1px solid rgba(255,255,255,.6); backdrop-filter: blur(8px);
    padding: 8px 15px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
    box-shadow: var(--shadow-sm);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #2f8a5f; box-shadow: 0 0 0 4px rgba(47,138,95,.2); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(47,138,95,.22); } 50% { box-shadow: 0 0 0 9px rgba(47,138,95,0); } }

.marquee {
    position: relative; z-index: 2; overflow: hidden; padding: 16px 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, var(--ivory), var(--ivory-2), var(--ivory));
}
.marquee-track { display: flex; gap: 44px; width: max-content; animation: scroll 42s linear infinite; }
.marquee-track span {
    font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink-soft);
    text-transform: uppercase; letter-spacing: .14em; opacity: .4;
}
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about { background: var(--paper); }
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 6vw, 84px); align-items: center; }
.collage { position: relative; padding: 34px 0 0; }
.collage-main {
    height: 500px; border-radius: 24px; position: relative; overflow: hidden;
    box-shadow: var(--shadow-lg); margin: 0; background: var(--ink-2);
}
.collage-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.collage-main:hover img { transform: scale(1.04); }
.collage-cap {
    position: absolute; left: 18px; top: 18px; z-index: 3; margin: 0;
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--ivory); font-size: 0.78rem; letter-spacing: .05em;
    background: rgba(8,20,45,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(246,242,233,.2);
    padding: 8px 14px; border-radius: 999px;
}
.collage-cap span { color: var(--royal-bright); font-weight: 700; }
.collage-inset {
    position: absolute; right: -20px; top: 0; z-index: 2; width: 46%; margin: 0;
    border-radius: 16px; overflow: hidden; border: 5px solid var(--paper);
    box-shadow: var(--shadow-md); transform: rotate(3deg);
    transition: transform .5s var(--ease);
}
.collage-inset:hover { transform: rotate(0deg) translateY(-4px); }
.collage-inset img { width: 100%; display: block; aspect-ratio: 1 / 1; object-fit: cover; }
.collage-tag {
    position: absolute; left: -22px; bottom: 34px; z-index: 3;
    background: var(--paper); border-radius: 16px; padding: 18px 24px;
    box-shadow: var(--shadow-md); border-left: 4px solid var(--royal);
}
.collage-tag span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--royal-deep); font-weight: 600; }
.collage-tag strong { font-family: var(--font-display); font-size: 1.3rem; }
.check-list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; color: var(--ink-soft); }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
    background: linear-gradient(135deg, var(--royal-bright), var(--royal-deep));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* ---------- Expertise ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
    position: relative; background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 36px 34px; overflow: hidden;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--royal-bright), var(--royal-deep));
    transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(0,64,160,.5); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(0,64,160,.22), rgba(0,64,160,.05));
    border: 1px solid rgba(0,64,160,.3); color: var(--royal-deep); margin-bottom: 22px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 20px; }
.card-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.card-tags li {
    font-size: 0.76rem; font-weight: 600; color: var(--ink-soft);
    background: var(--ivory-2); padding: 6px 13px; border-radius: 999px;
}

/* ---------- Books ---------- */
.books { background: linear-gradient(180deg, var(--ink), var(--ink-2)); color: var(--ivory); overflow: hidden; }
.books-glow { position: absolute; top: -160px; left: -120px; width: 620px; height: 620px; background: radial-gradient(circle, rgba(0,64,160,.26), transparent 62%); pointer-events: none; }
.books .eyebrow { color: var(--royal); }
.books .section-sub { color: rgba(246,242,233,.72); }
.books .section-sub strong { color: var(--royal-bright); }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; z-index: 2; }
.book {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.book:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: rgba(0,64,160,.5); }
.book-cover {
    aspect-ratio: 3 / 4; padding: 26px 24px; display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden; background-position: center; background-size: cover;
}
.book-cover::before, .book-cover::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.book-cover::before { background: linear-gradient(180deg, rgba(7,18,38,.55) 0%, rgba(7,18,38,.15) 48%, rgba(7,18,38,.85) 100%); }
.book-cover::after { background: linear-gradient(0deg, rgba(7,18,38,.35), transparent 55%); }
.book-cover span {
    font-size: 0.66rem; text-transform: uppercase; letter-spacing: .28em; opacity: .9;
    position: relative; z-index: 2; color: var(--ivory);
}
.book-cover strong {
    font-family: var(--font-display); font-size: 1.65rem; line-height: 1.08;
    position: relative; z-index: 2; color: var(--ivory);
    border-left: 3px solid var(--royal-bright); padding-left: 14px;
}
.cover-1 { background-image: url("../img/cover-1.jpg"); }
.cover-2 { background-image: url("../img/cover-2.jpg"); }
.cover-3 { background-image: url("../img/cover-3.jpg"); }
.cover-4 { background-image: url("../img/cover-4.jpg"); }
.cover-5 { background-image: url("../img/cover-5.jpg"); }
.cover-6 { background-image: url("../img/cover-6.jpg"); }
.book-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.book-body h3 { color: var(--ink); font-size: 1.28rem; margin-bottom: .35em; }
.book-body p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.book-body p:not(.book-meta) { flex: 1; }
.book-meta { font-size: 0.82rem; margin: 0 0 4px; color: var(--muted); flex: none !important; }
.book-meta span { color: var(--royal-deep); font-weight: 600; }
.btn-book {
    align-self: flex-start; margin-top: 16px; background: transparent; color: var(--royal-deep);
    border: 1px solid rgba(0,64,160,.45); padding: 11px 22px; font-size: 0.86rem;
}
.btn-book:hover { background: linear-gradient(135deg, var(--royal-bright), var(--royal-deep)); color: #fff; border-color: transparent; transform: translateY(-3px); }
.books-cta { position: relative; z-index: 2; margin-top: 54px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.books-cta p { color: var(--muted); margin: 0; }
.books .books-cta p { color: rgba(244,246,251,.72); }

/* ---------- Process ---------- */
.process { background: var(--paper); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step {
    position: relative; padding: 34px 26px; border-radius: var(--radius);
    background: var(--ivory); border: 1px solid var(--line);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); background: var(--paper); }
.step-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: transparent; -webkit-background-clip: text; background-clip: text; background: linear-gradient(135deg, var(--royal-bright), var(--royal-deep)); display: block; line-height: 1; }
.step h3 { margin: 14px 0 .35em; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--ivory-2); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
    margin: 0; background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 34px 32px; position: relative;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.quote:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.quote::before { content: "\201C"; position: absolute; top: 8px; right: 26px; font-family: var(--font-display); font-size: 5.5rem; color: rgba(0,64,160,.28); line-height: 1; }
.stars { color: var(--royal); letter-spacing: 3px; margin-bottom: 14px; font-size: 0.95rem; }
.quote blockquote { margin: 0 0 22px; font-family: var(--font-display); font-size: 1.32rem; line-height: 1.45; color: var(--ink); }
.quote figcaption { display: flex; flex-direction: column; }
.quote figcaption strong { font-size: 0.95rem; }
.quote figcaption span { color: var(--muted); font-size: 0.82rem; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--ivory), var(--ivory-2)); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
.contact-copy h2 { margin-bottom: .4em; }
.contact-copy > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.contact-list a:hover { color: var(--royal-deep); }
.ci { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); color: var(--royal-deep); }
.ci svg { width: 21px; height: 21px; }
.contact-form {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-md);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 8px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
    width: 100%; font-family: inherit; font-size: 0.96rem; color: var(--ink);
    padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
    background: var(--ivory); transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--royal); background: var(--paper);
    box-shadow: 0 0 0 4px rgba(0,64,160,.16);
}
.form-note { margin: 14px 0 0; font-size: 0.88rem; font-weight: 500; min-height: 1.2em; }
.form-note.ok { color: #1f7a4d; }
.form-note.err { color: #b23b3b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(246,242,233,.72); padding: 64px 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-light); }
.footer-brand .brand { color: var(--ivory); margin-bottom: 16px; }
.footer-brand p { max-width: 340px; font-size: 0.92rem; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a:hover, .footer-social a:hover { color: var(--royal-bright); }
.footer-social { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-social a {
    width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
    border: 1px solid var(--line-light); font-size: 0.85rem; font-weight: 600;
}
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; font-size: 0.84rem; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
    position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 900;
    width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center;
    background: #25d366; color: #fff;
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.4);
    transition: transform .3s var(--ease), box-shadow .3s;
    isolation: isolate;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366;
    z-index: -1; animation: wa-pulse 2.6s ease-out infinite;
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 20px 42px rgba(37, 211, 102, 0.5); }
.whatsapp-float:hover::after { animation: none; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .6; } 70% { transform: scale(1.6); opacity: 0; } 100% { transform: scale(1.6); opacity: 0; } }

/* =========================================================
   Multi-page additions
   ========================================================= */
.section--soft { background: var(--ivory-2); }
.split--reverse { grid-template-columns: 1.05fr 0.95fr; }
.prose { max-width: 820px; margin: 0 auto; color: var(--ink-soft); font-size: 1.1rem; text-align: center; }
.opt { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ---------- Hero extras ---------- */
.hero-roles {
    font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
    font-weight: 600; color: var(--royal-deep); margin: 0 0 20px;
}
.hero-creds { font-size: 0.82rem; color: var(--muted); letter-spacing: .02em; margin: 0; }

/* ---------- Page hero ---------- */
.page-hero {
    position: relative; overflow: hidden; text-align: left;
    padding: clamp(130px, 16vw, 190px) 0 clamp(52px, 6vw, 84px);
    background: linear-gradient(180deg, var(--ivory-2), var(--ivory));
}
.page-hero-glow {
    position: absolute; top: -180px; right: -160px; width: 580px; height: 580px; z-index: 0;
    background: radial-gradient(circle, rgba(0,64,160,.22), transparent 62%);
    filter: blur(8px); pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 18ch; margin: 10px 0 20px; }
.page-hero .lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 640px; }
.breadcrumb { display: flex; gap: 9px; font-size: 0.8rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--royal-deep); }
.breadcrumb span { opacity: .65; }

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 28px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.value:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: rgba(0,64,160,.4); }
.value-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; color: var(--gold); display: block; line-height: 1; }
.value h3 { margin: 12px 0 .3em; }
.value p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- Qualifications ---------- */
.qual-list { list-style: none; padding: 0; margin: 26px 0 0; }
.qual-list li { display: grid; grid-template-columns: 180px 1fr; gap: 4px 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.qual-list li:first-child { border-top: 1px solid var(--line); }
.qual-list strong { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--royal-deep); }
.qual-list span { color: var(--muted); font-size: 0.94rem; }

/* ---------- Work: wide cards ---------- */
.cards--work { grid-template-columns: 1fr; }
.card--wide { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; }
.card--wide .card-icon { margin-bottom: 0; }
.card--wide h3 { margin-top: 0; }

/* ---------- Programmes ---------- */
.programmes { display: grid; gap: 20px; }
.programme {
    display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 34px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.programme:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(0,64,160,.4); }
.programme-num { font-family: var(--font-display); font-size: 2.3rem; font-weight: 800; color: var(--gold); line-height: 1; }
.programme h3 { margin: 0 0 .3em; }
.programme p { color: var(--muted); margin-bottom: 12px; }
.programme-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.programme-meta span { font-size: 0.88rem; color: var(--ink-soft); }
.programme-meta strong { color: var(--royal-deep); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
    position: relative; background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 38px 32px; overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.pillar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--royal)); }
.pillar:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(0,64,160,.4); }
.pillar-index {
    display: block; line-height: 1; margin-bottom: 14px; font-family: var(--font-display);
    font-size: 2.4rem; font-weight: 800; background: linear-gradient(135deg, var(--royal-bright), var(--royal-deep));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pillar h3 { margin-bottom: .35em; }
.pillar p { color: var(--muted); margin: 0; }

/* ---------- Brand (Avekorp) cards ---------- */
.brand-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.brand-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 36px 34px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.brand-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(0,64,160,.4); }
.brand-card-tag {
    display: inline-block; font-size: 0.68rem; letter-spacing: .24em; text-transform: uppercase;
    font-weight: 700; color: var(--royal-deep); background: rgba(0,64,160,.08);
    border: 1px solid rgba(0,64,160,.18); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.brand-card h3 { margin-bottom: .35em; }
.brand-card p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Articles ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card {
    display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 30px 28px;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.article-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: rgba(0,64,160,.4); }
.article-card h3 { font-size: 1.16rem; margin-bottom: .4em; }
.article-card p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.article-card .link-arrow { margin-top: 10px; }

/* ---------- Codex feature list ---------- */
.codex-features { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.codex-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.codex-list li { position: relative; padding-left: 34px; color: rgba(244,246,251,.86); }
.codex-list li::before {
    content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: linear-gradient(135deg, var(--royal-bright), var(--royal));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
}
.codex-features .books-cta { margin-top: 0; align-items: flex-start; text-align: left; }
.codex-features .books-cta .btn { width: 100%; }
.books .eyebrow { color: var(--gold); }
.books .section-sub strong { color: var(--gold); }
.books .btn-book { color: var(--royal-soft); border-color: rgba(143,180,230,.5); }
.books .btn-book:hover { background: linear-gradient(135deg, var(--royal-bright), var(--royal-deep)); color: #fff; border-color: transparent; }

/* ---------- Section backgrounds (home rhythm) ---------- */
.coaching-teaser { background: var(--paper); }
.insights { background: var(--ivory-2); }
.collage-main--single { height: 460px; }

/* ---------- Real book covers & store details ---------- */
.book-cover-img {
    position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden;
    background: linear-gradient(160deg, var(--ink-2), var(--ink));
}
.book-cover-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform .6s var(--ease); }
.book-cover-img--contain img { object-fit: contain; padding: 12px; }
.book:hover .book-cover-img img { transform: scale(1.04); }
.book:hover .book-cover-img--contain img { transform: none; }
.book-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
    color: #fff; background: rgba(0,64,160,.86); padding: 6px 11px; border-radius: 999px;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.book-price { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 16px; }
.price-now { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; color: var(--royal-deep); }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 0.88rem; }
.book-edition { font-weight: 400; font-size: 0.82rem; color: var(--muted); }

/* Category filter */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 auto clamp(32px, 4vw, 52px); }
.filter-chip {
    font-family: var(--font-body); font-size: 0.84rem; font-weight: 600; cursor: pointer;
    color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line);
    padding: 10px 18px; border-radius: 999px; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.filter-chip:hover { transform: translateY(-2px); border-color: rgba(0,64,160,.4); }
.filter-chip.active { background: linear-gradient(135deg, var(--royal-bright), var(--royal-deep)); color: #fff; border-color: transparent; }
.book.is-hidden { display: none; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden; text-align: center;
    background: linear-gradient(180deg, var(--ink-2), var(--ink));
    color: var(--ivory); padding: clamp(72px, 9vw, 120px) 0;
}
.cta-band-glow {
    position: absolute; bottom: -220px; left: 50%; transform: translateX(-50%);
    width: 780px; height: 620px; background: radial-gradient(circle, rgba(0,64,160,.34), transparent 62%);
    pointer-events: none;
}
.cta-band-inner { position: relative; z-index: 2; max-width: 820px; }
.cta-band .eyebrow { color: var(--gold); }
.cta-band h2 { color: var(--ivory); }
.cta-band p { color: rgba(244,246,251,.76); max-width: 640px; margin: 0 auto; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.btn-ghost--light { color: var(--ivory); border-color: rgba(244,246,251,.35); }
.btn-ghost--light:hover { background: var(--ivory); color: var(--ink); }

/* ---------- Blue resource band ---------- */
.books-cta-band {
    text-align: center; color: #fff; padding: clamp(64px, 8vw, 104px) 0;
    background: linear-gradient(135deg, var(--royal-deep), var(--royal) 55%, var(--royal-bright));
}
.books-cta-band .eyebrow { color: rgba(255,255,255,.82); }
.books-cta-band h2 { color: #fff; }
.books-cta-band p { color: rgba(255,255,255,.86); max-width: 620px; margin: 0 auto 28px; }
.books-cta-band .btn-primary { background: #fff; color: var(--royal-deep); box-shadow: 0 14px 32px rgba(0,0,0,.22); }
.books-cta-band .btn-primary:hover { transform: translateY(-3px); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 0.9fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.contact-form-wrap h2, .contact-aside h2 { margin-bottom: .3em; }
.contact-form-wrap .section-sub { margin-bottom: 26px; }
.contact-aside {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(26px, 3.5vw, 40px); box-shadow: var(--shadow-sm);
}
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 22px; }
.contact-list li { display: flex; align-items: center; gap: 15px; }
.contact-list li div { display: flex; flex-direction: column; }
.contact-list li strong { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.contact-list li a { font-weight: 600; color: var(--ink); }
.contact-list li a:hover { color: var(--royal-deep); }
.contact-icon {
    width: 46px; height: 46px; flex: none; display: grid; place-items: center;
    border-radius: 12px; background: var(--ivory); border: 1px solid var(--line); color: var(--royal-deep);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-social { margin-top: 28px; }
.footer-social--dark a { border-color: var(--line); color: var(--ink); }
.contact-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact-note p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.contact-note strong { color: var(--ink-soft); }

/* ---------- Footer additions ---------- */
.footer-heading {
    display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .2em;
    font-weight: 700; color: var(--royal-bright); margin-bottom: 10px;
}
.footer-heading--sub { margin-top: 20px; }
.footer-brand .footer-title { color: rgba(244,246,251,.78); font-size: 0.9rem; max-width: 380px; }
.footer-brand .footer-tag { color: var(--gold); font-size: 0.86rem; font-weight: 600; max-width: 380px; }
.footer-explore { display: flex; flex-direction: column; gap: 12px; }
.footer-explore a { font-size: 0.94rem; }
.footer-explore a:hover { color: var(--royal-bright); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .95s var(--ease), transform .95s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (hover: none) {
    .slide-btn { opacity: 1; width: 38px; height: 38px; }
    .slide-dots { bottom: 104px; }
}

@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { max-width: 460px; margin: 0 auto; order: -1; }
    .portrait-frame { min-height: 430px; }
    .split { grid-template-columns: 1fr; }
    .collage-main { height: 380px; }
    .book-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .pillars { grid-template-columns: 1fr; }
    .brand-cards { grid-template-columns: 1fr; }
    .codex-features { grid-template-columns: 1fr; gap: 30px; }
    .contact-grid { grid-template-columns: 1fr; }
    .page-hero h1 { max-width: none; }
}

@media (max-width: 820px) {
    .nav {
        position: fixed; inset: 0 0 0 auto; width: min(80vw, 340px);
        background: var(--ivory); flex-direction: column; align-items: flex-start; justify-content: center;
        padding: 40px; gap: 26px; transform: translateX(105%); transition: transform .45s var(--ease);
        box-shadow: var(--shadow-lg); z-index: 99;
    }
    .nav.open { transform: translateX(0); }
    .nav a { font-size: 1.15rem; }
    .nav-cta { width: 100%; justify-content: center; }
    .nav-toggle { display: flex; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .cards { grid-template-columns: 1fr; }
    .quotes { grid-template-columns: 1fr; }
    .contact-inner { grid-template-columns: 1fr; }
    .book-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .steps { grid-template-columns: 1fr; }
    .collage-inset { right: 6px; top: -18px; }
    .collage-tag { left: 12px; }
    .values-grid, .article-grid { grid-template-columns: 1fr; }
    .card--wide { grid-template-columns: 1fr; gap: 16px; }
    .programme { grid-template-columns: 1fr; gap: 14px; padding: 28px; }
    .programme-num { font-size: 1.9rem; }
    .qual-list li { grid-template-columns: 1fr; }
    .pillar, .brand-card, .programme, .value, .article-card { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .hero-stats li + li { padding-left: 20px; }
    .footer-inner { grid-template-columns: 1fr; }
    .header-inner { gap: 12px; }
    .brand { font-size: 1.25rem; }
}

/* Collapse the (7-item) primary nav earlier so it never crowds the header */
@media (max-width: 1200px) {
    .nav {
        position: fixed; inset: 0 0 0 auto; width: min(82vw, 360px);
        background: var(--ivory); flex-direction: column; align-items: flex-start; justify-content: center;
        padding: 44px; gap: 24px; transform: translateX(105%); transition: transform .45s var(--ease);
        box-shadow: var(--shadow-lg); z-index: 99;
    }
    .nav.open { transform: translateX(0); }
    .nav a { font-size: 1.12rem; white-space: normal; }
    .nav-cta { width: 100%; justify-content: center; font-size: 0.85rem; padding: 13px 18px; }
    .nav-toggle { display: flex; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
