/* =====================================================================
   CEPIENTA ACADEMIA — Educate & Enlight
   Palette taken from the logo: deep maroon + magenta on warm ivory.
   ===================================================================== */
:root {
    --maroon: #6F0C33;
    --maroon-2: #8C1544;
    --maroon-ink: #3A0619;
    --magenta: #D2206F;
    --magenta-2: #E04A8C;
    --rose: #FBEFF4;
    --rose-2: #F6DDE7;
    --ivory: #FCFAF7;
    --paper: #FFFFFF;
    --ink: #22161B;
    --text: #3F3439;
    --muted: #776A70;
    --line: #EDE2E6;
    --gold: #C9A16B;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(72, 10, 36, .07);
    --shadow-lg: 0 24px 60px rgba(72, 10, 36, .14);
    --serif: 'Cormorant Garamond', 'Times New Roman', serif;
    --sans: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--ivory); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--maroon); text-decoration: none; transition: color .2s; }
a:hover { color: var(--magenta); }
h1, h2, h3, h4, h5 { font-family: var(--serif); color: var(--ink); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--magenta); color: #fff; }
.container { max-width: 1240px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 9999; background: var(--maroon); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }
:focus-visible { outline: 3px solid rgba(210, 32, 111, .45); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn-a { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1.2; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s; white-space: nowrap; font-family: var(--sans); }
.btn-a:hover { transform: translateY(-2px); }
.btn-a:active { transform: translateY(0); }
.btn-a-primary { background: var(--maroon); color: #fff; box-shadow: 0 10px 24px rgba(111, 12, 51, .25); }
.btn-a-primary:hover { background: var(--maroon-2); color: #fff; }
.btn-a-accent { background: var(--magenta); color: #fff; box-shadow: 0 10px 24px rgba(210, 32, 111, .28); }
.btn-a-accent:hover { background: var(--magenta-2); color: #fff; }
.btn-a-outline { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-a-outline:hover { background: var(--maroon); color: #fff; }
.btn-a-light { background: #fff; color: var(--maroon); }
.btn-a-light:hover { background: var(--rose); color: var(--maroon); }
.btn-a-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-a-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-a-sm { padding: 9px 18px; font-size: 14px; }
.btn-a-lg { padding: 16px 32px; font-size: 16px; }
.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Section scaffolding ---------- */
.sec { padding: 110px 0; position: relative; }
.sec-sm { padding: 70px 0; }
.sec-rose { background: var(--rose); }
.sec-paper { background: var(--paper); }
.sec-dark { background: var(--maroon-ink); color: rgba(255, 255, 255, .78); }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 12.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--magenta); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.eyebrow.center::after { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.sec-dark .eyebrow { color: var(--magenta-2); }
.sec-title { font-size: clamp(34px, 4.4vw, 56px); }
.sec-title em { font-style: italic; color: var(--magenta); font-weight: 600; }
.sec-dark .sec-title em { color: #F28DB8; }
.sec-lead { font-size: 18px; color: var(--muted); max-width: 680px; }
.sec-dark .sec-lead { color: rgba(255, 255, 255, .7); }
.sec-head { margin-bottom: 56px; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-lead { margin-left: auto; margin-right: auto; }
.sec-num { font-family: var(--serif); font-style: italic; color: var(--magenta); }

/* ---------- Top bar ---------- */
.topbar { background: var(--maroon-ink); color: rgba(255, 255, 255, .75); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 20px; }
.topbar a { color: rgba(255, 255, 255, .82); }
.topbar a:hover { color: #fff; }
.topbar-left { display: flex; gap: 22px; align-items: center; }
.topbar-left i { color: var(--magenta-2); margin-right: 6px; }
.topbar-social { display: flex; gap: 14px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(252, 250, 247, .92); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(72, 10, 36, .06); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 86px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 54px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 27px; letter-spacing: .06em; color: var(--maroon); }
.brand-sub { font-family: var(--serif); font-weight: 600; font-size: 13px; letter-spacing: .58em; color: var(--magenta); margin-top: 4px; padding-left: 2px; }
.brand-tag { font-size: 10.5px; letter-spacing: .14em; color: var(--muted); margin-top: 5px; text-transform: uppercase; font-weight: 600; }
.main-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav-list > li { position: relative; }
.nav-link-a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; font-weight: 700; font-size: 15px; color: var(--ink); border-radius: 999px; transition: background .2s, color .2s; background: none; border: 0; font-family: var(--sans); cursor: pointer; }
.nav-link-a:hover, .nav-link-a.active { color: var(--maroon); background: var(--rose); }
.nav-link-a .bi-chevron-down { font-size: 11px; transition: transform .25s; }
.has-dd:hover .bi-chevron-down, .has-dd:focus-within .bi-chevron-down { transform: rotate(180deg); }
.dd-panel { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px); width: 560px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.dd-panel::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.has-dd:hover .dd-panel, .has-dd:focus-within .dd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dd-title { grid-column: span 1; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 4px 10px; }
.dd-col { display: flex; flex-direction: column; gap: 2px; }
.dd-link { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.dd-link:hover { background: var(--rose); color: var(--maroon); }
.dd-link .dd-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--rose); color: var(--maroon); display: grid; place-items: center; flex-shrink: 0; }
.dd-link small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.dd-link .dd-no { font-family: var(--serif); font-style: italic; color: var(--magenta); width: 30px; flex-shrink: 0; }
.dd-foot { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); font-size: 17px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.icon-btn:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.parent-brand { display: flex; align-items: center; gap: 10px; padding-left: 18px; border-left: 1px solid var(--line); }
.parent-brand img { height: 40px; width: auto; }
.parent-brand small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; line-height: 1.3; }
.menu-toggle { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.menu-toggle span { width: 18px; height: 2px; background: var(--maroon); border-radius: 2px; }

/* Mobile menu */
.mobile-menu { width: min(380px, 100vw) !important; background: var(--ivory); }
.mobile-menu .offcanvas-header { border-bottom: 1px solid var(--line); }
.m-nav { list-style: none; padding: 0; margin: 16px 0; }
.m-nav > li > a, .m-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 14px 4px; font-weight: 700; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); background: none; font-size: 16px; font-family: var(--sans); text-align: left; }
.m-nav a.active { color: var(--magenta); }
.m-sub { padding: 8px 0 8px 12px; display: flex; flex-direction: column; }
.m-sub a { padding: 8px 0; color: var(--text); font-weight: 500; font-size: 15px; }
.m-sub a .no { font-family: var(--serif); font-style: italic; color: var(--magenta); display: inline-block; width: 36px; }
.m-actions { display: grid; gap: 10px; margin-top: 18px; }
.m-parent { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.m-parent img { height: 34px; display: block; margin-top: 8px; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(58, 6, 25, .82); backdrop-filter: blur(10px); display: flex; align-items: flex-start; justify-content: center; padding: 14vh 20px 20px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box { width: min(760px, 100%); transform: translateY(-14px); transition: transform .35s var(--ease); }
.search-overlay.open .search-box { transform: none; }
.search-box form { display: flex; align-items: center; background: #fff; border-radius: 999px; padding: 8px 8px 8px 26px; box-shadow: var(--shadow-lg); }
.search-box input { flex: 1; border: 0; outline: 0; font-size: 19px; font-family: var(--sans); background: transparent; min-width: 0; color: var(--ink); }
.search-box .hint { color: rgba(255, 255, 255, .7); margin-top: 18px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search-box .hint a { color: #fff; border: 1px solid rgba(255, 255, 255, .3); padding: 4px 12px; border-radius: 999px; font-size: 13px; }
.search-box .hint a:hover { background: rgba(255, 255, 255, .12); }
.search-close { position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; font-size: 20px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 110px; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -260px; background: radial-gradient(circle, rgba(210, 32, 111, .14), transparent 65%); pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 600px; height: 600px; left: -300px; bottom: -300px; background: radial-gradient(circle, rgba(111, 12, 51, .08), transparent 65%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero-caption { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--maroon); box-shadow: var(--shadow); }
.hero-caption span { background: var(--maroon); color: #fff; padding: 5px 12px; border-radius: 999px; letter-spacing: .16em; font-size: 11.5px; }
.hero h1 { font-size: clamp(52px, 7.6vw, 104px); line-height: .98; margin: 28px 0 26px; letter-spacing: -.02em; }
.hero h1 em { color: var(--magenta); font-weight: 500; font-style: italic; }
.hero h1 .amp { font-style: italic; font-weight: 400; color: var(--gold); }
.hero-lead { font-size: 19px; max-width: 560px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-search { margin-top: 34px; display: flex; align-items: center; max-width: 540px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 22px; box-shadow: var(--shadow); }
.hero-search i { color: var(--muted); }
.hero-search input { flex: 1; border: 0; outline: 0; padding: 10px 12px; font-family: var(--sans); font-size: 15px; min-width: 0; background: transparent; }
.hero-trust { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-trust div { line-height: 1.2; }
.hero-trust strong { display: block; font-family: var(--serif); font-size: 34px; color: var(--maroon); }
.hero-trust span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Hero visual: stacked library cards */
.hero-visual { position: relative; height: 560px; }
.hv-ring { position: absolute; inset: 40px 10px 20px 40px; border-radius: 50%; border: 1px dashed rgba(111, 12, 51, .2); }
.hv-logo { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, var(--rose)); box-shadow: var(--shadow-lg), inset 0 0 0 10px rgba(255, 255, 255, .7); display: grid; place-items: center; }
.hv-logo img { width: 72%; }
.hv-card { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px 16px; display: flex; align-items: center; gap: 12px; width: 250px; border: 1px solid var(--line); animation: float 7s ease-in-out infinite; }
.hv-card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.hv-card strong { display: block; font-size: 14.5px; color: var(--ink); line-height: 1.3; }
.hv-card small { color: var(--muted); font-size: 12.5px; }
.hv-card.c1 { top: 30px; left: 0; }
.hv-card.c1 .ico { background: var(--rose); color: var(--maroon); }
.hv-card.c2 { top: 120px; right: -10px; animation-delay: -2s; }
.hv-card.c2 .ico { background: var(--maroon); color: #fff; }
.hv-card.c3 { bottom: 70px; left: -20px; animation-delay: -4s; }
.hv-card.c3 .ico { background: var(--magenta); color: #fff; }
.hv-card.c4 { bottom: 10px; right: 20px; width: auto; animation-delay: -5s; background: var(--maroon-ink); border-color: var(--maroon-ink); }
.hv-card.c4 strong { color: #fff; }
.hv-card.c4 small { color: rgba(255, 255, 255, .65); }
.hv-card.c4 .ico { background: rgba(255, 255, 255, .1); color: var(--gold); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Pillars (Section 1) ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; margin-top: -40px; position: relative; z-index: 2; }
.pillar { padding: 34px 30px 32px; position: relative; border-right: 1px solid var(--line); transition: background .3s; display: flex; flex-direction: column; color: var(--text); }
.pillar:last-child { border-right: 0; }
.pillar:hover { background: var(--rose); color: var(--text); }
.pillar .step { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--magenta); }
.pillar .p-ico { width: 54px; height: 54px; border-radius: 14px; background: var(--maroon); color: #fff; display: grid; place-items: center; font-size: 22px; margin: 18px 0 18px; transition: transform .3s var(--ease); }
.pillar:hover .p-ico { transform: rotate(-6deg) scale(1.05); }
.pillar h3 { font-size: 27px; margin-bottom: 10px; }
.pillar p { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.pillar .link-arrow { margin-top: auto; font-size: 14px; }
.pillar-bar { height: 4px; background: var(--rose-2); border-radius: 4px; margin-bottom: 4px; overflow: hidden; }
.pillar-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--maroon), var(--magenta)); border-radius: 4px; }

/* ---------- About (Section 2) ---------- */
.about-visual { position: relative; padding: 30px; }
.about-frame { background: #fff; border-radius: 28px; padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); position: relative; z-index: 1; text-align: center; }
.about-frame img { width: 100%; max-width: 420px; }
.about-visual::before { content: ""; position: absolute; inset: 0 60px 60px 0; border-radius: 32px; background: linear-gradient(135deg, var(--maroon), var(--magenta)); transform: rotate(-3deg); }
.about-badge { position: absolute; z-index: 2; right: 0; bottom: 0; background: var(--maroon-ink); color: #fff; border-radius: 18px; padding: 18px 22px; box-shadow: var(--shadow-lg); max-width: 230px; font-size: 13.5px; line-height: 1.45; }
.about-badge strong { display: block; font-family: var(--serif); font-size: 30px; color: var(--gold); line-height: 1; margin-bottom: 4px; }
.prose p { font-size: 17px; }
.prose strong { color: var(--ink); }
.pullquote { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); font-style: italic; line-height: 1.3; color: var(--maroon); border-left: 3px solid var(--magenta); padding-left: 24px; margin: 30px 0; font-weight: 600; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--maroon); }
.chip i { color: var(--magenta); }

/* ---------- Advantage (Section 3) ---------- */
.adv-intro { position: sticky; top: 120px; }
.adv-list { border-top: 1px solid var(--line); }
.adv-item { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease); }
.adv-item:hover { padding-left: 12px; }
.adv-no { font-family: var(--serif); font-size: 54px; line-height: .9; font-weight: 600; color: transparent; -webkit-text-stroke: 1.2px var(--maroon); transition: color .3s; }
.adv-item:hover .adv-no { color: var(--maroon); }
.adv-item h3 { font-size: 28px; margin-bottom: 4px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.adv-item h3 i { font-size: 20px; color: var(--magenta); }
.adv-tag { display: block; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--magenta); margin-bottom: 10px; }
.adv-item p { color: var(--muted); margin: 0; font-size: 16px; }

/* Promise band */
.promise { background: var(--maroon); color: #fff; position: relative; overflow: hidden; padding: 110px 0; }
.promise::before { content: "\201C"; position: absolute; font-family: var(--serif); font-size: 520px; line-height: 1; top: -90px; left: 3%; color: rgba(255, 255, 255, .06); }
.promise::after { content: ""; position: absolute; right: -160px; bottom: -160px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(210, 32, 111, .55), transparent 70%); }
.promise .container { position: relative; z-index: 1; }
.promise .eyebrow { color: #F7B6D2; }
.promise h2 { color: #fff; font-size: clamp(34px, 4vw, 52px); }
.promise-lines { list-style: none; padding: 0; margin: 30px 0 0; }
.promise-lines li { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 34px); font-style: italic; line-height: 1.35; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .68); }
.promise-lines li strong { color: #fff; font-weight: 600; }

/* ---------- Domains (Section 4) ---------- */
.domain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.domain-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 22px; display: flex; flex-direction: column; min-height: 230px; color: var(--text); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; isolation: isolate; }
.domain-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, var(--maroon) 0%, var(--maroon-2) 60%, var(--magenta) 140%); opacity: 0; transition: opacity .35s; z-index: -1; }
.domain-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: rgba(255, 255, 255, .8); }
.domain-card:hover::before { opacity: 1; }
.domain-card .d-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.domain-card .d-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--rose); color: var(--maroon); display: grid; place-items: center; font-size: 22px; transition: background .35s, color .35s; }
.domain-card:hover .d-ico { background: rgba(255, 255, 255, .14); color: #fff; }
.domain-card .d-no { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--magenta); transition: color .35s; }
.domain-card:hover .d-no { color: #F7B6D2; }
.domain-card h3 { font-size: 24px; margin-bottom: 8px; transition: color .35s; }
.domain-card:hover h3 { color: #fff; }
.domain-card p { font-size: 14px; margin-bottom: 14px; color: var(--muted); transition: color .35s; }
.domain-card:hover p { color: rgba(255, 255, 255, .75); }
.domain-card .d-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; }
.domain-card .d-foot i { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .35s var(--ease), border-color .35s, background .35s; }
.domain-card:hover .d-foot i { transform: rotate(-45deg); background: #fff; color: var(--maroon); border-color: #fff; }
.domain-card.cta { background: var(--maroon-ink); color: rgba(255, 255, 255, .75); justify-content: center; }
.domain-card.cta h3 { color: #fff; }

/* ---------- Library cards ---------- */
.res-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.res-tab { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; color: var(--text); cursor: pointer; transition: all .2s; display: inline-flex; gap: 8px; align-items: center; }
.res-tab:hover { border-color: var(--maroon); color: var(--maroon); }
.res-tab.active { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.res-tab .count { font-size: 12px; opacity: .7; }
.res-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; color: var(--text); }
.res-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--text); }
.res-thumb { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(140deg, var(--maroon-ink), var(--maroon) 55%, var(--magenta-2)); overflow: hidden; display: grid; place-items: center; }
.res-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.res-card:hover .res-thumb img { transform: scale(1.05); }
.res-thumb .ph { color: rgba(255, 255, 255, .9); text-align: center; padding: 20px; }
.res-thumb .ph i { font-size: 38px; display: block; margin-bottom: 8px; color: #F7B6D2; }
.res-thumb .ph span { font-family: var(--serif); font-size: 21px; line-height: 1.2; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.res-thumb.book { aspect-ratio: 16 / 10; }
.res-thumb.book .ph { background: linear-gradient(90deg, rgba(0, 0, 0, .25) 0 6px, transparent 6px); }
.res-type { position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, .95); color: var(--maroon); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.res-dur { position: absolute; bottom: 14px; right: 14px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.res-play { position: absolute; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--magenta); display: grid; place-items: center; font-size: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.res-card:hover .res-play { transform: scale(1.1); }
.res-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.res-meta-top { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--magenta); margin-bottom: 10px; }
.res-meta-top .series { color: var(--muted); }
.res-body h3 { font-size: 23px; margin-bottom: 8px; }
.res-body p { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.res-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.res-foot .who { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); min-width: 0; }
.res-foot .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-av { width: 28px; height: 28px; border-radius: 50%; background: var(--rose); color: var(--maroon); font-weight: 800; font-size: 11px; display: grid; place-items: center; flex-shrink: 0; }

/* ---------- Evidence (Section 5) ---------- */
.evidence-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ev-card { background: #0F0508; border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; padding: 16px 16px 20px; text-align: center; transition: transform .35s var(--ease), border-color .35s; }
.ev-card:hover { transform: translateY(-5px); border-color: rgba(247, 182, 210, .4); }
.ev-logo { height: 110px; border-radius: 14px; background: #fff; display: grid; place-items: center; padding: 14px; margin-bottom: 16px; }
.ev-logo img { max-height: 80px; max-width: 100%; object-fit: contain; }
.ev-logo .word { font-family: var(--serif); font-weight: 700; color: var(--maroon); font-size: 26px; line-height: 1.05; }
.ev-logo .word small { display: block; font-family: var(--sans); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 6px; }
.ev-card h3 { font-family: var(--sans); font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.ev-card p { font-size: 13px; color: rgba(255, 255, 255, .55); margin: 0; line-height: 1.5; }
.ev-tagline { display: inline-flex; gap: 14px; align-items: center; font-weight: 700; color: #fff; font-size: 15px; margin-bottom: 18px; }
.ev-tagline span { width: 5px; height: 5px; border-radius: 50%; background: var(--magenta); }

/* ---------- Partner (Section 6) ---------- */
.partner { position: relative; overflow: hidden; }
.partner-card { background: #fff; border-radius: 32px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.partner-left { padding: 60px 56px; }
.partner-right { background: linear-gradient(160deg, var(--maroon-ink), var(--maroon) 70%, var(--magenta)); color: rgba(255, 255, 255, .8); padding: 60px 48px; height: 100%; position: relative; overflow: hidden; }
.partner-right::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .05); right: -120px; top: -120px; }
.partner-right h3 { color: #fff; font-size: 38px; }
.lse { display: grid; gap: 16px; margin: 28px 0 32px; position: relative; z-index: 1; }
.lse-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.lse-item .n { font-family: var(--serif); font-size: 30px; color: #F7B6D2; line-height: 1; width: 40px; flex-shrink: 0; font-style: italic; }
.lse-item strong { color: #fff; display: block; font-size: 16px; }
.lse-item span { font-size: 14px; }
.partner-motto { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--maroon); margin-top: 26px; }
.who-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.who-list span { padding: 7px 14px; border-radius: 999px; background: var(--rose); color: var(--maroon); font-weight: 700; font-size: 13.5px; }

/* ---------- Stats (Section 7) ---------- */
.stats-band { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 38px 30px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(46px, 5vw, 64px); line-height: 1; color: var(--maroon); font-weight: 700; }
.stat strong sup { font-size: .5em; color: var(--magenta); top: -.8em; }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-weight: 600; font-size: 14.5px; line-height: 1.45; }

/* ---------- Voices ---------- */
.voice-feature { background: #fff; border-radius: 24px; border: 1px solid var(--line); padding: 40px; height: 100%; position: relative; box-shadow: var(--shadow); }
.voice-feature.alt { background: var(--maroon); border-color: var(--maroon); color: rgba(255, 255, 255, .82); }
.voice-feature .who-tag { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--magenta); }
.voice-feature.alt .who-tag { color: #F7B6D2; }
.voice-feature h3 { font-size: 32px; font-style: italic; margin: 12px 0 16px; font-weight: 600; }
.voice-feature.alt h3 { color: #fff; }
.voice-feature blockquote { margin: 0 0 26px; font-size: 16.5px; }
.voice-person { display: flex; align-items: center; gap: 14px; }
.voice-person .av { width: 52px; height: 52px; border-radius: 50%; background: var(--rose); color: var(--maroon); font-weight: 800; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.voice-person .av img { width: 100%; height: 100%; object-fit: cover; }
.voice-feature.alt .voice-person .av { background: rgba(255, 255, 255, .14); color: #fff; }
.voice-person strong { display: block; color: var(--ink); font-size: 16px; line-height: 1.3; }
.voice-feature.alt .voice-person strong { color: #fff; }
.voice-person small { color: var(--muted); font-size: 13px; line-height: 1.4; display: block; }
.voice-feature.alt .voice-person small { color: rgba(255, 255, 255, .65); }
.t-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; height: 100%; display: flex; flex-direction: column; }
.t-card .q { font-family: var(--serif); font-size: 64px; line-height: .6; color: var(--magenta); height: 30px; }
.t-card p { font-size: 15.5px; color: var(--text); flex: 1; }
.t-card .voice-person { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; }
.voices-swiper, .faces-swiper { padding-bottom: 60px !important; }
.faces-swiper .swiper-slide { height: auto; }
.face-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.face-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.face-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--rose); }
.face-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s var(--ease); }
.face-card:hover .face-photo img { transform: scale(1.04); }
.face-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 18px; background: linear-gradient(to top, rgba(58, 6, 25, .92) 0%, rgba(58, 6, 25, .55) 55%, transparent 100%); color: #fff; }
.face-meta strong { display: block; font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.face-meta small { display: block; font-size: 13px; color: rgba(255, 255, 255, .78); margin-top: 3px; line-height: 1.4; }
.name-slot { display: block; width: 72%; height: 26px; border-bottom: 2px dashed rgba(255, 255, 255, .55); }
.face-quote { padding: 18px 20px 22px; margin: 0; font-size: 14.5px; color: var(--text); }
.face-quote .q { font-family: var(--serif); font-size: 40px; line-height: 0; color: var(--magenta); vertical-align: -14px; margin-right: 4px; }
.voices-swiper .swiper-slide { height: auto; }
.swiper-nav { display: flex; gap: 10px; }
.swiper-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--maroon); font-size: 18px; transition: all .2s; cursor: pointer; }
.swiper-nav button:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.swiper-pagination-bullet { background: var(--maroon); }
.swiper-pagination-bullet-active { background: var(--magenta); width: 26px; border-radius: 6px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 24px 50px 24px 0; font-family: var(--serif); font-size: 23px; font-weight: 700; color: var(--ink); position: relative; cursor: pointer; line-height: 1.3; }
.faq-q::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--sans); font-size: 20px; font-weight: 400; color: var(--maroon); transition: transform .3s, background .3s, color .3s; }
.faq-q:not(.collapsed)::after { content: "–"; background: var(--maroon); color: #fff; border-color: var(--maroon); }
.faq-q:hover { color: var(--maroon); }
.faq-a { padding: 0 60px 24px 0; color: var(--muted); font-size: 16px; }
.faq-side { background: var(--maroon-ink); border-radius: 24px; padding: 40px; color: rgba(255, 255, 255, .75); position: sticky; top: 120px; }
.faq-side h3 { color: #fff; font-size: 32px; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner { position: relative; padding: 80px 0 90px; overflow: hidden; background: var(--maroon-ink); color: rgba(255, 255, 255, .78); }
.page-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(210, 32, 111, .45), transparent 45%), radial-gradient(circle at 0% 100%, rgba(140, 21, 68, .6), transparent 50%); }
.page-banner::after { content: ""; position: absolute; right: 4%; bottom: -40px; width: 300px; height: 300px; background: url('../img/academia-mark-white.png') center / contain no-repeat; opacity: .07; }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; font-size: clamp(42px, 6vw, 76px); margin-bottom: 16px; }
.page-banner h1 em { color: #F7B6D2; font-weight: 500; }
.page-banner p { font-size: 18px; max-width: 680px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; font-size: 13.5px; font-weight: 600; }
.crumbs a { color: rgba(255, 255, 255, .7); }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .35); }
.crumbs li:last-child { color: #F7B6D2; }
.banner-no { font-family: var(--serif); font-style: italic; font-size: 22px; color: #F7B6D2; display: block; margin-bottom: 6px; }

/* ---------- Library page ---------- */
.lib-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.lib-side { position: sticky; top: 110px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.lib-side h4 { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.lib-side h4:first-child { margin-top: 0; }
.f-link { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 10px; color: var(--text); font-size: 14.5px; font-weight: 600; }
.f-link:hover { background: var(--rose); color: var(--maroon); }
.f-link.active { background: var(--maroon); color: #fff; }
.f-link small { font-size: 12px; opacity: .65; }
.lib-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.lib-search { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 18px; flex: 1; min-width: 240px; max-width: 520px; }
.lib-search input { flex: 1; border: 0; outline: 0; padding: 9px 10px; background: transparent; font-family: var(--sans); min-width: 0; }
.lib-select { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 16px; font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--text); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.active-filters a { display: inline-flex; gap: 6px; align-items: center; background: var(--rose); color: var(--maroon); padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.empty { text-align: center; padding: 70px 20px; background: #fff; border: 1px dashed var(--rose-2); border-radius: 20px; }
.empty i { font-size: 44px; color: var(--magenta); }
.empty h3 { margin-top: 14px; font-size: 28px; }
.empty p { color: var(--muted); }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; font-weight: 700; color: var(--text); }
.pager a:hover { border-color: var(--maroon); color: var(--maroon); }
.pager .active { background: var(--maroon); color: #fff; border-color: var(--maroon); }

/* ---------- Domain page ---------- */
.topic-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; padding: 0; margin: 0; }
.topic-list li { display: flex; gap: 10px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.topic-list li i { color: var(--magenta); }
.domain-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.domain-nav a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 700; color: var(--text); }
.domain-nav a .no { font-family: var(--serif); font-style: italic; color: var(--magenta); margin-right: 4px; }
.domain-nav a:hover, .domain-nav a.active { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.domain-nav a.active .no, .domain-nav a:hover .no { color: #F7B6D2; }
.series-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.series-pill { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; color: var(--text); display: block; transition: border-color .2s, transform .25s var(--ease); }
.series-pill:hover { border-color: var(--maroon); transform: translateY(-3px); color: var(--text); }
.series-pill.active { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.series-pill i { font-size: 20px; color: var(--magenta); }
.series-pill.active i { color: #F7B6D2; }
.series-pill strong { display: block; font-family: var(--serif); font-size: 21px; margin-top: 6px; color: inherit; }
.series-pill small { font-size: 12.5px; opacity: .7; font-weight: 600; }

/* ---------- Resource detail ---------- */
.viewer { background: #0F0508; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.viewer .ratio iframe, .viewer video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.viewer-doc { height: 78vh; min-height: 520px; }
.viewer-doc iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.viewer-ph { aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; color: rgba(255, 255, 255, .8); background: linear-gradient(140deg, var(--maroon-ink), var(--maroon) 60%, var(--magenta-2)); padding: 30px; }
.viewer-ph i { font-size: 54px; color: #F7B6D2; }
.viewer-ph h3 { color: #fff; font-size: 30px; margin: 12px 0 6px; }
.detail-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.detail-card + .detail-card { margin-top: 18px; }
.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.detail-list li:last-child { border-bottom: 0; }
.detail-list span { color: var(--muted); }
.detail-list strong { color: var(--ink); text-align: right; }
.author-box { display: flex; gap: 16px; align-items: center; }
.author-box .av { width: 60px; height: 60px; font-size: 18px; }
.res-title { font-size: clamp(34px, 4vw, 52px); }
.tag { display: inline-flex; gap: 6px; align-items: center; padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--rose); color: var(--maroon); }
.tag.dark { background: var(--maroon); color: #fff; }
.kw { display: flex; flex-wrap: wrap; gap: 8px; }
.kw span { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); background: #fff; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); }
.f-label { display: block; font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 7px; }
.f-label .req { color: var(--magenta); }
.f-input { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 16px; font-family: var(--sans); font-size: 15px; background: var(--ivory); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.f-input:focus { outline: 0; border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(210, 32, 111, .12); background: #fff; }
textarea.f-input { resize: vertical; min-height: 120px; }
.f-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; display: block; }
.f-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; border: 2px dashed var(--rose-2); background: var(--rose); border-radius: 16px; padding: 26px; cursor: pointer; transition: border-color .2s, background .2s; position: relative; }
.f-drop:hover, .f-drop.drag { border-color: var(--magenta); background: #fff; }
.f-drop i { font-size: 30px; color: var(--magenta); }
.f-drop strong { color: var(--ink); }
.f-drop small { color: var(--muted); }
.f-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.f-drop .f-name { font-weight: 700; color: var(--maroon); font-size: 14px; word-break: break-all; }
.f-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.f-check input { margin-top: 4px; accent-color: var(--maroon); width: 16px; height: 16px; flex-shrink: 0; }
.alert-a { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; font-size: 15px; margin-bottom: 22px; }
.alert-a.ok { background: #EAF7EF; color: #1D6B3D; }
.alert-a.err { background: #FDECEF; color: #A0213F; }
.alert-a i { font-size: 18px; margin-top: 1px; }

/* Submission modal (Submission window 1) */
.submit-modal .modal-content { border: 0; border-radius: 26px; overflow: hidden; }
.submit-modal .modal-dialog { max-width: 880px; }
.sm-grid { display: grid; grid-template-columns: 300px 1fr; }
.sm-aside { background: linear-gradient(170deg, var(--maroon-ink), var(--maroon) 65%, var(--magenta)); color: rgba(255, 255, 255, .78); padding: 36px 30px; display: flex; flex-direction: column; }
.sm-aside img { width: 70px; margin-bottom: 18px; }
.sm-aside h3 { color: #fff; font-size: 30px; }
.sm-aside ul { list-style: none; padding: 0; margin: 18px 0 0; font-size: 14px; }
.sm-aside li { display: flex; gap: 10px; padding: 7px 0; }
.sm-aside li i { color: #F7B6D2; }
.sm-aside .motto { margin-top: auto; padding-top: 24px; font-family: var(--serif); font-style: italic; font-size: 18px; color: #fff; }
.sm-body { padding: 34px 34px 30px; position: relative; }
.sm-body .btn-close { position: absolute; right: 20px; top: 20px; }
.sm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.sm-head .n { width: 34px; height: 34px; border-radius: 50%; background: var(--magenta); color: #fff; display: grid; place-items: center; font-weight: 800; }
.sm-head h4 { margin: 0; font-size: 26px; }

/* ---------- Contact ---------- */
.contact-tile { display: flex; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.contact-tile + .contact-tile { margin-top: 14px; }
.contact-tile .ico { width: 50px; height: 50px; border-radius: 14px; background: var(--rose); color: var(--maroon); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.contact-tile strong { display: block; color: var(--ink); }
.contact-tile span, .contact-tile a { font-size: 15px; white-space: pre-line; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--maroon-ink), var(--maroon) 60%, var(--magenta)); border-radius: 30px; padding: 60px; color: rgba(255, 255, 255, .8); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -40px; top: -40px; width: 280px; height: 280px; background: url('../img/academia-mark-white.png') center / contain no-repeat; opacity: .1; }
.cta-band h2 { color: #fff; font-size: clamp(32px, 3.6vw, 46px); }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-ink); color: rgba(255, 255, 255, .68); padding-top: 90px; font-size: 15px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: -200px; top: -200px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(210, 32, 111, .22), transparent 70%); }
.site-footer .container { position: relative; z-index: 1; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }
.f-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.f-brand img { width: 64px; }
.f-brand .brand-name { color: #fff; }
.f-brand .brand-sub { color: #F7B6D2; }
.f-title { font-family: var(--sans); font-size: 12.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.f-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.f-links.two { grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.f-links .no { font-family: var(--serif); font-style: italic; color: #F7B6D2; margin-right: 6px; }
.f-social { display: flex; gap: 10px; margin-top: 22px; }
.f-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; }
.f-social a:hover { background: var(--magenta); border-color: var(--magenta); }
.f-parent { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; line-height: 1.35; }
.f-parent img { height: 34px; }
.f-motto { font-family: var(--serif); font-style: italic; font-size: clamp(38px, 7vw, 110px); line-height: 1; color: rgba(255, 255, 255, .07); margin: 60px 0 0; white-space: nowrap; text-align: center; font-weight: 600; letter-spacing: -.01em; user-select: none; }
.f-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }

.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; background: var(--maroon); color: #fff; border: 0; box-shadow: var(--shadow-lg); z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--magenta); }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 120px 0; }
.nf .big { font-family: var(--serif); font-size: clamp(120px, 20vw, 220px); line-height: .9; color: var(--maroon); font-weight: 700; }
.nf .big em { color: var(--magenta); }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .domain-grid { grid-template-columns: repeat(3, 1fr); }
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .pillar:nth-child(2) { border-right: 0; }
    .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .parent-brand small { display: none; }
}
@media (max-width: 991.98px) {
    .sec { padding: 80px 0; }
    .hero { padding: 40px 0 90px; }
    .hero-visual { height: 460px; margin-top: 30px; }
    .hv-logo { width: 240px; height: 240px; }
    .adv-intro, .faq-side, .lib-side { position: static; }
    .domain-grid, .evidence-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-band { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .lib-layout { grid-template-columns: 1fr; }
    .partner-left { padding: 44px 32px; }
    .partner-right { padding: 44px 32px; }
    .sm-grid { grid-template-columns: 1fr; }
    .sm-aside { display: none; }
    .series-row { grid-template-columns: 1fr 1fr; }
    .cta-band { padding: 44px 30px; }
}
@media (max-width: 767.98px) {
    .pillars { grid-template-columns: 1fr; margin-top: -30px; }
    .pillar { border-right: 0; border-bottom: 1px solid var(--line); }
    .pillar:last-child { border-bottom: 0; }
    .adv-item { grid-template-columns: 56px 1fr; gap: 14px; }
    .adv-no { font-size: 40px; }
    .adv-item h3 { font-size: 23px; }
    .topic-list { grid-template-columns: 1fr; }
    .form-card { padding: 26px 20px; }
    .voice-feature { padding: 28px; }
    .brand-tag { display: none; }
    .parent-brand { display: none !important; }
}
@media (max-width: 575.98px) {
    .header-inner { min-height: 72px; gap: 12px; }
    .brand-mark { width: 44px; }
    .brand-name { font-size: 22px; }
    .brand-sub { font-size: 11px; letter-spacing: .48em; }
    .domain-grid, .evidence-grid { grid-template-columns: 1fr; }
    .hero-visual { height: 400px; }
    .hv-card { width: 210px; padding: 10px 12px; }
    .hv-card.c2 { right: 0; }
    .hv-card.c3 { left: 0; }
    .hv-logo { width: 200px; height: 200px; }
    .stat { padding: 26px 18px; }
    .faq-q { font-size: 20px; }
    .faq-a { padding-right: 0; }
    .sm-body { padding: 28px 20px; }
    .hero-trust { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Phones: Bootstrap's g-5 gutter (3rem) is wider than the container padding, so rows overflowed by 12px each side */
@media (max-width: 767.98px) { .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; } }

/* Long e-mail addresses in contact tiles must wrap on phones */
.contact-tile > div { min-width: 0; }
.contact-tile span, .contact-tile a { overflow-wrap: anywhere; }

/* Phones: hero visual becomes a tidy logo + 2x2 card grid instead of overlapping floating cards */
@media (max-width: 575.98px) {
    .hero-visual { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
    .hv-ring { display: none; }
    .hv-logo { position: static; transform: none; grid-column: 1 / -1; width: 190px; height: 190px; margin: 0 auto 8px; }
    .hv-card, .hv-card.c1, .hv-card.c2, .hv-card.c3, .hv-card.c4 { position: static; width: auto; animation: none; padding: 10px; gap: 9px; align-items: flex-start; }
    .hv-card .ico { width: 36px; height: 36px; font-size: 16px; border-radius: 10px; }
    .hv-card strong { font-size: 13px; }
    .hv-card small { font-size: 11.5px; line-height: 1.35; display: block; }
}
/* All paragraphs justified (centred headings/subtitles stay centred) */
p, .prose p, .lead-c { text-align: justify; text-justify: inter-word; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; word-break: normal; }
.text-center p, p.text-center, .center p, .sec-head.center p, .text-center .sec-sub, .sec-head.text-center p, .cta-text, .cta-share p, .footer-bottom p, .f-bottom span { text-align: center; hyphens: manual; }
.footer-bottom p, .f-bottom span { text-align: inherit; }
/* Large display quotes stay left-aligned (justify makes big gaps at this size) */
.quote-xl, .pullquote, .split-quote, .still-counting, .quote-band h3, p.big, .cta-o p { text-align: left; hyphens: manual; }
.cta-o p, .quote-band p { text-align: inherit; }

/* ===== 2026-11 updates ===== */
.tnr { font-family: "Times New Roman", Times, Georgia, serif; letter-spacing: .02em; }

/* Header — always visible, a little larger, logo text properly aligned */
.site-header { position: sticky; top: 0; }
.header-inner { min-height: 96px; }
.brand { gap: 14px; }
.brand-mark { width: 64px; }
.brand-text { align-items: center; text-align: center; }
.brand-name { font-family: "Times New Roman", Times, Georgia, serif; font-size: 30px; letter-spacing: .08em; margin-right: -.08em; }
.brand-sub { font-size: 13px; letter-spacing: .5em; margin-right: -.5em; padding-left: 0; }
.brand-tag { font-size: 10px; letter-spacing: .16em; margin-right: -.16em; }
.nav-link-a { font-size: 15.5px; }
.parent-brand img { height: 56px; width: auto; }
@media (max-width: 991.98px) { .header-inner { min-height: 76px; } .brand-mark { width: 48px; } .brand-name { font-size: 24px; } .brand-sub { font-size: 11px; letter-spacing: .44em; margin-right: -.44em; } }

/* Library dropdown — three entries only */
.dd-panel.dd-panel-sm { width: 320px; grid-template-columns: 1fr; padding: 12px; gap: 2px; }

/* Hero counters — bigger */
.hero-trust { gap: 44px; }
.hero-trust strong { font-size: 52px; line-height: 1; margin-bottom: 6px; }
.hero-trust span { font-size: 14.5px; }

/* "Rooted in evidence" — running logo strip */
.evidence-run { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.evidence-grid.evidence-track { display: flex; gap: 16px; width: max-content; animation: evRun 45s linear infinite; }
.evidence-run:hover .evidence-track { animation-play-state: paused; }
.evidence-track .ev-card { flex: 0 0 260px; }
@keyframes evRun { to { transform: translateX(calc(-50% - 8px)); } }
@media (prefers-reduced-motion: reduce) { .evidence-grid.evidence-track { animation: none; flex-wrap: wrap; width: auto; } .evidence-track [aria-hidden] { display: none; } }

/* Footer — centred "A unit of CEPIENTA" */
.f-unit { display: flex; flex-direction: column; align-items: center; gap: 10px; width: max-content; margin: 34px auto 0; color: #fff; }
.f-unit img { height: 78px; width: auto; transition: transform .3s var(--ease); }
.f-unit span { font-family: "Times New Roman", Times, Georgia, serif; font-size: 15px; letter-spacing: .14em; color: rgba(255, 255, 255, .9); }
.f-unit:hover { color: #fff; } .f-unit:hover img { transform: translateY(-3px); }
.f-brand .brand-name { font-family: "Times New Roman", Times, Georgia, serif; }

/* Enquiry forms — Academia logo */
.form-logo { display: block; height: 76px; width: auto; margin: 0 0 14px; }
.sm-body .form-logo { height: 64px; }

/* About hero — logo above the title */
.banner-logo { display: block; height: 110px; width: auto; margin: 6px 0 18px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }
/* keep the header fixed while scrolling (overflow-x:hidden on body breaks sticky) */
html, body { overflow-x: clip; }
.site-header { position: -webkit-sticky; position: sticky; top: 0; z-index: 1030; }

/* Numbers: lining figures so "11" never reads like Roman "II" */
.hero-trust strong, .about-badge strong, .stat strong, [data-count], .dom-no, .no, .dd-no, .f-links .no { font-family: var(--sans) !important; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1; font-weight: 800; letter-spacing: -.02em; }
.d-no, .adv-no, .banner-no { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.d-no, .banner-no { font-family: var(--sans) !important; font-style: normal; font-weight: 700; }

/* Stats band — big number with K / % beside it */
.stat strong { display: flex; align-items: baseline; gap: 2px; font-family: var(--sans) !important; font-size: clamp(48px, 5vw, 66px); font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.stat strong span { display: inline; margin: 0; font-size: inherit; color: inherit; font-weight: inherit; line-height: 1; }
.stat strong sup { position: static; font-size: .55em; top: 0; color: var(--magenta); font-weight: 800; }
.stat > span { margin-top: 14px; }

/* Page banner watermark — fully visible, vertically centred */
.page-banner::after { bottom: auto; top: 50%; transform: translateY(-50%); width: 260px; height: 260px; max-height: 80%; }
@media (max-width: 767.98px) { .page-banner::after { width: 160px; height: 160px; opacity: .05; } }

/* Evidence logos — fit inside the white tile */
.ev-logo img { max-height: 70px; max-width: 88%; width: auto; height: auto; }

/* Brand text — left aligned (start) */
.brand-text { align-items: flex-start !important; text-align: left !important; }
.brand-name, .brand-sub, .brand-tag { margin-right: 0 !important; padding-left: 0 !important; }
.brand-sub { margin-left: 2px; }
.page-banner h1 .tnr { font-family: "Times New Roman", Times, Georgia, serif; font-style: normal; font-weight: 700; letter-spacing: .01em; }

/* Library dropdown: nested flyout submenus */
.dd-panel.dd-nested { overflow: visible; }
.dd-nested .dd-item { position: static; }
.dd-nested .dd-link { width: 100%; }
.dd-nested .dd-caret { margin-left: auto; font-size: 12px; color: var(--muted); transition: transform .2s; }
.dd-nested .dd-item:hover > .dd-link, .dd-nested .dd-item:focus-within > .dd-link { background: var(--rose); color: var(--maroon); }
.dd-nested .dd-item:hover .dd-caret, .dd-nested .dd-item:focus-within .dd-caret { transform: translateX(3px); color: var(--maroon); }
.dd-sub { position: absolute; top: 0; left: calc(100% + 14px); min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateX(8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; z-index: 5; }
.dd-sub::before { content: ""; position: absolute; top: 0; bottom: 0; left: -16px; width: 16px; }
.dd-nested .dd-item:hover > .dd-sub, .dd-nested .dd-item:focus-within > .dd-sub { opacity: 1; visibility: visible; transform: translateX(0); }
.dd-sub a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.3; }
.dd-sub a:hover { background: var(--rose); color: var(--maroon); }
.dd-sub a > i { color: var(--maroon); font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.dd-sub a small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.dd-sub-dom { min-width: 330px; }
.dd-sub .dd-no { font-family: "Manrope", sans-serif; font-variant-numeric: lining-nums tabular-nums; font-size: 12.5px; font-weight: 700; color: var(--magenta); width: 34px; flex-shrink: 0; }

/* nav logo image (Cepienta Academia lockup) */
.brand-logo { height: 76px; width: auto; display: block; }
.mobile-menu .brand-logo { height: 46px; }
@media (max-width: 991.98px) { .site-header .brand-logo { height: 50px; } }
@media (max-width: 400px) { .site-header .brand-logo { height: 42px; } }

/* top strip (email / social) also stays fixed; nav bar sticks right below it */
@media (min-width: 992px) {
    .topbar { position: -webkit-sticky; position: sticky; top: 0; z-index: 1031; }
    .site-header { top: 40px; }
    .adv-intro, .faq-side { top: 160px; }
    .lib-side { top: 150px; }
    html { scroll-padding-top: 150px; }
}

/* About visual: badge sits below the logo card so it never covers the logo */
.about-visual { padding-bottom: 72px; }
.about-badge { bottom: 0; right: -8px; }
@media (max-width: 575.98px) { .about-visual { padding-bottom: 86px; } .about-badge { right: 0; } }
.form-logo.form-logo-wide { height: 60px; margin-bottom: 20px; }
@media (max-width: 575.98px) { .form-logo.form-logo-wide { height: 48px; } }
