:root {
  --bg-ivory: #F8F6F0;
  --text-black: #111418;
  --text-dark-grey: #3A3F47;
  --text-slate: #5E6470;
  --accent-gold: #B88E3A;
  --accent-gold-hover: #967129;
  --border-color: rgba(17, 20, 24, 0.12);
  --card-glass-bg: rgba(255, 255, 255, 0.88);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg-ivory); color: var(--text-black); font-family: var(--font-sans); line-height: 1.6; overflow-x: hidden; margin: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; }
[hidden] { display: none !important; }

.global-fixed-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(248,246,240,.82), rgba(248,246,240,.92)) , url('./top.jpg') center / cover no-repeat;
}
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: var(--accent-gold); transform: scaleX(0); transform-origin: left; z-index: 10000; pointer-events: none; }

/* Icons */
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.brand-logo-img { height: 76px; width: auto; display: block; object-fit: contain; }
.status-toggle-icon { width: 40px; height: auto; display: block; user-select: none; }
.location-tag { display: flex; align-items: center; gap: 8px; font-size: .825rem; font-weight: 600; color: var(--text-slate); }
.location-pin-icon { width: 16px; height: 16px; fill: none; stroke: #8a3b4a; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Navbar */
/* NOTE: backdrop-filter must NOT sit on .navbar-custom itself. An element with backdrop-filter becomes the
   containing block for position:fixed children, which shrank the mobile menu (offcanvas) to the header's height. */
.navbar-custom { background: rgba(248,246,240,.92); border-bottom: 1px solid var(--border-color); padding: 12px 0; z-index: 9999; }
.navbar-custom::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav-logo { text-decoration: none; display: inline-block; }
.nav-link { color: var(--text-dark-grey) !important; font-size: .825rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; padding: 8px 16px !important; transition: color .3s; }
.nav-link:hover, .nav-link.active { color: var(--accent-gold) !important; }
.offcanvas { background-color: var(--bg-ivory) !important; color: var(--text-black) !important; }
@media (max-width: 991.98px) { .offcanvas { border-left: 1px solid var(--border-color); } }

/* Sections + type */
.scroll-section { position: relative; padding: 110px 0; z-index: 2; scroll-margin-top: 70px; }
.section-content { position: relative; z-index: 3; }
.chapter-badge { color: var(--accent-gold); font-size: .85rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; display: inline-block; }
.section-headline { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 20px; font-weight: 400; line-height: 1.2; }
.section-subtext { color: var(--text-slate); max-width: 650px; }
.text-dark-grey { color: var(--text-dark-grey); }
.sub-head { display: flex; align-items: center; gap: 18px; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin-bottom: 22px; }
.sub-head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--accent-gold), transparent); }

/* Hero */
.hero { --mx: 70%; --my: 30%; padding: 0; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(520px circle at var(--mx) var(--my), rgba(184,142,58,.17), transparent 62%); }
/* keeps the hero text clear of the fixed header on short or narrow screens */
.hero-row { padding-top: 120px; padding-bottom: 56px; }
@media (max-width: 575.98px) { .hero-row { padding-top: 100px; } }
.hero-copy { translate: 0 var(--py, 0px); }
.hero-title { font-family: var(--font-display); font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 1.05; margin: 0 0 24px; font-weight: 400; }
.word { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.ch { display: inline-block; animation: rise .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 55ms + 150ms); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero-tagline { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text-dark-grey); max-width: 580px; margin-bottom: 36px; animation: fadeUp .8s ease .9s both; }
.hero-copy .btn-gold, .hero-copy .btn-ghost { animation: fadeUp .8s ease 1.1s both; }
.hero-copy .chapter-badge { animation: fadeUp .8s ease .1s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.glance { height: auto; padding: 36px; animation: fadeUp .9s ease 1.2s both; }
.glance-num .metric-num, .glance-num .metric-num-suffix { font-size: clamp(3.5rem, 7vw, 5rem); line-height: 1; }
.glance-label { color: var(--text-dark-grey); margin: 10px 0 24px; max-width: 280px; }
.glance-now { display: block; text-decoration: none; color: inherit; padding-top: 20px; border-top: 1px solid var(--border-color); }
.glance-now span, .glance-now strong { display: block; }
.glance-now span { color: var(--text-slate); font-size: .9rem; }
.glance-kicker { color: var(--accent-gold-hover) !important; font-size: .75rem !important; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 4px; }

/* Buttons */
.btn-gold, .btn-ghost { display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px; border: 1px solid var(--accent-gold); color: var(--text-black); text-decoration: none; font-size: .85rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; border-radius: 50px; transition: background-color .3s, color .3s, box-shadow .3s; translate: var(--bx, 0px) var(--by, 0px); }
.btn-gold { background: rgba(255,255,255,.9); backdrop-filter: blur(8px); box-shadow: 0 4px 15px rgba(184,142,58,.15); }
.btn-ghost { background: transparent; }
.btn-gold:hover { background: var(--accent-gold); color: #fff; }
.btn-ghost:hover { background: rgba(184,142,58,.12); color: var(--text-black); }

/* Cards (tilt uses CSS variables set from JS) */
.custom-card { background: var(--card-glass-bg); backdrop-filter: blur(12px); border: 1px solid var(--border-color); padding: 32px; border-radius: 12px; height: 100%; box-shadow: 0 8px 30px rgba(0,0,0,.04);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform .18s ease-out, border-color .3s, box-shadow .3s; }
.custom-card:hover { --ty: -6px; border-color: var(--accent-gold); box-shadow: 0 12px 35px rgba(184,142,58,.18); }
.detail-card:hover { --ty: 0px; border-color: var(--border-color); box-shadow: 0 8px 30px rgba(0,0,0,.04); }

/* Scroll reveal (class "js" is added by main.js, so content stays visible if JS fails) */
.js .rv { opacity: 0; translate: 0 26px; transition: opacity .8s ease, translate .8s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .rv.in { opacity: 1; translate: 0 0; }

/* Results band */
.results { position: relative; z-index: 2; padding: 56px 0 10px; }
.results-kicker { text-align: center; color: var(--accent-gold); font-size: .8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px; }
.stats-wrap { overflow: hidden; border-top: 1px solid var(--accent-gold); border-bottom: 1px solid var(--border-color); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-left: -1px; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .stats { grid-template-columns: repeat(6, 1fr); } }
.stat { padding: 30px 12px; text-align: center; border-left: 1px solid var(--border-color); }
.stat .metric-num, .stat .metric-num-suffix { font-size: clamp(2.2rem, 4vw, 3rem); }
.metric-num, .metric-num-suffix { font-family: var(--font-display); color: var(--accent-gold); display: inline-block; font-weight: 400; }
.metric-label { color: var(--text-slate); font-size: .85rem; line-height: 1.4; display: block; margin-top: 4px; font-weight: 600; }

/* Career timeline */
.timeline { position: relative; display: flex; flex-direction: column; gap: 12px; padding-left: 28px; }
.timeline::before, .timeline::after { content: ''; position: absolute; left: 7px; top: 24px; bottom: 24px; width: 2px; }
.timeline::before { background: rgba(184,142,58,.2); }
.timeline::after { background: var(--accent-gold); transform-origin: top; transform: scaleY(var(--p, 0)); }
.timeline-item { appearance: none; position: relative; display: block; width: 100%; font: inherit; text-align: left; color: inherit; padding: 16px 18px; background: transparent; border: 1px solid transparent; border-radius: 10px; cursor: pointer; transition: background .3s, border-color .3s, box-shadow .3s; }
.timeline-item:hover { border-color: rgba(184,142,58,.5); background: rgba(255,255,255,.5); }
.timeline-item.active { background: var(--card-glass-bg); border-color: var(--accent-gold); box-shadow: 0 8px 30px rgba(184,142,58,.18); }
.tl-dot { position: absolute; left: -27px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-ivory); border: 2px solid var(--accent-gold); transition: all .3s; z-index: 1; }
.timeline-item.active .tl-dot { background: var(--accent-gold); box-shadow: 0 0 0 5px rgba(184,142,58,.22); }
.tl-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.tl-period { color: var(--accent-gold-hover); font-size: .8rem; font-weight: 700; letter-spacing: .5px; }
.timeline .status-toggle-icon { width: 30px; }
.tl-title { display: block; font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.tl-co { display: block; font-size: .9rem; color: var(--text-dark-grey); margin: 2px 0 8px; }

/* Role detail */
.career-detail { padding: 40px; scroll-margin-top: 90px; }
@media (min-width: 992px) { .career-detail { position: sticky; top: 96px; height: auto; } }
.role-panel:not([hidden]) { animation: panelIn .35s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.current-pill { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border: 1px solid var(--accent-gold); border-radius: 50px; background: rgba(184,142,58,.1); color: var(--accent-gold-hover); font-size: .75rem; font-weight: 700; letter-spacing: 1px; }
.panel-title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 400; line-height: 1.2; margin-bottom: 8px; }
.text-gold-dark { color: var(--accent-gold-hover); font-weight: 600; }
.impact-list { list-style: none; margin: 0; padding: 0; }
.impact-list li { padding: 18px 0; border-top: 1px solid var(--border-color); }
.impact-list li:first-child { margin-top: 20px; }
.impact-lead { display: block; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.3; margin-bottom: 4px; }
.impact-text { display: block; color: var(--text-dark-grey); font-size: .95rem; line-height: 1.55; }

/* Text in cards */
.engagement-title { font-weight: 700; color: var(--text-black); }
.engagement-date { color: var(--text-slate); font-size: .85rem; font-weight: 600; }
.engagement-block { margin-bottom: 16px; font-size: .95rem; color: var(--text-dark-grey); line-height: 1.5; }

/* Clients */
.client-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.client-head .engagement-date { display: block; }
.client-logo-wrap { flex: 0 0 84px; width: 84px; height: 56px; padding: 8px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; }
.client-logo-wrap.logo-dark { background: #000; border-color: #000; }
.client-logo { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }

/* Expertise */
.skill-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: rgba(184,142,58,.1); color: var(--accent-gold-hover); font-size: 1.5rem; }
.chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 12px; border: 1px solid rgba(184,142,58,.3); border-radius: 50px; background: rgba(184,142,58,.06); font-size: .82rem; font-weight: 600; color: var(--text-dark-grey); }

/* Credentials */
.cert-icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(184,142,58,.12); color: var(--accent-gold-hover); font-size: 1.35rem; }
.cert-icon-lg { width: 64px; height: 64px; font-size: 1.9rem; }
.edu-card { display: flex; align-items: center; gap: 24px; height: auto; padding: 32px 36px; border-left: 4px solid var(--accent-gold); }
.edu-body { flex: 1; }
.edu-degree { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin: 0 0 4px; }
.edu-school { margin: 0; color: var(--text-dark-grey); }
.edu-score { text-align: center; padding-left: 24px; border-left: 1px solid var(--border-color); }
.edu-num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--accent-gold); line-height: 1; display: block; }
.cert-card { display: flex; align-items: center; gap: 16px; padding: 22px 24px; text-decoration: none; color: inherit; }
.cert-card:hover { color: inherit; }
.cert-body { flex: 1; min-width: 0; }
.cert-name { display: block; font-weight: 700; line-height: 1.3; }
.cert-type { display: block; color: var(--text-slate); font-size: .82rem; font-weight: 600; margin-top: 2px; }
.cert-go { color: var(--accent-gold); opacity: .45; transition: opacity .3s, transform .3s; font-size: 1.2rem; display: grid; }
.cert-card:hover .cert-go { opacity: 1; transform: translate(3px, -3px); }

/* Additional Forte (centred) */
.head-center { text-align: center; }
.head-center .section-subtext { margin-inline: auto; }
.head-center .section-headline::after { content: ''; display: block; width: 56px; height: 2px; background: var(--accent-gold); margin: 18px auto 0; }
.tool-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 28px 16px 24px; }
.tool-logo-wrap { width: 84px; height: 84px; display: grid; place-items: center; margin-bottom: 12px; }
.tool-logo { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(17,20,24,.18)); transition: transform .3s ease; }
.tool-card:hover .tool-logo { transform: scale(1.1); }
.tool-name { font-weight: 700; line-height: 1.25; }
.tool-note { color: var(--text-slate); font-size: .8rem; font-weight: 600; }

/* Contact map (always interactive: nothing sits on top of the iframe) */
.map-card { position: relative; z-index: 3; height: 340px; border-radius: 12px; overflow: hidden; border: 2px solid #D32F2F; box-shadow: 0 8px 30px rgba(211,47,47,.18); background: #ece8dc; transition: box-shadow .3s; }
.map-card:hover { box-shadow: 0 10px 36px rgba(211,47,47,.32); }
.map-card iframe { width: 100%; height: 100%; display: block; border: 0; }
.map-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--accent-gold-hover); font-size: .85rem; font-weight: 700; text-decoration: none; }
.map-link:hover { color: var(--text-black); }
@media (max-width: 991.98px) { .map-card { height: 300px; } }

/* Footer, back-to-top, cursor */
.site-footer { position: relative; z-index: 2; border-top: 1px solid var(--border-color); padding: 28px 0; color: var(--text-slate); font-size: .85rem; }
.to-top { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--accent-gold); background: rgba(255,255,255,.95); color: var(--text-black); font-size: 1.2rem; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; z-index: 9000; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-gold); color: #fff; }
.cursor { position: fixed; left: 0; top: 0; width: 34px; height: 34px; border: 1.5px solid var(--accent-gold); border-radius: 50%; pointer-events: none; z-index: 10001; opacity: 0; transition: width .25s, height .25s, background-color .25s, opacity .3s; }
.cursor.on { opacity: .85; }
.cursor.hot { width: 64px; height: 64px; background: rgba(184,142,58,.12); }

@media (max-width: 575.98px) {
  .scroll-section { padding: 80px 0; }
  .custom-card, .career-detail { padding: 24px; }
  .brand-logo-img { height: 60px; }
  .edu-card { flex-wrap: wrap; padding: 24px; }
  .edu-score { border-left: 0; padding-left: 0; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; translate: none; }
}
@media print {
  .navbar, .scroll-progress, .to-top, .cursor, .global-fixed-bg, .map-card { display: none !important; }
  .role-panel[hidden] { display: block !important; }
  .career-detail { position: static !important; }
  .js .rv { opacity: 1; translate: none; }
  .scroll-section { padding: 24px 0; }
}
