/* ─── BASE ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #ffffff;
  --text: #2e2e2e;
  --accent: #ea8732;
  --accent-light: #fdf3e7;
  --muted: #6b6b6b;
  --border: #e8e8e8;
  --warm: #f9f7f5;
  --warm-2: #f5f1ec;
  --dark: #1a1008;
  --font: 'Plus Jakarta Sans', 'Aptos', system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.7s ease forwards; opacity: 1; }
.fade-in { animation: fadeIn 0.6s ease forwards; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .fade-up { opacity: 0; }
  .fade-in { opacity: 0; }
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; width: 100%; }
.container-md { max-width: 1200px; margin: 0 auto; padding: 0 48px; width: 100%; }
.container-sm { max-width: 1100px; margin: 0 auto; padding: 0 48px; width: 100%; }

/* ─── NAV ─────────────────────────────────────────────────────────── */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 48px; transition: background 0.3s, box-shadow 0.3s; }
#nav.scrolled { background: rgba(255,255,255,0.97); box-shadow: 0 1px 0 var(--border); backdrop-filter: blur(12px); }
#nav.hero-mode { background: transparent; }
#nav .nav-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; height: 72px; gap: 40px; }
#nav .logo-link { display: block; flex-shrink: 0; line-height: 0; }
#nav .logo-img { height: 56px; width: auto; display: block; transition: filter 0.3s; }
#nav.hero-mode .logo-img { filter: brightness(0) invert(1); }
#nav .nav-tabs { display: flex; gap: 2px; margin-left: auto; }
#nav .nav-tab { padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 400; transition: color 0.2s; }
#nav.hero-mode .nav-tab { color: #fff; }
#nav.scrolled .nav-tab { color: var(--text); }
#nav .nav-tab.active { color: var(--accent); font-weight: 600; }
#nav .nav-tab:hover { color: var(--accent); }

/* ─── HERO (home — video) ─────────────────────────────────────────── */
.hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; display: flex; align-items: center; padding-top: 80px; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; background: var(--dark); }
.hero .hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%); z-index: 1; }
.hero .hero-content { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(36px, 5vw, 64px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; white-space: nowrap; animation-delay: 0.15s; }
.hero p { color: rgba(255,255,255,0.85); font-size: clamp(16px, 1.6vw, 22px); font-weight: 400; line-height: 1.5; white-space: nowrap; animation-delay: 0.3s; }
.scroll-cue { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0.45; z-index: 2; }
.scroll-cue span { color: #fff; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.scroll-cue .line { width: 1px; height: 36px; background: linear-gradient(to bottom, #fff, transparent); }

/* ─── PAGE HEROES (image-based, top of subpages) ──────────────────── */
.page-hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; padding: 140px 0 80px; }
.page-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); z-index: 0; }
.page-hero .veil { position: absolute; inset: 0; z-index: 1; }
.page-hero .content { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 3.6vw, 48px); font-weight: 800; line-height: 1.18; letter-spacing: -0.02em; max-width: 1100px; text-shadow: 0 2px 24px rgba(0,0,0,0.4); text-wrap: balance; animation-delay: 0.1s; }
.page-hero p.subhead { color: rgba(255,255,255,0.88); font-size: clamp(15px, 1.4vw, 20px); font-weight: 400; line-height: 1.5; margin-top: 20px; animation-delay: 0.3s; }

.page-hero.about .bg { background-image: url('media/about-baobab.jpg'); filter: brightness(0.42) saturate(1.05); }
.page-hero.about .veil { background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%); }

.page-hero.team .bg { background-image: url('media/about-cover.png'); filter: blur(2px) saturate(1.15) brightness(0.7); }
.page-hero.team .veil { background: linear-gradient(120deg, rgba(40,20,8,0.78) 0%, rgba(80,35,15,0.62) 50%, rgba(15,8,4,0.85) 100%); }

.page-hero.portfolio .bg { background-image: url('media/portfolio-cover.jpg'); filter: blur(2px) saturate(1.15) brightness(0.6); }
.page-hero.portfolio .veil { background: linear-gradient(120deg, rgba(40,20,8,0.75) 0%, rgba(80,35,15,0.58) 50%, rgba(15,8,4,0.82) 100%); }

.page-hero.contact .bg { background-image: url('media/contact-cover.jpg'); filter: blur(2px) saturate(1.15) brightness(0.55); }
.page-hero.contact .veil { background: linear-gradient(120deg, rgba(40,20,8,0.7) 0%, rgba(80,35,15,0.55) 50%, rgba(15,8,4,0.78) 100%); }

/* ─── SECTION PRIMITIVES ──────────────────────────────────────────── */
.section { padding: 120px 48px; }
.section.warm { background: var(--warm); }
.section.white { background: #fff; }
.section.full { padding: 80px 48px; display: flex; align-items: center; min-height: 100vh; }

.section-label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.section-h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.section-h2.balance { text-wrap: balance; }
.section-head { margin-bottom: 64px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 56px; }

.btn-ghost { background: none; border: 1px solid var(--border); padding: 10px 20px; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color 0.2s, color 0.2s; display: inline-block; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ─── MARKETS ─────────────────────────────────────────────────────── */
.market-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 56px; border: 1px solid var(--border); }
.market-stats .stat { background: #fff; padding: 32px 28px; }
.market-stats .stat .value { font-size: 36px; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; line-height: 1; }
.market-stats .stat .label { font-size: 13px; font-weight: 600; margin: 8px 0 4px; }
.market-stats .stat .sub { font-size: 12px; color: var(--muted); }

.market-tabs { display: grid; grid-template-columns: 220px 1fr; gap: 2px; background: var(--border); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.market-tabs .tab-list { background: #fff; display: flex; flex-direction: column; }
.market-tabs .tab { width: 100%; flex: 1; padding: 20px 24px; border: none; background: transparent; cursor: pointer; text-align: left; transition: background 0.2s; border-bottom: 1px solid var(--border); }
.market-tabs .tab:last-child { border-bottom: none; }
.market-tabs .tab .country { font-size: 15px; font-weight: 700; color: var(--text); }
.market-tabs .tab.active { background: var(--accent); }
.market-tabs .tab.active .country { color: #fff; }
.market-tabs .panel-wrap { background: #fff; padding: 40px 48px; position: relative; overflow: hidden; }
.market-tabs .panel { display: none; }
.market-tabs .panel.active { display: block; animation: fadeIn 0.6s ease forwards; opacity: 1; }
.market-tabs .panel .gdp { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.market-tabs .panel .gdp .num { font-size: 56px; font-weight: 800; color: var(--accent); letter-spacing: -0.04em; }
.market-tabs .panel .gdp .label { font-size: 14px; color: var(--muted); }
.market-tabs .panel h3 { font-size: 28px; font-weight: 700; margin-bottom: 24px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 12px; }
.market-tabs .panel h3 .flag { font-size: 32px; }
.market-tabs .panel ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.market-tabs .panel li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; }
.market-tabs .panel li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 8px; }

/* ─── PORTFOLIO TICKER (home) ─────────────────────────────────────── */
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-wrap { overflow: hidden; position: relative; padding: 12px 0; }
.ticker-wrap::before, .ticker-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.ticker-wrap::before { left: 0; background: linear-gradient(to right, #fff, transparent); }
.ticker-wrap::after  { right: 0; background: linear-gradient(to left, #fff, transparent); }
.ticker-track { display: flex; animation: ticker 32s linear infinite; width: max-content; }
.ticker-track:hover { animation-play-state: paused; }

.pf-home-card { position: relative; width: 320px; height: 220px; margin-right: 20px; border-radius: 14px; border: 1px solid var(--border); background: #fff; overflow: hidden; flex-shrink: 0; transition: background 0.35s ease, border-color 0.35s ease, transform 0.25s ease, box-shadow 0.25s ease; }
.pf-home-card:hover { background: var(--dark); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.18); }
.pf-home-card .logo-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 32px; transition: opacity 0.35s ease, filter 0.35s ease; }
.pf-home-card:hover .logo-wrap { opacity: 0.18; filter: grayscale(1) brightness(2); }
.pf-home-card .logo-wrap img { width: 230px; max-height: 110px; object-fit: contain; }
.pf-home-card .overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 28px 28px 24px; pointer-events: none; opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease 0.05s, transform 0.35s ease; }
.pf-home-card:hover .overlay { opacity: 1; transform: translateY(0); }
.pf-home-card .overlay .name { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.pf-home-card .overlay .tagline { color: rgba(255,255,255,0.75); font-size: 13.5px; line-height: 1.5; max-width: 230px; }
.pf-home-card .corner { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 10px; background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translate(4px,-4px); transition: opacity 0.3s ease, transform 0.35s ease, background 0.35s ease; font-size: 16px; font-weight: 700; }
.pf-home-card:hover .corner { background: var(--accent); opacity: 1; transform: translate(0,0); }

/* ─── PORTFOLIO PAGE CARDS ────────────────────────────────────────── */
.pf-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.pf-card { padding: 40px 44px; border-radius: 16px; border: 1px solid var(--border); background: #fff; display: flex; flex-direction: column; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.pf-card:hover { border-color: var(--accent); box-shadow: 0 8px 32px rgba(234,135,50,0.10); transform: translateY(-3px); }
.pf-card .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; min-height: 56px; }
.pf-card .logo-cell { height: 56px; display: flex; align-items: center; }
.pf-card .logo-cell img { object-fit: contain; display: block; max-height: 56px; max-width: 260px; }
.pf-card .logo-cell.scale-085 img { max-height: 47.6px; max-width: 221px; }
.pf-card .logo-cell.scale-080 img { max-height: 44.8px; max-width: 208px; }
.pf-card .logo-cell.scale-095 img { max-height: 53.2px; max-width: 247px; }
.pf-card .country-chip { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 100px; background: var(--warm-2); color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.pf-card .country-chip .flag { font-size: 14px; }
.pf-card .title-row { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.pf-card h3 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.pf-card .sector-chip { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--accent-light); color: var(--accent); padding: 4px 10px; border-radius: 100px; }
.pf-card .tagline { font-size: 15px; color: var(--muted); line-height: 1.5; margin-bottom: 28px; }
.pf-card .metrics { display: grid; gap: 24px; padding: 22px 4px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.pf-card .metrics.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pf-card .metrics .v { font-size: 36px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; line-height: 1; margin-bottom: 8px; }
.pf-card .metrics .l { font-size: 13px; color: var(--muted); line-height: 1.45; }
.pf-card .stats { display: flex; flex-direction: column; gap: 10px; }
.pf-card .stats .row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.55; }
.pf-card .stats .row::before { content: '▸'; color: var(--accent); font-size: 10px; margin-top: 6px; }
.pf-card .testimonial { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); position: relative; }
.pf-card .testimonial .qmark { position: absolute; top: 6px; left: -2px; font-size: 56px; line-height: 1; color: var(--accent); opacity: 0.25; font-family: Georgia, serif; font-weight: 700; }
.pf-card .testimonial p { font-size: 13.5px; line-height: 1.6; font-style: italic; color: var(--muted); padding: 0 28px; display: inline-block; }
.pf-card .testimonial p .qmark-end { display: inline-block; vertical-align: -0.45em; margin-left: 6px; font-size: 56px; line-height: 0; color: var(--accent); opacity: 0.25; font-family: Georgia, serif; font-style: normal; font-weight: 700; }

/* ─── TEAM ────────────────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 960px; margin: 0 auto; }
.team-grid.gap-lg { gap: 64px; }
.team-card { background: #fff; border-radius: 16px; overflow: hidden; padding: 0 0 32px; display: flex; flex-direction: column; align-items: center; transition: transform 0.25s, box-shadow 0.25s; box-shadow: 0 1px 3px rgba(0,0,0,0.03); height: 100%; }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.08); }
.team-card .photo { width: 100%; aspect-ratio: 1 / 1; margin-bottom: 28px; background: transparent; flex-shrink: 0; }
.team-card .photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.team-card .meta { padding: 0 16px; width: 100%; text-align: center; }
.team-card .meta .name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.team-card .meta .title { font-size: 14px; font-weight: 500; color: var(--text); }

/* ─── ABOUT PAGE ──────────────────────────────────────────────────── */
.about-row { display: grid; grid-template-columns: 1fr 2.1fr; gap: 32px; align-items: start; max-width: 1200px; margin: 0 auto; width: 100%; }
.about-row h2 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.about-row h2 .num { color: var(--accent); margin-right: 16px; }
.about-row .body { display: flex; flex-direction: column; gap: 40px; font-size: 17px; line-height: 1.65; color: var(--text); }

.section-h2-num { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 16px; text-wrap: balance; }
.section-h2-num .num { color: var(--accent); margin-right: 16px; }
.section-sub { font-size: 18px; line-height: 1.55; color: var(--muted); }

.why-east { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.why-east .blocks { display: flex; flex-direction: column; gap: 32px; }
.why-east .block h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; color: var(--accent); margin-bottom: 14px; }
.why-east .block p { font-size: 16px; line-height: 1.65; color: var(--text); }
.why-east .divider { height: 1px; background: var(--border); }
.why-east img { width: 85%; height: auto; margin: 0 auto; }

.why-win-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-win-card { background: #fff; border-radius: 16px; padding: 27px 23px 25px; border: 1px solid var(--border); display: flex; flex-direction: column; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.why-win-card:hover { border-color: var(--accent); box-shadow: 0 8px 32px rgba(234,135,50,0.08); transform: translateY(-3px); }
.why-win-card .badge { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-light); color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 16px; letter-spacing: 0.04em; }
.why-win-card h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--accent); margin-bottom: 14px; line-height: 1.25; min-height: 2.5em; }
.why-win-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.why-win-card li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.5; color: var(--text); }
.why-win-card li::before { content: '●'; color: var(--accent); font-size: 9px; margin-top: 7px; }

.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.impact-card { background: #fff; border-radius: 16px; padding: 36px 32px; border: 1px solid var(--border); display: flex; flex-direction: column; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.impact-card:hover { border-color: var(--accent); box-shadow: 0 8px 32px rgba(234,135,50,0.08); transform: translateY(-3px); }
.impact-card h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--accent); margin-bottom: 16px; }
.impact-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.impact-card ul li { font-size: 14px; line-height: 1.55; color: var(--text); }
.impact-card .sdgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 20px; border-top: 1px solid var(--border); }
.impact-card .sdgs img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }

/* ─── CONTACT PAGE ────────────────────────────────────────────────── */
.contact-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.contact-card { background: #fff; border-radius: 16px; border: 1px solid var(--border); padding: 56px 40px; display: flex; flex-direction: column; height: 100%; min-height: 360px; }
.contact-card .tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 100px; background: var(--accent-light); color: var(--accent); margin-bottom: 24px; }
.contact-card h3 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.contact-card p { font-size: 16px; color: var(--muted); line-height: 1.5; margin-bottom: 60px; }
.contact-card .cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; padding: 14px 24px; border-radius: 8px; font-size: 15px; font-weight: 600; transition: transform 0.2s, box-shadow 0.2s; align-self: stretch; }
.contact-card .cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(234,135,50,0.25); }

/* ─── NEWS ────────────────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { padding: 32px; border: 1px solid var(--border); border-radius: 12px; height: 100%; transition: border-color 0.2s, box-shadow 0.2s; display: block; }
.news-card:hover { border-color: var(--accent); box-shadow: 0 4px 24px rgba(234,135,50,0.08); }
.news-card .row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.news-card .date { font-size: 12px; color: var(--muted); }
.news-card .tag { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--accent-light); color: var(--accent); padding: 3px 10px; border-radius: 100px; }
.news-card .thumb { height: 140px; border-radius: 8px; margin-bottom: 20px; background-size: cover; background-position: center; background-color: #f0ede8; }
.news-card h3 { font-size: 15px; font-weight: 700; line-height: 1.45; letter-spacing: -0.01em; margin-bottom: 16px; }
.news-card .read { font-size: 13px; font-weight: 600; color: var(--accent); }

/* ─── FOOTER ──────────────────────────────────────────────────────── */
.site-footer { background: var(--warm); padding: 32px 48px; border-top: 1px solid var(--border); }
.site-footer .inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer span { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }

/* ─── TWEAKS PANEL ────────────────────────────────────────────────── */
#tweaks-panel { position: fixed; bottom: 24px; right: 24px; z-index: 200; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; width: 280px; box-shadow: 0 8px 40px rgba(0,0,0,0.12); display: none; }
#tweaks-panel.open { display: block; animation: fadeUp 0.2s ease both; }
#tweaks-panel .title { font-weight: 700; font-size: 13px; margin-bottom: 16px; }
#tweaks-panel label { display: block; margin-bottom: 16px; }
#tweaks-panel label .lbl { font-size: 12px; color: var(--muted); margin-bottom: 6px; display: block; }
#tweaks-panel input[type="color"] { width: 100%; height: 36px; border-radius: 6px; border: 1px solid var(--border); cursor: pointer; padding: 2px; }
#tweaks-panel input[type="text"] { width: 100%; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--border); font-family: inherit; font-size: 13px; outline: none; }
#tweaks-panel .check-row { display: flex; align-items: center; gap: 10px; cursor: pointer; margin-bottom: 0; }
#tweaks-panel .check-row input { margin: 0; }
#tweaks-panel .check-row span { font-size: 13px; }

/* ─── HAMBURGER (mobile only — injected by arv.js) ────────────────── */
.nav-burger { display: none; background: none; border: none; padding: 8px; cursor: pointer; margin-left: auto; flex-direction: column; justify-content: center; gap: 5px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }

/* ─── TALL SUBPAGE SECTION (Portfolio/Team/Contact body) ──────────── */
.section-tall { padding: 100px 48px 120px; }

/* ─── RESPONSIVE: TABLET (≤960px) ─────────────────────────────────── */
@media (max-width: 960px) {
  .container, .container-md, .container-sm { padding: 0 20px; }

  /* Section padding */
  .section { padding: 72px 20px; }
  .section.full { padding: 56px 20px; min-height: auto; }
  .section-tall { padding: 72px 20px 88px; }
  .section-head { margin-bottom: 40px; }
  .section-head-row { margin-bottom: 36px; }

  /* Nav: shrink + show burger, hide tabs in drawer */
  #nav { padding: 0 20px; }
  #nav .nav-inner { height: 60px; gap: 12px; }
  #nav .logo-img { height: 40px; }
  .nav-burger { display: flex; }
  #nav.hero-mode .nav-burger { color: #fff; }
  #nav.scrolled .nav-burger { color: var(--text); }
  #nav .nav-tabs {
    position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; gap: 0; margin-left: 0;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border); padding: 8px 0;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  #nav.menu-open .nav-tabs { transform: translateY(0); opacity: 1; pointer-events: auto; }
  #nav .nav-tab { color: var(--text); padding: 14px 24px; font-size: 16px; border-radius: 0; }
  #nav.hero-mode .nav-tab { color: var(--text); }
  #nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
  #nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Hero — allow wrap */
  .hero { padding-top: 60px; min-height: 520px; height: auto; padding-bottom: 80px; }
  .hero h1, .hero p { white-space: normal; }
  .hero h1 { font-size: clamp(28px, 8vw, 44px); }
  .hero p { font-size: clamp(15px, 4.2vw, 19px); }
  .scroll-cue { display: none; }

  /* Page heroes */
  .page-hero { min-height: 360px; padding: 100px 0 56px; }
  .page-hero h1 { font-size: clamp(24px, 5.6vw, 36px); }

  /* Markets */
  .market-stats { grid-template-columns: repeat(2, 1fr); margin-bottom: 40px; }
  .market-stats .stat { padding: 24px 20px; }
  .market-stats .stat .value { font-size: 30px; }
  .market-tabs { grid-template-columns: 1fr; }
  .market-tabs .tab-list { flex-direction: row; overflow-x: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
  .market-tabs .tab { width: auto; flex: 0 0 auto; padding: 14px 20px; border-bottom: none; border-right: 1px solid var(--border); white-space: nowrap; }
  .market-tabs .tab:last-child { border-right: none; }
  .market-tabs .panel-wrap { padding: 28px 24px; }
  .market-tabs .panel .gdp .num { font-size: 42px; }
  .market-tabs .panel h3 { font-size: 22px; margin-bottom: 18px; }
  .market-tabs .panel h3 .flag { font-size: 26px; }
  .market-tabs .panel li { font-size: 14px; }

  /* Portfolio ticker — slightly smaller cards */
  .pf-home-card { width: 280px; height: 200px; margin-right: 16px; }

  /* Portfolio cards */
  .pf-card { padding: 28px 24px; }
  .pf-card .head { flex-wrap: wrap; gap: 14px; min-height: auto; margin-bottom: 16px; }
  .pf-card h3 { font-size: 24px; }
  .pf-card .metrics.cols-2 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pf-card .metrics .v { font-size: 28px; }
  .pf-card .testimonial p { padding: 0 20px 0 22px; }

  /* Team */
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .team-grid.gap-lg { gap: 28px; }

  /* About */
  .about-row { grid-template-columns: 1fr; gap: 24px; }
  .about-row .body { font-size: 16px; gap: 24px; }

  /* Why East */
  .why-east { grid-template-columns: 1fr; gap: 40px; }
  .why-east img { width: 100%; max-width: 480px; }

  /* Why win */
  .why-win-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .why-win-card h3 { min-height: 0; }

  /* Impact */
  .impact-grid { grid-template-columns: 1fr; gap: 16px; }
  .impact-card { padding: 28px 24px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-card { padding: 40px 28px; min-height: 0; }
  .contact-card p { margin-bottom: 36px; }

  /* News */
  .news-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Footer */
  .site-footer { padding: 24px 20px; }
  .site-footer .inner { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Tweaks panel — keep usable on phones */
  #tweaks-panel { bottom: 16px; right: 16px; left: 16px; width: auto; }
}

/* ─── RESPONSIVE: PHONE (≤600px) ──────────────────────────────────── */
@media (max-width: 600px) {
  .market-stats { grid-template-columns: 1fr 1fr; }
  .why-win-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .team-grid.gap-lg { gap: 24px; }
  .section-head-row { gap: 20px; }

  /* Portfolio page: stack the metrics fully */
  .pf-card { padding: 24px 20px; }
  .pf-card .metrics.cols-2 { grid-template-columns: 1fr; gap: 18px; }
  .pf-card .metrics { padding: 18px 4px; }
  .pf-card .testimonial p { padding: 0 16px 0 18px; font-size: 13px; }

  /* Markets — when very narrow, hide stats panel internal padding more */
  .market-tabs .panel-wrap { padding: 24px 18px; }
}
