/* ============================================================
   YUCE ENGIN — style.css
   Architecture : Custom properties → Reset → Layout → Components → Animations → Responsive
   ============================================================ */

/* ─── FONTS ───────────────────────────────────────────────── */
@font-face {
  font-family: 'Stack Sans Headline';
  src: url('fonts/StackSansHeadline-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 800; /* Permet d'utiliser toutes les graisses du fichier */
  font-style: normal;
  font-display: swap;
}

/* ─── CUSTOM PROPERTIES ──────────────────────────────────── */
:root {
  /* Colors */
  --clr-bg:        #050505;
  --clr-surface:   #0c0c0c;
  --clr-text:      #f0f0f0;
  --clr-muted:     #a0a0a0;
  --clr-accent:    #E5D1A4;
  --clr-line:      rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-display: 'Stack Sans Headline', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --space-xs:  8px;
  --space-sm:  15px;
  --space-md:  40px;
  --space-lg:  60px;
  --space-xl:  100px;
  --px:        6vw;          /* horizontal page padding */

  /* Border radius */
  --r-sm:   4px;
  --r-md:   20px;
  --r-lg:   50px;
  --r-full: 50%;

  /* Transitions */
  --t-fast:   0.3s ease;
  --t-smooth: 0.5s ease;
  --t-bounce: 0.3s cubic-bezier(0.65, 0, 0.35, 1);

  /* Carousel */
  --carousel-slide-w: min(850px, 85vw);
}

/* ─── LIGHT THEME ────────────────────────────────────────── */
[data-theme="light"] {
  --clr-bg:     #F2F0EB;
  --clr-surface:#e8e5df;
  --clr-text:   #1a1a1a;
  --clr-muted:  #5a5a5a;
  --clr-accent: #B89E68;
  --clr-line:   rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--t-smooth), color var(--t-smooth);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ─── GRAIN OVERLAY ──────────────────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── CURSOR GLOW ────────────────────────────────────────── */
.interactive-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(229, 209, 164, 0.15) 0%, transparent 70%);
  border-radius: var(--r-full);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: left, top;
}

/* ─── PRELOADER ──────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  pointer-events: none;
}

.curtain-panel {
  height: 100%;
  width: 50%;
  background-color: var(--clr-surface);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.left-panel  { justify-content: flex-end; padding-right: 10px; border-right: 1px solid #222; }
.right-panel { justify-content: flex-start; padding-left: 10px; }

.letter {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 700;
  color: var(--clr-accent);
  display: inline-block;
  opacity: 0;
  transform: translateY(50px);
}

/* ─── HEADER ─────────────────────────────────────────────── */
.main-header {
  position: fixed;
  inset: 0 0 auto;
  padding: 30px var(--px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, transparent 100%);
  backdrop-filter: blur(10px);
  pointer-events: none;        /* clicks pass through transparent area */
}

.main-header > * { pointer-events: auto; }

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--clr-text);
  transition: color var(--t-fast);
}

.logo:hover { color: var(--clr-accent); }
.dot         { color: var(--clr-accent); }

.main-header nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
}

.nav-links a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  color: var(--clr-text);
  position: relative;
  transition: color var(--t-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-accent);
  transition: width var(--t-fast);
}

.nav-links a:hover         { color: var(--clr-accent); }
.nav-links a:hover::after  { width: 100%; }

/* ─── THEME SWITCH ───────────────────────────────────────── */
.switch {
  font-size: 14px;
  display: grid;
  grid-template-columns: 1.5em 2em;
  grid-template-rows: repeat(2, 1.5em);
  cursor: pointer;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  margin-left: 20px;
  -webkit-tap-highlight-color: transparent;
}

.switch__input {
  appearance: none;
  cursor: pointer;
  grid-row: 1 / 3;
  width: 1.5em;
  height: 3em;
  border-radius: 0.75em;
  box-shadow: 0 0 0 2px var(--clr-text) inset;
  background: transparent;
  transition: box-shadow var(--t-fast);
}

.switch__input::before {
  content: '';
  display: block;
  background: var(--clr-text);
  border-radius: var(--r-full);
  margin: 0.15em;
  width: 1.2em;
  height: 1.2em;
  transform: translateY(1.5em);
  transition: transform var(--t-bounce), background-color var(--t-fast);
}

.switch__input:checked::before { transform: translateY(0); }

.switch__letters {
  display: block;
  justify-self: center;
  pointer-events: none;
  line-height: 1;
  color: var(--clr-text);
  transition: transform var(--t-bounce), opacity var(--t-fast);
}

.switch__letters:nth-of-type(1) {
  grid-column: 2; grid-row: 1;
  font-size: 2.5em;
  transform: scale(0.64); transform-origin: 50% 100%; opacity: 0.3;
}

.switch__letters:nth-of-type(2) {
  grid-column: 2; grid-row: 2;
  font-size: 2.5em;
  transform: scale(1); transform-origin: 50% 0%; opacity: 1;
}

.switch__input:checked ~ .switch__letters:nth-of-type(1) { transform: scale(1);    opacity: 1;   }
.switch__input:checked ~ .switch__letters:nth-of-type(2) { transform: scale(0.64); opacity: 0.3; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero-section {
  min-height: 100svh;
  padding: 100px 0 50px var(--px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* Title */
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 10rem);
  line-height: 1.1;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  margin-bottom: 50px;
}

.typewriter-line        { display: block; width: fit-content; }
.typewriter-line.indent { margin-left: 10vw; color: var(--clr-accent); }

/* Each letter is split by JS */
.char {
  opacity: 0;
  display: inline-block;
  will-change: opacity;
}

/* Description */
.hero-text-container {
  flex: 1;
  padding-right: var(--space-md);
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--clr-muted);
  max-width: 600px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-description strong {
  color: var(--clr-text);
  font-weight: 600;
}

/* Separator */
.vertical-separator {
  width: 1px;
  height: 400px;
  background-color: var(--clr-accent);
  opacity: 0.3;
  margin-right: var(--space-lg);
  transform: scaleY(0);
  transform-origin: top;
}

/* Scroll indicator */
.hero-footer {
  position: absolute;
  bottom: 30px;
  left: var(--px);
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--clr-muted);
  animation: bounce 2s ease-in-out infinite;
}

.line-down {
  width: 1px;
  height: 40px;
  background-color: var(--clr-muted);
}


/* ════════════════════════════════════════════
   HERO MINIMAL — section complète
════════════════════════════════════════════ */
.hero-minimal {
  position: relative;
  width: 100%;
  height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  margin-top:-100px;
}
 
/* ── Texte masque SVG ── */
.clip-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
 
.clip-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
 
/* Le rectangle animé visible à travers les lettres */
.clip-fill {
  fill: url(#gradAnim);
}
 
/* ── Gradient animé ── */
@keyframes gradShift {
  0%   { x: -100%; }
  100% { x: 100%;  }
}
 
/* ── Ligne de séparation au-dessus ── */
.minimal-rule {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--clr-accent));
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeIn 1s ease 0.4s forwards;
}
 
/* ── Sous-titre sous le texte masque ── */
.minimal-meta {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
  opacity: 0;
  animation: fadeIn 1s ease 0.8s forwards;
}
 
.minimal-stat {
  text-align: center;
}
 
.minimal-stat-number {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--clr-accent);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}
 
.minimal-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-muted);
  margin-top: 6px;
  display: block;
}
 
.minimal-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
}
 
/* ── Scroll hint ── */
.minimal-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}
 
.minimal-scroll span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-muted);
}
 
.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-accent);
  animation: pulseDot 1.6s ease-in-out infinite;
}
 
/* ── Particules de fond ── */
.particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}
 
/* ── Z-index stack ── */
.clip-wrap   { z-index: 1; }
.minimal-meta  { z-index: 1; }
.minimal-rule  { z-index: 1; }
.minimal-scroll { z-index: 1; }
 
/* ── Keyframes ── */
@keyframes fadeIn {
  to { opacity: 1; }
}
 
@keyframes pulseDot {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.6); opacity: 0.4; }
}
 
/* ── Responsive ── */
@media (max-width: 600px) {
  .minimal-meta { gap: 20px; }
  .minimal-stat-number { font-size: 1.4rem; }
}

/* ─── EDITORIAL PROFILE ──────────────────────────────────── */
.editorial-profile {
  flex: 0 0 auto;
  padding-right: 4vw;
  opacity: 0;
  transform: translateX(50px);
}

.profile-layout {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-align: right;
}

.profile-info-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 300px;
}

.profile-identity h3 {
  font-family: 'Mr De Haviland', cursive;
  font-size: 5rem;
  font-weight: 400;
  line-height: 0.8;
  margin-top: -180px;
  margin-bottom: 10px;
}

.job-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--clr-accent);
  font-weight: 600;
}

.profile-bio {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--clr-muted);
  margin: 20px 0 30px;
}

.profile-photo-circle {
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  border-radius: var(--r-full);
  overflow: hidden;
  border: 3px solid var(--clr-accent);
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
  animation: float 6s ease-in-out infinite;
}

.profile-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(10%);
  transition: filter var(--t-smooth), transform var(--t-smooth);
}

.profile-photo-circle:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Skills */
.clean-skills {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.clean-skills li {
  font-size: 0.9rem;
  color: var(--clr-text);
  border-bottom: 1px solid var(--clr-line);
  padding-bottom: 2px;
  transition: border-color var(--t-fast);
}

.clean-skills li:hover { border-color: var(--clr-accent); }

.link-clean {
  color: var(--clr-accent);
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  flex-direction: row-reverse;
  transition: gap var(--t-fast);
}

.link-clean:hover { gap: 20px; }

/* ─── HERO MINIMAL ───────────────────────────────────────── */
.hero-minimal {
  padding: var(--space-xl) var(--px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.reveal-text {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
}

.reveal-subtext {
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--clr-muted);
  max-width: 600px;
}

/* ─── PROJECTS — EDITORIAL ───────────────────────────────── */
.projects-editorial {
  padding: var(--space-xl) var(--px);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: var(--clr-line);
  margin-bottom: 0;
}

.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  transition: padding-left 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  color: inherit;
}

.project-row:hover { padding-left: 20px; }

.project-row-left {
  display: flex;
  align-items: baseline;
  gap: 28px;
}

.project-number {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  min-width: 30px;
  color: rgba(229,209,164,0.35);
  transition: color var(--t-fast);
}

.project-row:hover .project-number { color: var(--clr-accent); }

.project-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color var(--t-fast);
}

.project-row:hover .project-name { color: var(--clr-accent); }

.project-row-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.project-tags {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.project-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--clr-muted);
  border: 1px solid var(--clr-line);
  padding: 5px 12px;
  border-radius: var(--r-lg);
  white-space: nowrap;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.project-row:hover .project-tag {
  border-color: rgba(229,209,164,0.4);
  color: var(--clr-accent);
}

.project-arrow {
  font-size: 1.2rem;
  color: var(--clr-muted);
  transition: transform 0.4s cubic-bezier(0.65,0,0.35,1), color var(--t-fast);
}

.project-row:hover .project-arrow {
  transform: translate(6px, -6px);
  color: var(--clr-accent);
}

.year-badge {
  font-size: 0.7rem;
  color: var(--clr-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Floating preview */
.floating-preview {
  position: fixed;
  width: 320px;
  height: 200px;
  border-radius: 6px;
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: scale(0.88) rotate(-2deg);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

.floating-preview.visible {
  opacity: 1;
  transform: scale(1) rotate(-1deg);
}

.floating-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer-section {
  padding: 150px var(--px) 50px;
  text-align: center;
}

.footer-content h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  margin-bottom: 50px;
}

.email-link {
  font-size: 2rem;
  color: var(--clr-accent);
  border-bottom: 1px solid var(--clr-accent);
  padding-bottom: 5px;
  transition: opacity var(--t-fast);
}

.email-link:hover { opacity: 0.7; }

.social-links-minimal {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-bottom {
  margin-top: 100px;
  display: flex;
  justify-content: space-between;
  color: var(--clr-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* ─── NORRIS HOVER LINKS ─────────────────────────────────── */
a.norris {
  font-family: var(--font-display);
  font-size: 3rem;
  text-transform: uppercase;
  display: block;
  white-space: nowrap;
  width: fit-content;
  overflow: hidden;
}

a.norris span {
  position: relative;
  display: inline-block;
  color: transparent;
}

a.norris span::before,
a.norris span::after {
  position: absolute;
  left: 0;
  content: attr(data-char);
  transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
  transition-delay: calc(var(--index) * 25ms);
}

a.norris span::before { transform: translateY(0);     opacity: 1; color: var(--clr-muted);  }
a.norris span::after  { transform: translateY(3rem);  opacity: 0; color: var(--clr-accent); }

a.norris:hover span::before { transform: translateY(-3rem); opacity: 0; }
a.norris:hover span::after  { transform: translateY(0);     opacity: 1; }

/* ─── CAROUSEL ───────────────────────────────────────────── */
.mzaCarousel {
  position: relative;
  height: 80vh;
  width: 100%;
  overflow: hidden;
  touch-action: none;
}

.mzaCarousel-viewport {
  perspective: 1200px;
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.mzaCarousel-track {
  position: relative;
  height: 100%;
  width: 100%;
  transform-style: preserve-3d;
}

.mzaCarousel-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--carousel-slide-w);
  height: 450px;
  transition: opacity var(--t-fast);
  will-change: transform;
}

.mzaCard {
  width: 100%;
  height: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  background-color: #111;
  border: 1px solid var(--clr-line);
}

.mzaCard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  z-index: 1;
}

.mzaCard-head,
.mzaCard-text,
.mzaCard-actions { position: relative; z-index: 2; }

.mzaCard-title { font-family: var(--font-display); text-transform: uppercase; }

.mzaBtn {
  background-color: var(--clr-accent);
  color: #000;
  border: none;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 24px;
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: transform var(--t-fast);
}

.mzaBtn:hover { transform: translateY(-2px); }

.mzaCarousel-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--r-full);
  background: var(--clr-muted);
  border: none;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  margin: 0 5px;
}

.mzaCarousel-dot.active {
  background: var(--clr-accent);
  transform: scale(1.3);
}

.mzaCarousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.1);
}

.mzaCarousel-progressBar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--clr-accent);
  transform-origin: left;
  transform: scaleX(0);
}

/* ─── KEYFRAMES ──────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-15px); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */

/* Tablet */
@media (max-width: 968px) {
  :root { --px: 20px; }

  .hero-section  { padding-right: var(--px); }

  .hero-grid {
    flex-direction: column;
    gap: var(--space-md);
  }

  .hero-text-container {
    text-align: center;
    padding-right: 0;
  }

  .hero-title {
    font-size: 4rem;
    align-items: center;
  }

  .typewriter-line.indent { margin-left: 0; }

  .hero-description {
    margin: 0 auto;
    text-align: left;
  }

  .vertical-separator {
    width: 100%;
    height: 1px;
    margin: 30px 0;
    transform: scaleX(0);
    transform-origin: center;
  }

  .editorial-profile {
    padding-right: 0;
    transform: none;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .profile-layout {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .profile-info-block { align-items: center; max-width: 100%; }
  .profile-identity h3 { margin-top: 0; }
  .link-clean          { flex-direction: row; }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* Mobile L */
@media (max-width: 768px) {
  .letter             { font-size: 3rem; }
  .interactive-glow   { display: none; }
}

/* Mobile M */
@media (max-width: 600px) {
  .main-header { padding: 15px 20px; }
  .logo        { font-size: 1.2rem; }
  .nav-links   { display: none; }
  .main-header nav { gap: 10px; }
  .switch      { transform: scale(0.85); }
}

/* Mobile S */
@media (max-width: 430px) {
  .hero-title { font-size: 2.5rem; gap: 5px; }

  .typewriter-line {
    white-space: nowrap;
    font-size: 3rem;
  }

  .typewriter-line.indent { margin-left: 5vw; }

  .projects-editorial { padding: 60px 15px; }

  .project-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 0;
  }

  .project-row-left  { gap: 15px; width: 100%; }
  .project-row-right { width: 100%; justify-content: space-between; gap: 0; }

  .project-name { font-size: 1.8rem; white-space: normal; line-height: 1.2; }
  .year-badge   { font-size: 0.65rem; }
}

/* Hide floating preview on touch devices */
@media (max-width: 1024px) {
  .floating-preview { display: none; }
}