/* ============================================================
   DESIGN SYSTEM
============================================================ */
:root {
  --bg:              #F8F7F5;
  --bg-dark:         #0C0C0C;
  --bg-dark-2:       #161616;
  --text:            #111110;
  --text-mid:        #6A6A66;
  --text-light:      #AAAAAA;
  --accent:          #888880;
  --border:          #E2E0DC;
  --border-dark:     #242424;
  --placeholder:     #D8D5D0;
  --placeholder-dark:#1E1E1E;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --max:  1200px;
  --pad:  clamp(24px, 5vw, 80px);
  --gap:  clamp(60px, 8vw, 100px);
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   TYPOGRAPHY UTILITIES
============================================================ */
.label {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 28px;
}

h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  color: var(--text);
}

p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-mid);
}


/* ============================================================
   NAV
============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--pad);
  transition: background 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(248, 247, 245, 0.94);
  backdrop-filter: blur(10px);
  border-color: var(--border);
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--bg);
  white-space: nowrap;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 44px;
}

.nav__links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(248, 247, 245, 0.7);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--bg); }

.nav.scrolled .nav__logo { color: var(--text); }
.nav.scrolled .nav__links a { color: var(--text-mid); }
.nav.scrolled .nav__links a:hover { color: var(--text); }

/* Burger button */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(248, 247, 245, 0.8);
  transition: transform 0.25s, opacity 0.25s;
}

.nav.scrolled .nav__burger span { background: var(--text); }

.nav__burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile styles */
@media (max-width: 768px) {
  .nav__burger { display: flex; }

  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 99;
  }

  .nav__links.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav__links a {
    font-size: 14px;
    color: rgba(248, 247, 245, 0.8);
    letter-spacing: 0.2em;
  }
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__placeholder {
  position: absolute;
  inset: 0;
  background: var(--placeholder-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240, 237, 232, 0.12);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 120px var(--pad) 80px;
  color: #F0EDE8;
}

.hero__content .label {
  color: var(--accent);
}

.hero__name {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(64px, 9vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 36px;
  color: #F0EDE8;
}
.hero__name span { display: block; }

.hero__tagline {
  font-size: 15px;
  font-weight: 300;
  color: rgba(240, 237, 232, 0.6);
  line-height: 1.9;
  margin-bottom: 48px;
}

.hero__rule {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 40px;
}

.hero__cta {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color 0.2s;
}
.hero__cta:hover { color: var(--text); }

/* ============================================================
   STATS
============================================================ */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px var(--pad);
}

.stats__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats__item {
  padding: 0 40px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stats__item:first-child { padding-left: 0; border-left: none; }

.stats__desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-mid);
}

/* ============================================================
   POV — dark section
============================================================ */
.pov {
  padding: calc(var(--gap) / 2) var(--pad);
  background: var(--bg-dark);
}

.pov__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.pov .label { color: var(--accent); }

.pov__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #F0EDE8;
  max-width: 880px;
  border: none;
  padding: 0;
}

/* ============================================================
   ABOUT
============================================================ */
.about {
  display: grid;
  grid-template-columns: 2fr 3fr;
  height: 100vh;
}

.about h2 {
  font-size: clamp(28px, 3.5vw, 52px);
}

.about__visual {
  position: relative;
  overflow: hidden;
}

.about__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about__content {
  padding: clamp(24px, 3.5vw, 48px) 80px clamp(24px, 3.5vw, 48px) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* About skills */
.about__skills {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.about__skills li {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
  padding-left: 16px;
  position: relative;
}

.about__skills li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-light);
}

/* Skills tags in aside */
.skills-tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skills-tags li {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-mid);
  border: 1px solid var(--border);
  padding: 4px 10px;
  letter-spacing: 0.03em;
}

/* ============================================================
   PARCOURS
============================================================ */
.parcours {
  padding: var(--gap) var(--pad);
}

.parcours__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.parcours__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
}

.parcours__cv-btns {
  display: flex;
  gap: 8px;
}

.parcours__cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: var(--bg-dark);
  border: 1px solid var(--bg-dark);
  border-radius: 6px;
  color: #F0EDE8;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.parcours__cv-btn:hover {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.parcours__grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}

/* ── Timeline ── */
.p-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}

.p-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.p-timeline__item {
  padding-left: 28px;
  padding-bottom: 44px;
  position: relative;
}

.p-timeline__item:last-child { padding-bottom: 0; }

.p-timeline__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--bg);
  position: absolute;
  left: -4px;
  top: 6px;
  z-index: 1;
}

.p-timeline__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p-timeline__period {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-mid);
  letter-spacing: 0.05em;
}

.p-timeline__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 400;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 2px 10px;
  width: fit-content;
  margin-top: 2px;
  letter-spacing: 0.06em;
}

.p-timeline__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-top: 6px;
  color: var(--text);
  line-height: 1.2;
}

.p-timeline__company {
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 300;
}

.p-timeline__missions {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.p-timeline__missions li {
  font-size: 13px;
  color: var(--text-mid);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

.p-timeline__missions li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-light);
}

/* ── Aside ── */
.parcours__aside {
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: sticky;
  top: 80px;
}

.aside-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aside-title {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.aside-title--sub {
  margin-top: 20px;
  font-style: italic;
  border-bottom: 1px solid var(--border);
}

.edu-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.edu-year {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-light);
  flex-shrink: 0;
  padding-top: 2px;
  min-width: 36px;
}

.edu-name {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
}

.edu-school {
  font-size: 12px;
  color: var(--text-mid);
  margin-top: 2px;
}

.lang-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lang-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.lang-name {
  font-weight: 400;
  color: var(--text);
}

.lang-level {
  font-size: 11px;
  color: var(--text-mid);
  border: 1px solid var(--border);
  padding: 2px 8px;
}

/* ============================================================
/* ============================================================
   CASE STUDIES
============================================================ */
.cases {
  padding: var(--gap) var(--pad);
  border-top: 1px solid var(--border);
}

.cases__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.cases__inner h2 { margin-bottom: 64px; }

.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.case-card {
  position: relative;
  background-color: var(--bg-dark);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  height: 320px;
  overflow: hidden;
}

.case-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.1) 100%);
  transition: background 0.3s;
}

.case-card:hover .case-card__overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.3) 100%);
}

.case-card__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 40px;
  color: #F0EDE8;
}

.case-card__category {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.5);
}

.case-card__client {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #F0EDE8;
}

.case-card__tagline {
  font-size: 12px;
  font-weight: 300;
  color: rgba(240, 237, 232, 0.55);
  margin-top: 8px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 28, 0.82);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 56px 64px;
  position: relative;
  border: 1px solid var(--border);
}

.modal__close {
  position: absolute;
  top: 24px; right: 28px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--charcoal-light);
  background: none;
  border: none;
  transition: color 0.2s;
}
.modal__close:hover { color: var(--charcoal); }

.modal__category {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 12px;
}

.modal__client {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.modal__tagline {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
}

.modal__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.modal__description {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 32px;
}

.modal__keywords {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-light);
}

.modal__context {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
  align-items: start;
}

.modal__context-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal__context-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
}

.modal__context-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-mid);
}

.modal__context-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal__context-featured-body {
  background: var(--bg-dark);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal__context-featured-body--clear {
  background: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal__context-block--featured .modal__context-label {
  color: var(--text-light);
}

.modal__context-block--featured .modal__context-text {
  color: #F0EDE8;
}

.modal__contributions {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal__contrib-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal__contrib-list li {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-mid);
  padding-left: 16px;
  position: relative;
}

.modal__contrib-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-light);
}

.modal__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--border);
}

.modal__stat {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  border-right: 1px solid var(--border);
}

.modal__stat:last-child {
  border-right: none;
}

.modal__stat-value {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2vw, 26px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.modal__stat-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ============================================================
   SIDE PROJECTS
============================================================ */
/* ============================================================
   SIDE PROJECTS
============================================================ */
.side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}

.side__text {
  background: var(--bg-dark);
  padding: var(--gap) var(--pad);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.side__label {
  color: rgba(240, 237, 232, 0.45);
  margin-bottom: 8px;
}

.side__number {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(240, 237, 232, 0.35);
  margin-bottom: 8px;
}

.side__text h3 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 12px;
  color: #F0EDE8;
}

.side__text p {
  color: rgba(240, 237, 232, 0.6);
  line-height: 1.7;
}

.side__text > div > p + p {
  margin-top: 10px;
}

.side__text > div > p:not(.side__keywords) + .side__keywords {
  margin-top: 20px;
}

.side__media {
  padding: var(--gap) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.side__keywords {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(240, 237, 232, 0.35);
  text-transform: uppercase;
  margin-top: 28px;
  margin-bottom: 28px;
}

.side__stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
}

/* Platform CTA buttons — left column */
.side__platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.side__platform-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.side__platform-btn:hover {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #F0EDE8;
}

.side__platform-btn svg {
  flex-shrink: 0;
  opacity: 0.65;
  transition: opacity 0.15s;
}

.side__platform-btn:hover svg {
  opacity: 1;
}

.side__platform-btn span:not(.side__platform-btn__arrow) {
  flex: 1;
}

.side__platform-btn__arrow {
  opacity: 0.3;
  transition: opacity 0.15s, transform 0.15s;
  font-size: 13px;
}

.side__platform-btn:hover .side__platform-btn__arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

.side__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid var(--border-dark);
}

.side__stat:first-child {
  padding-left: 0;
}

.side__stat:last-child {
  border-right: none;
}

.side__stat-value {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  color: #F0EDE8;
}

.side__stat-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.4);
  margin-top: 6px;
}

.widget-embed {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--placeholder);
  overflow: hidden;
}

.widget-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.widget-embed--spotify {
  aspect-ratio: unset;
  height: 152px;
}

/* ── Content blocks (YouTube / Podcast / Newsletter) ─────────────────────── */
.content-block {
  border: 1px solid var(--border);
  overflow: hidden;
}

.content-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
}

.content-block__platform {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.content-block__platform svg {
  opacity: 0.55;
  flex-shrink: 0;
}

.content-block__link {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.15s;
}

.content-block__link:hover {
  color: var(--text);
}

.content-block__subscribe {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}

.content-block__subscribe .substack-widget__form {
  margin: 0;
}

/* Latest YouTube video — click-to-play */
.yt-latest {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.yt-latest iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.yt-poster {
  position: absolute;
  inset: 0;
  cursor: pointer;
  overflow: hidden;
}

.yt-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.yt-poster:hover img {
  transform: scale(1.03);
}

.yt-poster__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0,0,0,0.25);
  transition: background 0.2s;
}

.yt-poster:hover .yt-poster__overlay {
  background: rgba(0,0,0,0.45);
}

.yt-poster__play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}

.yt-poster:hover .yt-poster__play {
  background: rgba(255,255,255,0.25);
  transform: scale(1.08);
}

.yt-poster__title {
  font-family: var(--font-serif);
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 0 20px;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* YouTube embed fallback (error 150/153) */
.yt-fallback {
  display: block;
  position: absolute;
  inset: 0;
  text-decoration: none;
  overflow: hidden;
}

.yt-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-fallback__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  transition: background 0.2s;
}

.yt-fallback:hover .yt-fallback__overlay {
  background: rgba(0,0,0,0.6);
}

.yt-fallback__btn {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.7);
  padding: 10px 20px;
  transition: background 0.2s;
}

.yt-fallback:hover .yt-fallback__btn {
  background: rgba(255,255,255,0.15);
}

/* Latest Substack articles — 3-column card grid */
.side__articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.side__article {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  border-right: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
  overflow: hidden;
}

.side__article:last-child {
  border-right: none;
}

.side__article:hover {
  background: var(--bg-dark);
  color: #F0EDE8;
}

.side__article-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
}

.side__article-img-wrap--empty {
  background: var(--bg-dark);
}

.side__article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}

.side__article:hover .side__article-img {
  transform: scale(1.04);
}

.side__article-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 12px;
  flex: 1;
}

.side__article-title {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.side__article-date {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.15s;
  margin-top: auto;
}

.side__article:hover .side__article-date {
  color: rgba(240, 237, 232, 0.45);
}

.substack-widget__form {
  display: flex;
  gap: 0;
}

.substack-widget__form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-right: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--text);
  outline: none;
}

.substack-widget__form input::placeholder {
  color: var(--text-light);
}

.substack-widget__form input:focus {
  border-color: var(--text-mid);
}

.substack-widget__form button {
  padding: 12px 20px;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.substack-widget__form button:hover {
  background: transparent;
  color: var(--text);
}

/* ── Side text dark bg overrides ──────────────────────────── */
.side__text .content-block {
  border-color: var(--border-dark);
}
.side__text .content-block__header {
  border-color: var(--border-dark);
}
.side__text .content-block__platform {
  color: rgba(240, 237, 232, 0.5);
}
.side__text .content-block__platform svg {
  filter: invert(1);
}
.side__text .content-block__link {
  color: rgba(240, 237, 232, 0.4);
}
.side__text .content-block__link:hover {
  color: #F0EDE8;
}
.side__text .content-block__subscribe {
  border-color: var(--border-dark);
}
.side__text .side__article {
  color: #F0EDE8;
  border-color: var(--border-dark);
}
.side__text .side__article-img-wrap {
  border-color: var(--border-dark);
}
.side__text .side__article-date {
  color: rgba(240, 237, 232, 0.4);
}
.side__text .side__article:hover {
  background: rgba(255,255,255,0.05);
  color: #F0EDE8;
}
.side__text .substack-widget__form input {
  border-color: var(--border-dark);
  color: #F0EDE8;
}
.side__text .substack-widget__form input::placeholder {
  color: rgba(240, 237, 232, 0.35);
}
.side__text .substack-widget__form button {
  background: transparent;
  color: #F0EDE8;
  border-color: rgba(240, 237, 232, 0.5);
}
.side__text .substack-widget__form button:hover {
  background: #F0EDE8;
  color: var(--bg-dark);
  border-color: #F0EDE8;
}

/* ============================================================
   OUTILS / TOOLS
============================================================ */
.outils {
  padding: var(--gap) var(--pad);
  border-top: 1px solid var(--border);
}

.outils__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.outils__inner h2 { margin-bottom: 48px; }

.tools-categories {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tools-category {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 24px;
}

.tools-category:last-child { border-bottom: none; }

.tools-cat-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tool-tag {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-mid);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 2px;
  transition: border-color 0.15s, color 0.15s;
  cursor: default;
}

.tool-tag:hover {
  border-color: var(--text-mid);
  color: var(--text);
}

.tool-logo {
  height: 22px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  opacity: 0.5;
  transition: opacity 0.2s;
  display: block;
}

.tool-logo:hover {
  opacity: 0.9;
}

/* ============================================================
   CONTACT — dark section
============================================================ */
.contact {
  padding: var(--gap) var(--pad);
  background: var(--bg-dark);
}

.contact__inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.contact__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 100px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #F0EDE8;
}
.contact__title em { font-style: italic; color: var(--accent); }

.contact__sub {
  max-width: 380px;
  color: var(--accent);
  font-size: 14px;
}

/* Form */
.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  color: #F0EDE8;
  background: transparent;
  border: 1px solid #2A2A2A;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #444; }

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.contact-submit {
  align-self: flex-start;
  padding: 12px 28px;
  background: #F0EDE8;
  color: var(--bg-dark);
  border: 1px solid #F0EDE8;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.contact-submit:hover { background: transparent; color: #F0EDE8; }

.contact__or {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  border: 1px solid #2A2A2A;
  padding: 12px 20px;
  transition: border-color 0.2s, color 0.2s;
}
.contact__linkedin:hover { border-color: var(--accent); color: #F0EDE8; }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  padding: 28px var(--pad);
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* ============================================================
   MOBILE — max-width: 768px
============================================================ */
@media (max-width: 768px) {

  /* STATS — 1 colonne alignée */
  .stats__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .stats__item {
    padding: 20px 0;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .stats__item:first-child { border-top: none; }

  /* ABOUT — stack, image hidden */
  .about {
    grid-template-columns: 1fr;
    height: auto;
    min-height: unset;
  }
  .about__visual { display: none; }
  .about__content {
    padding: 60px var(--pad);
    gap: 20px;
  }

  /* POV */
  .pov {
    padding: var(--gap) var(--pad);
  }

  /* PARCOURS — stack */
  .parcours__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .parcours__aside {
    position: static;
  }
  .parcours__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 40px;
  }
  .parcours__cv-btns {
    width: 100%;
  }
  .parcours__cv-btn {
    flex: 1;
    justify-content: center;
  }

  /* CASES — 1 colonne sur mobile */
  .cases__grid {
    grid-template-columns: 1fr;
  }
  .case-card {
    height: 220px;
  }
  .case-card__body {
    padding: 24px 28px;
  }

  /* MODAL — full screen */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal {
    max-width: 100%;
    max-height: 92vh;
    padding: 40px 24px;
    border-bottom: none;
  }
  .modal__context {
    grid-template-columns: 1fr;
  }
  .modal__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal__stat:nth-child(even) {
    border-right: none;
  }
  .modal__stat:nth-child(odd):nth-last-child(1) {
    border-right: none;
  }

  /* SIDE PROJECTS — stack */
  .side {
    grid-template-columns: 1fr;
  }
  .side__articles {
    grid-template-columns: 1fr;
  }
  .side__article {
    border-right: none;
    border-bottom: 1px solid var(--border-dark);
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .side__article:last-child {
    border-bottom: none;
  }
  .side__article-img-wrap {
    width: 72px;
    height: 72px;
    aspect-ratio: unset;
    flex-shrink: 0;
    border-bottom: none;
    border-right: 1px solid var(--border-dark);
  }
  .side__article-body {
    padding: 10px 12px 10px 0;
  }

  /* TOOLS — stack label + tools */
  .tools-category {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .tool-logo { height: 20px; }

  /* CONTACT FORM — single column */
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-submit {
    align-self: stretch;
    text-align: center;
  }

  /* FOOTER — stack */
  .footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ============================================================
   MOBILE — max-width: 480px
============================================================ */
@media (max-width: 480px) {

  /* STATS — single column */
  .stats__inner {
    grid-template-columns: 1fr;
  }
  .stats__item:nth-child(2) {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  /* HERO */
  .hero__name {
    font-size: clamp(52px, 14vw, 96px);
  }

  /* ABOUT */
  .about__content {
    gap: 16px;
  }

  /* CASE CARD — reduce font */
  .case-card__client {
    font-size: 28px;
  }
  .case-card {
    height: 200px;
  }

  /* MODAL */
  .modal__stats {
    grid-template-columns: 1fr;
  }
  .modal__stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .modal__stat:last-child {
    border-bottom: none;
  }

  /* SIDE — articles horizontaux plus petits */
  .side__article-img-wrap {
    width: 60px;
    height: 60px;
  }

  /* SIDE — platforms en colonne unique */
  .side__platforms {
    grid-template-columns: 1fr;
  }

  /* CONTACT */
  .contact__title {
    font-size: clamp(42px, 13vw, 80px);
  }
}
