/* ============================================================
   ATAKAN MERMOD — Design System CSS
   Dark Editorial Agency · v1.0 · 2026-05-22
   ============================================================ */

/* Fonts loaded via <link> in each page head — no @import here */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --bg-dark:       #0A0F1A;
  --bg-surface:    #111827;
  --bg-card:       #161E2E;
  --bg-light:      #FFFFFF;
  --bg-muted:      #F5F7FA;
  --primary:       #074EA1;
  --accent:        #E8308A;
  --text-dark:     #F0F4FF;
  --muted-dark:    #8B9AB4;
  --text-light:    #111827;
  --muted-light:   #6B7280;
  --border-dark:   rgba(240,244,255,0.08);
  --border-light:  rgba(17,24,39,0.10);

  /* Fonts */
  --font-display: 'Satoshi', 'Cabinet Grotesk', 'General Sans', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono:    'Geist Mono', 'JetBrains Mono', monospace;

  /* Spacing */
  --sp-xs:  8px;
  --sp-sm:  16px;
  --sp-md:  24px;
  --sp-lg:  40px;
  --sp-xl:  64px;
  --sp-2xl: 96px;
  --sp-3xl: 128px;

  /* Section padding */
  --section-py: 96px;

  /* Max width */
  --max-w: 1200px;

  /* Radius */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-full: 9999px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);
  --dur-micro:  100ms;
  --dur-short:  200ms;
  --dur-medium: 350ms;
  --dur-long:   600ms;

  /* Nav height */
  --nav-h: 76px;
}

/* --- Focus visible --- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-color: rgba(7,78,161,0.5);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* --- Typography Scale --- */
.t-hero {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 116px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.t-hero-sub {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1.3;
}
.t-h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.t-h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.3;
}
.t-body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
}
.t-body-sm {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}
.t-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
}
.t-caption {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}
@media (max-width: 768px) {
  .container { padding: 0 var(--sp-md); }
  :root { --section-py: 64px; }
}
@media (max-width: 480px) {
  .container { padding: 0 var(--sp-sm); }
  :root { --section-py: 48px; }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-dark);
  transition: background var(--dur-short), border-color var(--dur-short);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.01em;
}
.nav-logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}
.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-dark);
  transition: color var(--dur-short);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--dur-medium) var(--ease-out);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-dark);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-socials {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  color: var(--muted-dark);
  transition: color var(--dur-short), background var(--dur-short);
}
.nav-social-link:hover {
  color: var(--text-dark);
  background: rgba(255,255,255,0.06);
}
.nav-social-link svg { display: block; }
@media (max-width: 1100px) { .nav-socials { display: none; } }

.nav-cta {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 8px 20px;
  border: 1px solid rgba(240,244,255,0.25);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-short), color var(--dur-short);
}
.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Mobile nav toggle */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  transition: all var(--dur-medium) var(--ease-out);
  border-radius: 2px;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: var(--sp-md) var(--sp-md);
  flex-direction: column;
  gap: 4px;
  z-index: 99;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--muted-dark);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-dark);
  display: block;
  transition: color var(--dur-short);
}
.nav-mobile-link:hover { color: var(--text-dark); }
.nav-mobile-link.cta-mobile {
  color: var(--accent);
  border-bottom: none;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  /* On mobile: logo far left, contact+hamburger grouped far right */
  .nav-inner { justify-content: flex-start; }
  .nav-logo  { margin-right: auto; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--r-sm);
  transition: all var(--dur-short) var(--ease-out);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary-dark {
  background: var(--text-dark);
  color: var(--bg-dark);
  border-color: var(--text-dark);
}
.btn-primary-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-outline-dark {
  background: transparent;
  color: var(--text-dark);
  border-color: rgba(240,244,255,0.3);
}
.btn-outline-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-primary-light {
  background: var(--text-light);
  color: var(--bg-light);
  border-color: var(--text-light);
}
.btn-primary-light:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-outline-light {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(17,24,39,0.25);
}
.btn-outline-light:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { background: #c9266f; border-color: #c9266f; }

/* --- Tags --- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.tag-dark {
  border: 1px solid rgba(240,244,255,0.15);
  color: var(--muted-dark);
}
.tag-light {
  border: 1px solid var(--border-light);
  color: var(--muted-light);
}
.tag-accent {
  border: 1px solid rgba(232,48,138,0.25);
  color: var(--accent);
  background: rgba(232,48,138,0.06);
}

/* --- Section Header Component --- */
.section-header { margin-bottom: var(--sp-xl); }
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-sm);
}
.section-label-dark { color: var(--muted-dark); }
.section-label-light { color: var(--muted-light); }
.section-title-dark { color: var(--text-dark); }
.section-title-light { color: var(--text-light); }
.section-sub {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  max-width: 520px;
  margin-top: var(--sp-sm);
}
.section-sub-dark { color: var(--muted-dark); }
.section-sub-light { color: var(--muted-light); }

/* --- Screen-reader only --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- Divider --- */
.divider-dark  { border: none; border-top: 1px solid var(--border-dark); }
.divider-light { border: none; border-top: 1px solid var(--border-light); }

/* --- Scroll Reveal --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--dur-long) var(--ease-out),
                transform var(--dur-long) var(--ease-out);
  }
  .reveal.in { opacity: 1; transform: translateY(0); }

  /* Stagger delays */
  .reveal-d1 { transition-delay: 0.1s; }
  .reveal-d2 { transition-delay: 0.2s; }
  .reveal-d3 { transition-delay: 0.3s; }
  .reveal-d4 { transition-delay: 0.4s; }
  .reveal-d5 { transition-delay: 0.5s; }
}

/* --- Footer --- */
.footer {
  background: #060810;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: var(--sp-lg) 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}
.footer-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-dark);
}
.footer-links {
  display: flex;
  gap: var(--sp-md);
}
.footer-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-dark);
  transition: color var(--dur-short);
}
.footer-link:hover { color: var(--text-dark); }
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: var(--sp-sm); }
}

/* ============================================================
   PAGE-SPECIFIC STYLES
   ============================================================ */

/* --- HERO (index.html) --- */
.hero {
  min-height: 100svh;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 70vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(7,78,161,0.10) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: 10%;
  width: 50vw;
  height: 50vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, rgba(232,48,138,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.hero-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 0;
  align-items: center;
  padding: calc(var(--nav-h) + var(--sp-3xl)) 0 var(--sp-2xl);
  position: relative;
  z-index: 2;
}
.hero-text { }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-md);
}
.hero-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-status-dot { animation: none; }
  .hero-scroll-line { animation: none; }
}
.hero-status-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-dark);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(52px, 7.5vw, 108px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}
.hero-name .surname {
  color: var(--muted-dark);
  font-weight: 300;
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted-dark);
  max-width: 480px;
  margin-top: var(--sp-md);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--sp-md);
}

.hero-actions {
  display: flex;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
  flex-wrap: wrap;
}

.hero-photo {
  align-self: flex-end;
  display: flex;
  justify-content: center;
  padding-bottom: 0;
  position: relative;
}
.hero-photo-img {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r-md) var(--r-md) 0 0;
  display: block;
}
.hero-photo-placeholder {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, rgba(7,78,161,0.22) 0%, rgba(10,15,26,0.95) 60%, rgba(17,24,39,0.9) 100%);
  border-radius: var(--r-md) var(--r-md) 0 0;
  border: 1px solid rgba(255,255,255,0.07);
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(7,78,161,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7,78,161,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-photo-placeholder::after {
  content: 'AM';
  font-family: var(--font-display);
  font-size: 140px;
  font-weight: 800;
  color: rgba(7,78,161,0.12);
  letter-spacing: -0.06em;
  line-height: 1;
  position: absolute;
  bottom: -10px;
  right: 10px;
  user-select: none;
}
.hero-photo-placeholder-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-self: flex-start;
  margin-top: var(--sp-md);
  margin-left: var(--sp-md);
}
.hero-photo-line {
  position: absolute;
  bottom: -1px;
  left: var(--sp-lg);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, rgba(7,78,161,0.5), transparent);
}

.hero-scroll {
  position: absolute;
  bottom: var(--sp-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0.4;
  transition: opacity var(--dur-short);
}
.hero-scroll:hover { opacity: 0.8; }
.hero-scroll-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted-dark);
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--muted-dark), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 900px) {
  .hero-body {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-h) + var(--sp-xl));
  }
  .hero-photo { display: none; }
}

/* --- ABOUT SECTION (index + about) --- */
.section-about {
  background: var(--bg-light);
  padding: var(--section-py) 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: center;
}
.about-photo-wrap { position: relative; }
.about-photo-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 15%;
  border-radius: var(--r-lg);
}
.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #e8f0fc 0%, #c8d8f4 100%);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-photo-placeholder::after {
  content: 'Portrait';
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(0,0,0,0.2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.about-accent {
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-md);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--border-light);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted-light);
  margin-top: 4px;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .about-photo-wrap { max-width: 320px; }
}

/* --- SERVICES PREVIEW (index) / SERVICES FULL --- */
.section-services {
  background: var(--bg-muted);
  padding: var(--section-py) 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.service-card {
  background: var(--bg-light);
  padding: var(--sp-xl) var(--sp-lg);
  position: relative;
  cursor: default;
  transition: transform var(--dur-medium) var(--ease-out),
              box-shadow var(--dur-medium) var(--ease-out);
  border: 1px solid transparent;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-color: rgba(7,78,161,0.1);
  z-index: 1;
}
.service-card:hover .service-num { color: var(--accent); }
.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-light);
  margin-bottom: var(--sp-lg);
  transition: color var(--dur-short);
  letter-spacing: 0.06em;
}
.service-icon {
  width: 40px;
  height: 40px;
  background: var(--text-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-md);
}
.service-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: white;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.25;
  margin-bottom: var(--sp-sm);
}
.service-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted-light);
  line-height: 1.65;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-md);
}
.service-arrow {
  position: absolute;
  bottom: var(--sp-md);
  right: var(--sp-md);
  font-size: 18px;
  color: var(--muted-light);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all var(--dur-short) var(--ease-out);
}
.service-card:hover .service-arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--primary);
}
@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* --- PROJECTS SECTION --- */
.section-projects {
  background: var(--bg-dark);
  padding: var(--section-py) 0;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-sm);
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--dur-medium) var(--ease-out),
              border-color var(--dur-medium);
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(7,78,161,0.4);
}
.project-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-surface);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-thumb-placeholder {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-long) var(--ease-out);
}
.project-card:hover .project-thumb img {
  transform: scale(1.04);
}
.project-info {
  padding: var(--sp-md);
}
.project-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.project-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}
.project-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted-dark);
  line-height: 1.6;
  margin-top: 6px;
}
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* --- ENGAGEMENT / TIMELINE --- */
.section-engagement {
  background: var(--bg-dark);
  padding: var(--section-py) 0;
}
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.timeline-item {
  background: var(--bg-surface);
  padding: var(--sp-lg) var(--sp-md);
  border-left: 2px solid transparent;
  transition: border-color var(--dur-short), background var(--dur-short);
}
.timeline-item:hover {
  border-left-color: var(--primary);
  background: var(--bg-card);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-dark);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.timeline-org {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.timeline-role {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: var(--sp-xs);
}
.timeline-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted-dark);
  line-height: 1.65;
}
@media (max-width: 700px) {
  .timeline-grid { grid-template-columns: 1fr; }
}

/* --- CONTACT SECTION --- */
.section-contact {
  background: var(--bg-dark);
  padding: var(--section-py) 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: start;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  line-height: 1.0;
}
.contact-title .accent-word { color: var(--accent); }
.contact-desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--muted-dark);
  line-height: 1.7;
  margin-top: var(--sp-md);
  max-width: 380px;
}
.contact-links {
  margin-top: var(--sp-lg);
}
.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-dark);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  transition: color var(--dur-short);
  cursor: pointer;
}
.contact-link:last-child { border-bottom: none; }
.contact-link:hover { color: var(--accent); }
.contact-link:hover .arrow-icon { transform: translate(4px, -4px); }
.arrow-icon {
  font-size: 20px;
  transition: transform var(--dur-short) var(--ease-out);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form-input,
.form-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--dur-short);
  width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(139,154,180,0.5);
}
.form-input:focus,
.form-textarea:focus {
  border-color: rgba(7,78,161,0.5);
}
.form-textarea {
  min-height: 130px;
  resize: vertical;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* --- CTA SECTION --- */
.section-cta {
  background: var(--bg-light);
  padding: var(--section-py) 0;
  text-align: center;
}
.cta-wrap {
  max-width: 640px;
  margin: 0 auto;
}
.cta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-md);
}
.cta-actions {
  display: flex;
  gap: var(--sp-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--sp-lg);
}

/* --- PAGE HERO (inner pages) --- */
.page-hero {
  background: var(--bg-dark);
  padding-top: calc(var(--nav-h) + var(--sp-3xl));
  padding-bottom: var(--sp-2xl);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(7,78,161,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-dark);
  text-transform: uppercase;
  margin-bottom: var(--sp-sm);
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  line-height: 1.0;
}
.page-hero-sub {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--muted-dark);
  line-height: 1.75;
  max-width: 520px;
  margin-top: var(--sp-md);
}

/* --- MEDIA MENTIONS --- */
.media-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: var(--sp-md) 0;
}
.media-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  overflow: hidden;
}
.media-bar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(139, 154, 180, 0.9);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.media-list {
  display: flex;
  gap: var(--sp-xl);
  flex-wrap: nowrap;
  will-change: transform;
}
.media-list.marquee-active {
  animation: marquee 22s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .media-list.marquee-active { animation: none; }
}
.media-item {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: rgba(200, 210, 230, 0.8);
  white-space: nowrap;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.media-item:hover {
  color: #fff;
}

/* --- VIDEO GALLERY (projets.html) --- */
.section-video-gallery {
  background: var(--bg-surface);
  padding: var(--section-py) 0;
  border-top: 1px solid var(--border-dark);
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-sm);
  margin-top: var(--sp-xl);
}
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--dur-medium), transform var(--dur-medium) var(--ease-out);
}
.video-card:hover {
  border-color: rgba(7,78,161,0.4);
  transform: translateY(-4px);
}
.video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-thumb-wide { aspect-ratio: 16/9; }
.video-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  transition: background var(--dur-short), transform var(--dur-short);
  padding-left: 4px;
  z-index: 1;
}
.video-card:hover .video-play-btn {
  background: var(--accent);
  transform: scale(1.1);
}
.video-active .video-play-btn { display: none; }
.video-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}
.video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,15,26,0.45);
  z-index: 2;
  transition: opacity var(--dur-short);
}
.video-active .video-play-overlay { opacity: 0; pointer-events: none; }
.video-active .video-thumb iframe { display: block; }
.video-thumb-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,78,161,0.08) 0%, rgba(10,15,26,0.9) 100%);
}
.video-info {
  padding: var(--sp-md);
}
.video-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.video-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}
.video-desc {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted-dark);
  margin-top: 5px;
  line-height: 1.6;
}
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }

/* --- POSITIONS PAGE --- */
.positions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-sm);
  margin-top: var(--sp-xl);
}
.position-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  transition: border-color var(--dur-medium), transform var(--dur-medium) var(--ease-out);
}
.position-card:hover {
  border-color: rgba(7,78,161,0.35);
  transform: translateY(-2px);
}
.position-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.position-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 14px;
}
.position-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.position-badge-oui {
  background: rgba(7,78,161,0.15);
  color: #6daff5;
  border: 1px solid rgba(7,78,161,0.3);
}
.position-badge-non {
  background: rgba(220,38,38,0.08);
  color: #f87171;
  border: 1px solid rgba(220,38,38,0.2);
}
.position-badge-abstention {
  background: rgba(139,154,180,0.08);
  color: var(--muted-dark);
  border: 1px solid var(--border-dark);
}
.position-reasoning {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted-dark);
  line-height: 1.75;
  border-top: 1px solid var(--border-dark);
  padding-top: 16px;
}
.positions-disclaimer {
  background: rgba(7,78,161,0.06);
  border: 1px solid rgba(7,78,161,0.15);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  margin-top: var(--sp-xl);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-dark);
  letter-spacing: 0.03em;
  line-height: 1.7;
}
@media (max-width: 768px) { .positions-grid { grid-template-columns: 1fr; } }
