/* ==========================================================================
   Olivier Reinaud — Personal Site (Executive edition)
   Design system : modern, refined, executive
   ========================================================================== */

/* --- Reset & Base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

/* --- Theme variables -------------------------------------------------- */
:root {
  --bg: #fafaf7;
  --bg-alt: #f3f1ea;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --border: #e5e2d8;
  --border-strong: #d4d0c2;
  --text: #1a1a1a;
  --text-muted: #5a5a55;
  --text-soft: #8a8a82;
  --accent: #c1440e;
  --accent-hover: #a53a0c;
  --accent-soft: #e8c5a8;
  --accent-bg: rgba(193, 68, 14, 0.08);
  --accent-line: rgba(193, 68, 14, 0.2);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --container: 1200px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #14140f;
  --bg-alt: #1c1c17;
  --surface: #1f1f1a;
  --surface-elevated: #262620;
  --border: #2e2e27;
  --border-strong: #3d3d34;
  --text: #f0ede5;
  --text-muted: #b0aca0;
  --text-soft: #8a8678;
  --accent: #e89568;
  --accent-hover: #f0a97e;
  --accent-soft: #6a3618;
  --accent-bg: rgba(232, 149, 104, 0.1);
  --accent-line: rgba(232, 149, 104, 0.25);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition), color var(--transition);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* --- Layout helpers --------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 60px;
}

.section-number {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 80;
}

.section-intro {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 60px;
  font-variation-settings: 'opsz' 100;
}

/* --- Header ----------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--transition), border-color var(--transition);
}

[data-theme="dark"] .site-header { background: rgba(20, 20, 15, 0.85); }
.site-header.scrolled { border-bottom-color: var(--border); }

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 500; letter-spacing: -0.01em; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  transition: background var(--transition), color var(--transition);
}

.brand-name { font-size: 15px; color: var(--text); }

.main-nav { flex: 1; }

.nav-list { display: flex; justify-content: center; gap: 32px; }

.nav-list a {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-list a:hover { color: var(--text); }
.nav-list a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.lang-switch, .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}

.lang-switch:hover, .theme-toggle:hover { background: var(--bg-alt); color: var(--text); }
.lang-switch .lang-sep { margin: 0 4px; opacity: 0.4; }
.lang-switch .lang-flag.inactive { opacity: 0.4; }

.theme-toggle { width: 36px; padding: 0; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); transition: all var(--transition); }

/* --- Hero ------------------------------------------------------------- */
.hero {
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-decor {
  position: absolute;
  top: 0; right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, var(--accent-bg) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 60px; }

.hero-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 120;
  margin-bottom: 32px;
  max-width: 18ch;
}

.hero-title span { display: block; }
.hero-title .accent { color: var(--accent); font-style: italic; font-weight: 400; }

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 24px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  padding: 16px 0;
  border-top: 1px solid var(--accent-line);
  border-bottom: 1px solid var(--accent-line);
  margin-bottom: 40px;
  max-width: 60ch;
  font-variation-settings: 'opsz' 30;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 80px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.meta-item { display: flex; flex-direction: column; gap: 6px; }

.meta-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variation-settings: 'opsz' 80;
  line-height: 1;
  display: flex;
  align-items: baseline;
}

.meta-sup {
  font-size: 0.55em;
  color: var(--accent);
  margin-left: 3px;
  font-weight: 500;
}

.meta-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* --- About ------------------------------------------------------------ */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; }

.quote {
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  color: var(--text);
  padding-left: 24px;
  border-left: 2px solid var(--accent);
  margin-bottom: 32px;
  font-variation-settings: 'opsz' 100;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.75;
}

.about-side { display: flex; flex-direction: column; gap: 24px; }

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color var(--transition);
}

.info-card:hover { border-color: var(--border-strong); }

.info-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
  font-variation-settings: 'opsz' 30;
}

.info-list { display: flex; flex-direction: column; gap: 14px; }

.info-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  word-break: break-word;
}

.info-list li a:hover { color: var(--accent); }
.info-list svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); }

.lang-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.lang-list li:last-child { border-bottom: none; }
.lang-list em { font-style: normal; color: var(--text-soft); font-size: 13px; }

/* --- Trajectoire (5 actes) ------------------------------------------- */
.acts-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}

.acts-grid::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 40px;
  right: 40px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--accent-line) 0 8px, transparent 8px 14px);
  z-index: 0;
}

.act-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.act-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.act-card::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--accent);
  transition: background var(--transition);
}

.act-card:hover::before { background: var(--accent); }

.act-card.act-card-highlight {
  background: linear-gradient(135deg, var(--surface) 0%, var(--accent-bg) 100%);
  border-color: var(--accent);
}

.act-verb {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  font-variation-settings: 'opsz' 30;
  line-height: 1.1;
}

.act-period {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.act-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 4px;
}

/* --- Expertise / Piliers --------------------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  transition: all var(--transition);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
}

.pillar-icon svg { width: 26px; height: 26px; }

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 30;
}

.pillar-list { display: flex; flex-direction: column; gap: 10px; }

.pillar-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.pillar-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* --- Experience / Timeline ------------------------------------------- */
.timeline { position: relative; padding-left: 40px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--border-strong);
}

.timeline-item { position: relative; padding-bottom: 72px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -40px;
  top: 8px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--accent);
  z-index: 1;
  transition: background var(--transition);
}

.timeline-marker::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform var(--transition);
}

.timeline-item:hover .timeline-marker::after { transform: scale(1); }

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.exp-header h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 30;
}

.exp-company {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 2px;
}

.exp-sub { font-size: 13px; color: var(--text-soft); font-style: italic; }

.exp-period {
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 500;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.exp-desc {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
  font-size: 15px;
}

/* Sub-projects within an experience */
.exp-project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.exp-project-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.exp-project-head h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  font-variation-settings: 'opsz' 30;
}

.exp-project-meta {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.exp-achievements { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.exp-achievements li {
  padding-left: 22px;
  position: relative;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.exp-achievements li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.exp-achievements li.highlight {
  color: var(--text);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 15px;
  font-variation-settings: 'opsz' 30;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.exp-tags span {
  font-size: 12px;
  padding: 5px 12px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 4px;
  font-weight: 500;
}

/* --- Innovation section (IdeaHub) ------------------------------------ */
.innovation-section {
  position: relative;
  overflow: hidden;
}

.innovation-section::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-bg) 0%, transparent 70%);
  pointer-events: none;
}

.innovation-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.innovation-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.innovation-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
  font-variation-settings: 'opsz' 144;
}

.innovation-tagline {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 55ch;
}

.innovation-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.feature h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
  font-variation-settings: 'opsz' 30;
}

.feature p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.innovation-side { display: flex; flex-direction: column; gap: 16px; }

.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.tech-card h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.tech-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.tech-cloud span {
  font-size: 12px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  transition: all var(--transition);
  font-weight: 500;
}

.tech-cloud span:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.tech-mini {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Education flow -------------------------------------------------- */
.edu-flow {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 60px;
}

.edu-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.edu-item:last-child { border-bottom: none; }
.edu-item:hover { background: var(--bg); }

.edu-year {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 4px;
}

.edu-featured {
  background: var(--accent-bg);
  padding: 24px 20px;
  border-radius: var(--radius-md);
  border-bottom: none;
  margin-bottom: 8px;
}

.edu-featured:hover { background: var(--accent-bg); }
.edu-featured .edu-year { padding-left: 12px; }

.edu-body h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.3;
  font-variation-settings: 'opsz' 30;
}

.edu-body p { font-size: 14px; color: var(--text-muted); }

.publication {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.pub-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
}

.publication p {
  flex: 1;
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  color: var(--text);
}

.publication a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  transition: color var(--transition);
}

.publication a:hover { color: var(--accent); }

/* --- Contact ---------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }

.contact-intro h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  font-variation-settings: 'opsz' 80;
}

.contact-intro p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-links { display: flex; flex-direction: column; gap: 12px; }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.contact-link svg { width: 18px; height: 18px; color: var(--accent); }
.contact-link:hover { color: var(--accent); padding-left: 8px; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }

.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: all var(--transition);
  width: 100%;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.form-status { font-size: 14px; color: var(--text-muted); }
.form-status.success { color: #2d8a4f; }
.form-status.error { color: #c1440e; }

/* --- Footer ----------------------------------------------------------- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}

.back-top:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* --- Reveal animations ------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .pillars-grid { grid-template-columns: 1fr; gap: 20px; }
  .acts-grid { grid-template-columns: repeat(2, 1fr); }
  .acts-grid::before { display: none; }
  .innovation-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .section { padding: 80px 0; }
  .hero { padding: 130px 0 80px; }
  .section-head { margin-bottom: 40px; }

  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform var(--transition);
  }
  .nav-list.open { transform: translateY(0); }
  .brand-name { display: none; }

  .hero-title { font-size: clamp(2.25rem, 9vw, 3.5rem); }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .meta-value { font-size: 1.75rem; }

  .acts-grid { grid-template-columns: 1fr; }
  .act-card::before { display: none; }

  .innovation-features { grid-template-columns: 1fr; }
  .innovation-name { font-size: clamp(2.5rem, 10vw, 3.5rem); }

  .timeline { padding-left: 32px; }
  .timeline-marker { left: -32px; width: 14px; height: 14px; }
  .timeline::before { left: 6px; }
  .exp-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .exp-header h3 { font-size: 20px; }
  .exp-project { padding: 16px 18px; }
  .exp-project-head h4 { font-size: 16px; }

  .edu-item { grid-template-columns: 1fr; gap: 4px; padding: 20px 0; }
  .edu-featured { padding: 20px; }
  .edu-featured .edu-year { padding-left: 0; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 24px; }

  .quote { font-size: 19px; padding-left: 16px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .hero-meta { grid-template-columns: 1fr; }
  .lang-switch { padding: 0 8px; font-size: 12px; }
  .header-actions { gap: 4px; }
}

/* --- Print ------------------------------------------------------------ */
@media print {
  .site-header, .site-footer, .hero-cta, .contact-form, .nav-toggle { display: none; }
  .section { padding: 30px 0; page-break-inside: avoid; }
  body { background: white; color: black; }
}
