:root {
  --bg: #06030f;
  --bg-soft: #10072a;
  --text: #f8f7ff;
  --muted: #d4cff8;
  --accent: #9d4dff;
  --accent-2: #6eecff;
  --glass: rgba(255, 255, 255, 0.09);
  --glass-stroke: rgba(255, 255, 255, 0.22);
  --shadow: 0 16px 45px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

body {
  position: relative;
  cursor: none;
}

@media (pointer: fine) {
  a,
  button,
  .btn,
  .dot,
  .exp-card,
  .tag,
  .interest-cloud span,
  .pill,
  .project-card {
    cursor: none;
  }
}

#ambientCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
  transform: translateZ(0);
}

.bg-gradient,
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-gradient::before,
.bg-gradient::after {
  content: "";
  position: absolute;
  width: 40vmax;
  height: 40vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
  will-change: transform;
}

.bg-gradient::before {
  top: -10vmax;
  left: -8vmax;
  background: #8d4cff;
  animation: driftA 12s ease-in-out infinite alternate;
}

.bg-gradient::after {
  right: -8vmax;
  bottom: -12vmax;
  background: #58d8ff;
  animation: driftB 15s ease-in-out infinite alternate;
}

.bg-gradient {
  background: radial-gradient(circle at 15% 25%, #7d3aff7c 0%, transparent 44%),
    radial-gradient(circle at 88% 10%, #67d0ff69 0%, transparent 42%),
    radial-gradient(circle at 55% 80%, #9e4dff4f 0%, transparent 50%), var(--bg);
}

.bg-grid {
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 80%, transparent 100%);
  opacity: 0.16;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4),
    0 0 14px rgba(255, 255, 255, 0.45),
    0 0 3px rgba(0, 0, 0, 0.3);
  will-change: transform;
}

#slidesContainer {
  height: 100vh;
  height: 100dvh;
  width: 100%;
  transition: transform 0.9s cubic-bezier(0.2, 0.75, 0, 1);
  will-change: transform;
  position: relative;
  z-index: 2;
}

.slide {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: clamp(16px, 2.8vw, 28px);
  padding-bottom: max(clamp(16px, 2.8vw, 28px), calc(env(safe-area-inset-bottom) + 132px));
  opacity: 0.35;
  transition: opacity 0.5s ease;
  content-visibility: auto;
}

.slide.is-active {
  opacity: 1;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.card {
  width: min(100%, 960px);
  border-radius: 28px;
  padding: clamp(16px, 3.5vw, 44px);
  /* Presque toute la hauteur utile pour limiter le scroll interne */
  max-height: min(96dvh, calc(100dvh - 24px));
  max-height: min(96vh, calc(100vh - 24px));
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  transform-style: preserve-3d;
  scrollbar-gutter: stable;
}

.card--dense {
  padding: clamp(12px, 2.4vw, 32px);
}

.card--dense h2 {
  margin-bottom: 6px;
  font-size: clamp(1.3rem, 4vw, 2rem);
}

.card--dense .section-lead {
  margin: -2px 0 10px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.card--dense .skills {
  gap: 10px;
}

.card--dense .skill span {
  font-size: 0.9rem;
}

.card--dense .bar {
  height: 9px;
}

.card:not(.hero) p {
  margin: 0 0 12px;
}

.card:not(.hero) p:last-child {
  margin-bottom: 0;
}

.hero {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  font-family: "Sora", sans-serif;
}

h1 {
  font-size: clamp(2.1rem, 8vw, 5rem);
}

.hero-age {
  margin: 0 0 10px;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
}

.lead {
  font-size: clamp(1rem, 2.6vw, 1.4rem);
  color: var(--muted);
  margin: 0 auto;
  max-width: 680px;
}

.hero-sub {
  margin: 14px auto 0;
  max-width: 640px;
  font-size: clamp(0.88rem, 2vw, 1.05rem);
  color: #dcd6ffcc;
  line-height: 1.65;
}

.section-lead {
  margin: -6px 0 18px;
  font-size: 0.98rem;
  color: #e2ddffcc;
}

.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 18px 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.info-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.info-strip i {
  color: var(--accent-2);
}

.exp-meta {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c9c0ffcc;
}

.highlight-box {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(110, 236, 255, 0.35);
  background: linear-gradient(125deg, rgba(157, 77, 255, 0.15), rgba(110, 236, 255, 0.1));
}

.highlight-box--compact {
  margin-top: 10px;
  padding: 10px 12px;
  gap: 10px;
}

.highlight-box--compact > i {
  font-size: 1.15rem;
}

.highlight-box--compact p {
  font-size: 0.86rem;
  line-height: 1.45;
}

.highlight-box > i {
  font-size: 1.35rem;
  color: var(--accent-2);
  margin-top: 2px;
}

/* Uniquement le titre du bloc — pas les <strong> dans le paragraphe (sinon chaque mot passe en bloc) */
.highlight-box > div > strong:first-of-type {
  display: block;
  margin-bottom: 8px;
  font-family: "Sora", sans-serif;
  font-size: 1.02rem;
}

.highlight-box p strong {
  display: inline;
  font-weight: 700;
}

.skill--featured span {
  color: #fff;
  text-shadow: 0 0 20px rgba(110, 236, 255, 0.35);
}

.skill--featured .bar i {
  box-shadow: 0 0 12px rgba(110, 236, 255, 0.45);
}

.summer-job--fulltime {
  margin-top: 14px;
  background: linear-gradient(120deg, rgba(110, 236, 255, 0.12), rgba(157, 77, 255, 0.14));
}

.highlight-box p {
  margin: 0;
  font-size: 0.95rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sub-block {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.sub-block h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 8px;
  color: #ebe6ff;
  font-size: 0.95rem;
  line-height: 1.55;
}

.check-list strong {
  color: var(--text);
}

.pill-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f0ecff;
}

.project-list {
  display: grid;
  gap: 12px;
}

.project-list--compact {
  gap: 8px;
}

.project-list--compact .project-card {
  padding: 11px 13px;
  gap: 10px;
}

.project-list--compact .project-card h3 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.project-list--compact .project-card p {
  font-size: 0.86rem;
  line-height: 1.45;
}

.project-list--compact .project-icon {
  width: 38px;
  height: 38px;
  font-size: 1rem;
}

.project-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.22s ease, background 0.22s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.project-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(157, 77, 255, 0.35), rgba(110, 236, 255, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  font-size: 1.1rem;
}

.project-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.project-card p {
  margin: 0;
  font-size: 0.92rem;
}

p {
  line-height: 1.7;
  color: #ebe6ff;
}

.cta-row {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hint {
  color: #ece8ffcf;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
  max-width: 100%;
}

.hint__desktop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hint__mobile {
  display: none;
  align-items: center;
  gap: 8px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.98rem;
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 25px rgba(125, 58, 255, 0.5);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.btn .ripple {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 0.58s ease-out forwards;
  pointer-events: none;
}

.btn.icon {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.15);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.exp-card {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 18px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.exp-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
}

.exp-card.is-hovered {
  box-shadow: 0 0 0 1px rgba(143, 98, 255, 0.5), 0 14px 30px rgba(92, 36, 189, 0.38);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.timeline--split {
  gap: 8px;
}

@media (min-width: 720px) {
  .timeline--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.timeline li {
  border-left: 3px solid var(--accent-2);
  padding: 8px 0 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.timeline li h3 {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  margin-bottom: 4px;
}

.timeline li p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.parcours-free {
  margin: 6px 0 8px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.skills {
  display: grid;
  gap: 14px;
}

.skill {
  display: grid;
  gap: 8px;
}

.skill span {
  font-weight: 700;
}

.bar {
  height: 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.85s ease;
}

.interest-cloud {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.interest-cloud span {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.summer-job {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(120deg, rgba(157, 77, 255, 0.2), rgba(110, 236, 255, 0.17));
  padding: 14px;
}

.summer-job h3 {
  margin-bottom: 4px;
}

.contact ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 8px;
}

.contact li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.thank-you {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  font-weight: 600;
  text-align: center;
  color: #f0eaff;
  line-height: 1.55;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.thank-you i {
  color: #ff8ec4;
  filter: drop-shadow(0 0 8px rgba(255, 142, 196, 0.45));
}

/* Dock bas : flèches centrées au-dessus des points (tous écrans) */
.bottom-nav-dock {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(100%, calc(100vw - 20px));
  max-width: min(520px, 100vw - 20px);
  pointer-events: none;
}

.bottom-nav-dock > * {
  pointer-events: auto;
}

.slide-controls {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(5, 2, 16, 0.92) 100%);
  background-color: rgba(5, 2, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.slide-controls .btn {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.slide-hud {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 6;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.slide-counter,
.slide-chip {
  z-index: 6;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.slide-chip {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.progress-nav {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min-content;
  gap: 2px;
  width: 100%;
  max-width: 100%;
  padding: 7px 12px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(5, 2, 16, 0.9) 100%);
  background-color: rgba(5, 2, 16, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.progress-nav::-webkit-scrollbar {
  display: none;
}

.progress-nav .dot {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.progress-nav .dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.progress-nav .dot:hover {
  transform: scale(1.06);
}

.progress-nav .dot:hover::after {
  transform: scale(1.15);
  border-color: rgba(255, 255, 255, 0.55);
}

.progress-nav .dot.is-active::after {
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(110, 236, 255, 0.45);
  animation: dotPulse 1.5s ease-in-out infinite;
}

.slide-controls .btn.icon {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.slide-controls .btn.icon:focus-visible,
.progress-nav .dot:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.slide-controls .btn.icon:hover {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transform: none;
  filter: brightness(1.06);
}

.slide-controls .btn-icon--auto {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  opacity: 0.95;
  border-radius: 11px;
}

@media (max-width: 900px) {
  #slidesContainer {
    height: 100svh;
    height: 100dvh;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  html {
    min-height: 100%;
    min-height: -webkit-fill-available;
  }

  body {
    cursor: auto;
  }

  #ambientCanvas {
    opacity: 0.32;
  }

  .bg-grid {
    opacity: 0.06;
  }

  .cursor-dot {
    display: none;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /*
   * Slide = plein écran, scroll vertical sur TOUTE la slide (plus de mini-scroll dans la carte).
   */
  .slide {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    align-content: unset;
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    height: 100svh;
    max-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    padding-top: max(10px, env(safe-area-inset-top));
    padding-right: max(14px, env(safe-area-inset-right));
    padding-bottom: max(120px, calc(env(safe-area-inset-bottom) + 96px));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  .slide.intro {
    justify-content: center;
  }

  .glass {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
    padding: 1.2rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.045) 55%, rgba(255, 255, 255, 0.03) 100%);
    box-shadow:
      0 14px 44px rgba(0, 0, 0, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .card.hero {
    padding: 1.6rem 1.1rem;
  }

  .card--dense {
    padding: 1.1rem 0.95rem;
  }

  .card h2 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    font-size: clamp(1.15rem, 4.8vw, 1.55rem);
    line-height: 1.22;
    margin-bottom: 0.65rem;
    font-weight: 700;
  }

  .card h2 i {
    font-size: 0.9em;
    opacity: 0.9;
  }

  h1 {
    font-size: clamp(1.9rem, 8.5vw, 2.55rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .hero-age {
    margin-bottom: 6px;
  }

  p,
  li {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .section-lead {
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
    line-height: 1.52;
    color: #ddd6ff;
  }

  .hero-sub {
    font-size: 0.93rem;
    line-height: 1.55;
  }

  .lead {
    line-height: 1.42;
  }

  .info-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .info-strip span {
    font-size: 0.86rem;
  }

  .tag-list {
    gap: 6px;
  }

  .tag {
    padding: 6px 11px;
    font-size: 0.84rem;
  }

  .hint__desktop {
    display: none !important;
  }

  .hint__mobile {
    display: inline-flex !important;
  }

  .hint {
    font-size: 0.83rem;
    line-height: 1.4;
    width: 100%;
    justify-content: center;
    margin-top: 2px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 1.1rem;
  }

  .cta-row .btn.primary {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    font-size: 0.98rem;
  }

  .exp-card {
    padding: 12px 12px;
    border-radius: 14px;
  }

  .exp-card h3 {
    font-size: 0.98rem;
  }

  .timeline--split {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline li {
    padding: 8px 0 8px 12px;
  }

  .highlight-box,
  .summer-job {
    border-radius: 14px;
    padding: 11px 12px;
  }

  .sub-block {
    padding: 11px 12px;
    border-radius: 14px;
  }

  .interest-cloud {
    gap: 6px;
  }

  .interest-cloud span {
    padding: 7px 11px;
    font-size: 0.84rem;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .contact-actions .btn {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .project-card {
    grid-template-columns: 1fr;
    text-align: left;
    border-radius: 14px;
    padding: 11px 12px;
  }

  .project-card .project-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .thank-you {
    font-size: 0.88rem;
    line-height: 1.48;
    padding-top: 10px;
    margin-top: 12px;
  }

  .bottom-nav-dock {
    gap: 8px;
    max-width: min(100vw - 16px, 520px);
  }

  .slide-hud {
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
    gap: 4px;
  }

  .slide-counter {
    padding: 7px 11px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    background: rgba(5, 2, 16, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .slide-chip {
    display: none;
  }

  .btn.icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .btn.icon:active {
    transform: scale(0.96);
  }

  .card--dense .skills {
    gap: 8px;
  }

  .card--dense .bar {
    height: 8px;
  }

  .pill-row {
    gap: 5px;
    margin-top: 10px;
  }

  .pill {
    font-size: 0.74rem;
    padding: 5px 9px;
  }
}

@media (max-width: 380px) {
  .slide {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(112px, calc(env(safe-area-inset-bottom) + 88px));
  }

  .card {
    padding: 1rem 0.85rem;
    border-radius: 14px;
  }

  .card.hero {
    padding: 1.35rem 0.9rem;
  }

  h1 {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }

  .pill-row {
    gap: 4px;
  }

  .pill {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .progress-nav {
    padding: 6px 8px 7px;
  }

  .slide-controls {
    gap: 4px;
    padding: 5px 6px;
  }

  .btn.icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  #ambientCanvas,
  .cursor-dot {
    display: none !important;
  }
}

@media print {
  html,
  body {
    overflow: visible;
    background: #fff;
    color: #111;
    cursor: auto;
  }

  #ambientCanvas,
  .bg-gradient,
  .bg-grid,
  .cursor-dot,
  .bottom-nav-dock,
  .slide-hud {
    display: none !important;
  }

  .thank-you {
    border-top-color: #ddd;
    color: #222 !important;
  }

  .thank-you i {
    color: #c44d7a !important;
    filter: none;
  }

  #slidesContainer {
    transform: none !important;
    height: auto;
  }

  .slide {
    opacity: 1 !important;
    min-height: auto;
    page-break-inside: avoid;
    break-inside: avoid;
    padding: 0;
  }

  .card {
    max-height: none;
    overflow: visible;
    margin: 12px 0;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: none;
    background: #fff;
    color: #111;
  }

  p,
  li,
  .lead,
  .hint,
  .tag,
  h1,
  h2,
  h3 {
    color: #111 !important;
  }
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(13);
    opacity: 0;
  }
}

@keyframes dotPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(157, 77, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(157, 77, 255, 0);
  }
}

@keyframes driftA {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(5vmax, 3vmax, 0) scale(1.08);
  }
}

@keyframes driftB {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-6vmax, -3vmax, 0) scale(1.1);
  }
}
