/* ==========================================================================
   Emmanuel GNIDETE — Portfolio
   Design system : Premium African Tech Entrepreneur
   ========================================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* Dark mode (default) */
  --bg: #0b1420;
  --bg-alt: #101c2c;
  --bg-raised: #131f30;
  --ink: #eef2f6;
  --ink-soft: #a9b6c6;
  --ink-faint: #6d7c8f;
  --line: rgba(238, 242, 246, 0.1);
  --line-strong: rgba(238, 242, 246, 0.18);

  --teal: #2bbfad;
  --teal-dim: rgba(43, 191, 173, 0.14);
  --gold: #d7a94e;
  --gold-dim: rgba(215, 169, 78, 0.14);

  --success: #4caf7d;
  --danger: #e2685f;

  --radius-s: 3px;
  --radius-m: 6px;
  --radius-l: 14px;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1180px;
  --shadow-elevated: 0 20px 60px -20px rgba(0, 0, 0, 0.55);
}

[data-theme='light'] {
  --bg: #f2f4f5;
  --bg-alt: #e9edee;
  --bg-raised: #ffffff;
  --ink: #0e1620;
  --ink-soft: #4c5a68;
  --ink-faint: #7c8a97;
  --line: rgba(14, 22, 32, 0.1);
  --line-strong: rgba(14, 22, 32, 0.18);

  --teal-dim: rgba(43, 191, 173, 0.1);
  --gold-dim: rgba(215, 169, 78, 0.14);
  --shadow-elevated: 0 20px 50px -24px rgba(14, 22, 32, 0.25);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

section {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 768px) {
  section { padding: 80px 0; }
}

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section-head .index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal);
  margin-bottom: 14px;
  display: block;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: var(--teal);
  color: #06201c;
}
.btn-primary:hover { transform: translateY(-2px); background: #34d2be; }

.btn-outline {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

.btn-ghost {
  color: var(--ink-soft);
  padding: 13px 6px;
}
.btn-ghost:hover { color: var(--gold); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(11, 20, 32, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease, border-color 0.4s ease;
}

[data-theme='light'] .navbar { background: rgba(242, 244, 245, 0.78); }

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 0.92rem;
}
.nav-links a {
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.theme-toggle:hover { border-color: var(--gold); transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme='light'] .theme-toggle .icon-moon { display: none; }
[data-theme='light'] .theme-toggle .icon-sun { display: block; }

.burger {
  display: none;
  width: 34px; height: 34px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.burger span {
  display: block; height: 2px; width: 100%;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--bg-raised);
    padding: 24px 28px 32px;
    border-bottom: 1px solid var(--line);
    gap: 4px;
  }
  .nav-links.mobile-open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero {
  padding: 170px 0 120px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -160px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--teal-dim) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-kicker .bar { width: 24px; height: 1px; background: var(--gold); }

.hero-title {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  margin-bottom: 20px;
  min-height: 4.4em;
}

@media (min-width: 641px) {
  .hero-title { min-height: 3.2em; }
}

.hero-title .line1 { display: block; color: var(--ink); }
.hero-title .line2 {
  display: block;
  color: var(--teal);
}
.typed-cursor {
  display: inline-block;
  width: 3px;
  background: var(--teal);
  margin-left: 4px;
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-meta {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
}
.hero-meta .label {
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-l);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-raised), var(--bg-alt));
}

.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  color: var(--ink-faint);
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
}
.photo-placeholder svg { width: 46px; height: 46px; opacity: 0.6; }

.hero-photo-frame .glow {
  position: absolute;
  bottom: -60px; left: 50%;
  transform: translateX(-50%);
  width: 260px; height: 120px;
  background: radial-gradient(ellipse, var(--gold-dim) 0%, transparent 75%);
  pointer-events: none;
}

.hero-tag {
  position: absolute;
  bottom: 22px; left: 22px;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  box-shadow: var(--shadow-elevated);
}
.hero-tag .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(43,191,173,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43,191,173,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(43,191,173,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,191,173,0); }
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .hero-photo-frame { max-width: 300px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p { color: var(--ink-soft); margin-bottom: 18px; font-size: 1.02rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--ink); font-weight: 600; }

.identity-stack { display: flex; flex-direction: column; gap: 16px; }
.identity-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.identity-item:hover { border-color: var(--teal); transform: translateX(4px); }
.identity-item .n { font-family: var(--font-mono); color: var(--gold); font-size: 0.85rem; padding-top: 2px; }
.identity-item h4 { font-size: 1rem; margin-bottom: 4px; }
.identity-item p { color: var(--ink-soft); font-size: 0.92rem; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Timeline (Parcours) ---------- */
.timeline-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}
.tf-btn {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  transition: all 0.25s ease;
}
.tf-btn:hover { color: var(--ink); border-color: var(--teal); }
.tf-btn.active { background: var(--teal); color: #06201c; border-color: var(--teal); }

.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 1px solid var(--line-strong);
}

.tl-item {
  position: relative;
  padding-bottom: 40px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item.tl-hidden { display: none; }

.tl-item::before {
  content: '';
  position: absolute;
  left: -37px; top: 4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--teal);
}
.tl-item.future::before { border-color: var(--gold); background: var(--gold); }
.tl-item.current::before {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-dim);
}

.tl-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold);
  margin-bottom: 6px;
  display: block;
}
.tl-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 20px 22px;
  background: var(--bg-raised);
}
.tl-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.tl-card .tl-org { color: var(--teal); font-size: 0.9rem; margin-bottom: 10px; display: block; }
.tl-card p { color: var(--ink-soft); font-size: 0.92rem; }
.tl-badge {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  background: var(--gold-dim);
  color: var(--gold);
}

/* ---------- Cards grid generic ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px;
  background: var(--bg-raised);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.panel:hover { border-color: var(--line-strong); }

/* ---------- Formation ---------- */
.edu-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.edu-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.edu-card .org { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 10px; }
.edu-card .year { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-faint); white-space: nowrap; }
.edu-card .mention { font-size: 0.85rem; color: var(--teal); margin-top: 6px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  margin-top: 10px;
}
.status-pill.done { background: rgba(76, 175, 125, 0.14); color: var(--success); }
.status-pill.ongoing { background: var(--gold-dim); color: var(--gold); }
.status-pill.ongoing .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }

.dclic-card {
  border: 1px solid var(--gold);
  border-radius: var(--radius-l);
  padding: 32px;
  background: linear-gradient(135deg, var(--gold-dim), transparent 60%);
  margin-top: 32px;
}
.dclic-card .top-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.dclic-card h3 { font-size: 1.3rem; }
.dclic-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.dclic-meta div span { display: block; }
.dclic-meta .k { font-size: 0.78rem; color: var(--ink-faint); margin-bottom: 4px; }
.dclic-meta .v { font-size: 0.95rem; color: var(--ink); }
@media (max-width: 640px) { .dclic-meta { grid-template-columns: 1fr; } }

/* ---------- Compétences ---------- */
.skill-bar-group { display: flex; flex-direction: column; gap: 22px; }
.skill-bar-row .top { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.92rem; }
.skill-bar-row .top .level { color: var(--ink-faint); font-size: 0.82rem; }
.skill-track { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.skill-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--gold)); width: 0%; transition: width 1.4s cubic-bezier(0.2, 0.8, 0.2, 1); }

.chip-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.soft-skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .soft-skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .soft-skills-grid { grid-template-columns: 1fr; } }
.soft-skill {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px 18px;
  font-size: 0.9rem;
  text-align: center;
}
.soft-skill.highlight {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Expériences ---------- */
.exp-item {
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
}
.exp-item:first-child { padding-top: 0; }
.exp-item:last-child { border-bottom: none; padding-bottom: 0; }
.exp-item .period { font-family: var(--font-mono); font-size: 0.85rem; color: var(--gold); }
.exp-item h3 { font-size: 1.15rem; margin-bottom: 4px; }
.exp-item .org { color: var(--teal); font-size: 0.92rem; margin-bottom: 12px; display: block; }
.exp-item ul { display: flex; flex-direction: column; gap: 6px; }
.exp-item li { color: var(--ink-soft); font-size: 0.92rem; padding-left: 16px; position: relative; }
.exp-item li::before { content: '—'; position: absolute; left: 0; color: var(--ink-faint); }
@media (max-width: 700px) { .exp-item { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Leadership ---------- */
.leadership-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}
@media (max-width: 900px) { .leadership-hero { grid-template-columns: 1fr; } }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stat-box { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; }
.stat-box .num { font-family: var(--font-display); font-size: 2rem; color: var(--teal); }
.stat-box .num .plus { color: var(--gold); }
.stat-box .label { color: var(--ink-soft); font-size: 0.88rem; margin-top: 6px; }

.achieve-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
@media (max-width: 640px) { .achieve-list { grid-template-columns: 1fr; } }
.achieve-list li { color: var(--ink-soft); font-size: 0.94rem; padding-left: 20px; position: relative; padding-bottom: 4px; }
.achieve-list li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-size: 0.85rem; }

/* ---------- Projects ---------- */
.project-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }

.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--bg-raised);
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.project-card.pc-hidden { display: none; }
.project-card:hover { transform: translateY(-4px); border-color: var(--teal); }
.project-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--bg-alt), var(--bg));
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 10px;
}
.project-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-cat { font-size: 0.76rem; color: var(--gold); font-family: var(--font-mono); }
.project-body h3 { font-size: 1.05rem; }
.project-body p { color: var(--ink-soft); font-size: 0.9rem; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.project-tags span { font-size: 0.72rem; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink-faint); }

/* ---------- Services ---------- */
.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 30px;
  background: var(--bg-raised);
}
.service-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-m);
  background: var(--teal-dim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
}
.service-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.service-card ul { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.service-card li { color: var(--ink-soft); font-size: 0.9rem; padding-left: 14px; position: relative; }
.service-card li::before { content: '–'; position: absolute; left: 0; color: var(--ink-faint); }

/* ---------- Approche (process) ---------- */
.process-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.process-step {
  flex: 1 1 200px;
  border: 1px solid var(--line);
  padding: 22px;
  position: relative;
}
.process-step .step-index {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.8rem;
  margin-bottom: 10px;
  display: block;
}
.process-step h4 { font-size: 0.98rem; }
.approach-quote {
  margin-top: 48px;
  border-left: 2px solid var(--teal);
  padding-left: 26px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  max-width: 640px;
}

/* ---------- Énergie ---------- */
.energy-section { background: var(--bg-alt); }
.energy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 60px;
}
@media (max-width: 900px) { .energy-grid { grid-template-columns: 1fr; } }

.energy-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.energy-photos .photo-placeholder-box {
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--bg-raised);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint);
  text-align: center;
  font-size: 0.78rem;
  padding: 14px;
}
.energy-photos .tall { grid-row: span 2; aspect-ratio: auto; }

.energy-axes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 640px) { .energy-axes { grid-template-columns: 1fr; } }
.energy-axis {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  padding: 18px 20px;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.energy-axis .mark { color: var(--gold); }

.vision-banner {
  border: 1px solid var(--gold);
  border-radius: var(--radius-l);
  padding: 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--gold-dim), transparent);
}
.vision-banner p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink);
}

/* ---------- Interests ---------- */
.interest-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.interest-chip {
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  font-size: 0.94rem;
  display: flex; align-items: center; gap: 10px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.interest-chip:hover { border-color: var(--teal); transform: translateY(-2px); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-item:first-child { padding-top: 0; }
.contact-info-item .icon-box {
  width: 40px; height: 40px;
  border-radius: var(--radius-m);
  background: var(--teal-dim);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-item .label { font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 3px; }
.contact-info-item .value { font-size: 0.98rem; }
.contact-info-item a.value:hover { color: var(--teal); }

.social-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.social-row a {
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.social-row a:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-3px); }
.social-row svg { width: 18px; height: 18px; }

.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 8px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  font-size: 0.94rem;
  transition: border-color 0.25s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--teal); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-field .error-msg { color: var(--danger); font-size: 0.8rem; margin-top: 6px; display: none; }
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--danger); }
.form-field.has-error .error-msg { display: block; }

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: rgba(76, 175, 125, 0.12);
  border: 1px solid var(--success);
  color: var(--success);
  padding: 16px 18px;
  border-radius: var(--radius-m);
  margin-top: 18px;
  font-size: 0.92rem;
}
.form-success.show { display: flex; }

.form-note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 14px; }

/* ---------- Footer ---------- */
footer {
  padding: 60px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-tagline { font-family: var(--font-display); font-size: 1.3rem; max-width: 360px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h5 { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.back-to-top {
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.back-to-top:hover { border-color: var(--teal); transform: translateY(-3px); }

/* ---------- Scroll-to-top floating button ---------- */
#scrollTopFloat {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 800;
  box-shadow: var(--shadow-elevated);
}
#scrollTopFloat.show { opacity: 1; visibility: visible; transform: translateY(0); }
#scrollTopFloat:hover { border-color: var(--teal); }

/* ---------- Welcome toast ---------- */
#welcomeToast {
  position: fixed;
  bottom: 26px; left: 26px;
  max-width: 320px;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  padding: 16px 18px;
  box-shadow: var(--shadow-elevated);
  z-index: 850;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
}
#welcomeToast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
#welcomeToast p { font-size: 0.86rem; color: var(--ink-soft); }
#welcomeToast strong { color: var(--ink); }
#welcomeToast button { color: var(--ink-faint); font-size: 1.1rem; line-height: 1; }
#welcomeToast button:hover { color: var(--ink); }

/* ---------- Misc utility ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
