* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  position: relative;
  isolation: isolate;
  --phi-major: 61.8%;
  --phi-minor: 38.2%;
  min-height: 100vh;
  background:
    radial-gradient(circle at var(--phi-major) 14%, rgba(214, 168, 79, 0.2), transparent 18%),
    radial-gradient(circle at 14% var(--phi-major), rgba(164, 116, 58, 0.14), transparent 26%),
    radial-gradient(circle at 88% 82%, rgba(244, 234, 208, 0.08), transparent 24%),
    linear-gradient(
      90deg,
      transparent 0,
      transparent calc(var(--phi-minor) - 1px),
      rgba(214, 168, 79, 0.1) calc(var(--phi-minor) - 1px),
      rgba(214, 168, 79, 0.1) var(--phi-minor),
      transparent var(--phi-minor),
      transparent calc(var(--phi-major) - 1px),
      rgba(214, 168, 79, 0.07) calc(var(--phi-major) - 1px),
      rgba(214, 168, 79, 0.07) var(--phi-major),
      transparent var(--phi-major)
    ),
    linear-gradient(
      180deg,
      transparent 0,
      transparent 23.6%,
      rgba(255, 255, 255, 0.03) 23.6%,
      rgba(255, 255, 255, 0.03) 23.8%,
      transparent 23.8%,
      transparent calc(var(--phi-minor) - 1px),
      rgba(214, 168, 79, 0.085) calc(var(--phi-minor) - 1px),
      rgba(214, 168, 79, 0.085) var(--phi-minor),
      transparent var(--phi-minor)
    ),
    linear-gradient(180deg, #070708 0%, #0b0b10 44%, #060607 100%);
  color: #e6e6e6;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body > :not(.site-motifs):not(.theme-toggle) {
  position: relative;
  z-index: 1;
}

.site-motifs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
  opacity: 0.42;
}

.site-motifs__cluster {
  position: absolute;
}

.site-motifs__cluster--intro {
  top: clamp(78px, 11vh, 138px);
  right: clamp(8px, 4vw, 52px);
  width: min(36vw, 380px);
  height: min(36vw, 380px);
}

.site-motifs__cluster--visual {
  top: clamp(48vh, 56vh, 64vh);
  right: clamp(12px, 3vw, 44px);
  width: min(32vw, 340px);
  height: min(32vw, 340px);
}

.site-motif {
  position: absolute;
  display: block;
}

.site-motif--corner {
  top: 14px;
  right: 14px;
  width: 72px;
  height: 72px;
  border-top: 1px solid rgba(214, 168, 79, 0.26);
  border-right: 1px solid rgba(214, 168, 79, 0.26);
}

.site-motif--dots {
  top: 58px;
  right: 62px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(244, 234, 208, 0.86);
  box-shadow:
    14px 0 0 rgba(214, 168, 79, 0.52),
    28px 0 0 rgba(214, 168, 79, 0.3),
    0 14px 0 rgba(214, 168, 79, 0.42),
    14px 14px 0 rgba(214, 168, 79, 0.18),
    28px 14px 0 rgba(214, 168, 79, 0.12);
}

.site-motif--trail {
  left: 22px;
  bottom: 42px;
  width: 88px;
  height: 1px;
  background: linear-gradient(90deg, rgba(214, 168, 79, 0.48), transparent);
  box-shadow:
    0 10px 0 rgba(214, 168, 79, 0.18),
    0 20px 0 rgba(214, 168, 79, 0.1);
}

.site-motif--halo {
  top: 12%;
  left: 10%;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(214, 168, 79, 0.16);
  border-radius: 50%;
}

.site-motif--frame {
  right: 12%;
  bottom: 16%;
  width: 112px;
  height: 136px;
  border: 1px solid rgba(214, 168, 79, 0.16);
  transform: rotate(8deg);
}

.site-motif--capsule {
  top: 30%;
  right: 22px;
  width: 16px;
  height: 88px;
  border: 1px solid rgba(244, 234, 208, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(214, 168, 79, 0.16), rgba(214, 168, 79, 0.02));
}

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

hr {
  width: 70%;
  height: 1px;
  border: none;
  margin: 0 auto 25px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 0 0 200px 120px;
}

/* ================= HERO ================= */

.hero {
  min-height: calc(100vh - 240px);
  padding: 28px 56px 64px;
  position: relative;
}

.hero--poster {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-poster {
  position: relative;
  width: min(1160px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 38px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(15, 15, 20, 0.82), rgba(8, 8, 11, 0.64));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hero-poster__copy {
  position: relative;
  padding: 30px 26px 30px 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.hero-poster__copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(139, 30, 30, 0),
    rgba(139, 30, 30, 0.95),
    rgba(120, 160, 255, 0.78),
    rgba(120, 160, 255, 0)
  );
}

.hero-poster__mini {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(120, 160, 255, 0.22);
  background: rgba(120, 160, 255, 0.06);
  color: rgba(120, 160, 255, 0.84);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hero-poster__copy h1,
.hero-poster__copy h2 {
  line-height: 0.9;
  letter-spacing: 5px;
}

.hero-poster__copy h1 {
  font-size: clamp(58px, 11vw, 120px);
}

.hero-poster__copy h2 {
  font-size: clamp(52px, 10vw, 108px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(230, 230, 230, 0.48);
}

.hero-poster__eyebrow {
  margin-top: 20px;
  color: rgba(230, 230, 230, 0.84);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-poster__eyebrow {
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
}

.hero-poster__eyebrow::after {
  content: "DEVELOPPEUR WEB FULL STACK";
  display: block;
  color: rgba(230, 230, 230, 0.84);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-poster__note {
  --story-note-size: 15px;
  --story-note-line: 1.85;
  max-width: 34ch;
  margin-top: 14px;
  color: rgba(230, 230, 230, 0.74);
  font-size: 15px;
  line-height: 1.85;
}

.hero-poster__note--story {
  font-size: 0;
  line-height: 0;
}

.hero-poster__note--story span {
  display: block;
  font-size: var(--story-note-size);
  line-height: var(--story-note-line);
}

.hero-poster__note--story span + span {
  margin-top: 4px;
}

.hero-poster__copy .hero-actions {
  justify-content: flex-start;
  margin-top: 24px;
}

.hero-poster__visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(8, 8, 11, 0.08));
}

.hero-poster__halo {
  position: absolute;
  width: min(420px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(120, 160, 255, 0.14), transparent 54%),
    radial-gradient(circle at 34% 30%, rgba(139, 30, 30, 0.16), transparent 38%);
  filter: blur(16px);
}

.hero-poster__portrait {
  position: relative;
  width: min(100%, 360px);
  height: 470px;
  overflow: hidden;
  clip-path: polygon(12% 0, 100% 0, 100% 88%, 88% 100%, 0 100%, 0 12%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.28);
  filter: grayscale(1) contrast(1.08);
  background: rgba(14, 14, 18, 0.8);
}

.hero-poster__portrait::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  clip-path: polygon(8% 0, 100% 0, 100% 92%, 92% 100%, 0 100%, 0 8%);
  z-index: 2;
  pointer-events: none;
}

.hero-poster__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(139, 30, 30, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.68));
}

.hero-poster__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.96;
}

.hero-poster__badge {
  position: absolute;
  left: 0;
  bottom: 14%;
  transform: translateX(-8%);
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 10px 14px;
  border: 1px solid rgba(120, 160, 255, 0.28);
  background: rgba(11, 11, 15, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@media (max-width: 1023px) {
  .hero--poster {
    padding: 24px 34px 52px;
  }

  .hero-poster {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-poster__copy {
    order: 2;
  }

  .hero-poster__visual {
    order: 1;
    min-height: 460px;
  }

  .hero-poster__copy h1 {
    font-size: clamp(54px, 12vw, 92px);
  }

  .hero-poster__copy h2 {
    font-size: clamp(50px, 11vw, 86px);
  }

  .hero-poster__note {
    max-width: 42ch;
  }
}

@media (max-width: 767px) {
  .hero--poster {
    padding: 18px 18px 44px;
  }

  .hero-poster {
    gap: 20px;
  }

  .hero-poster__copy {
    padding-left: 16px;
  }

  .hero-poster__copy h1 {
    font-size: 46px;
    letter-spacing: 3px;
  }

  .hero-poster__copy h2 {
    font-size: 42px;
    letter-spacing: 3px;
  }

  .hero-poster__eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .hero-poster__note {
    font-size: 14px;
    line-height: 1.75;
  }

  .hero-poster__copy .hero-actions {
    justify-content: flex-start;
  }

  .hero-poster__visual {
    min-height: 360px;
  }

  .hero-poster__portrait {
    width: min(100%, 270px);
    height: 340px;
  }

  .hero-poster__badge {
    left: 50%;
    bottom: 8%;
    transform: translateX(-50%);
    font-size: 10px;
    letter-spacing: 1.5px;
  }
}

.hero--hanging {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(340px, 1fr) minmax(220px, 280px);
  align-items: start;
  justify-content: center;
  gap: 26px 24px;
}

.hero--hanging::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.hero--hanging::after {
  content: "";
  position: absolute;
  inset: 6% 18% 26% 18%;
  z-index: -1;
  background:
    radial-gradient(circle at 28% 26%, rgba(139, 30, 30, 0.2), transparent 30%),
    radial-gradient(circle at 72% 24%, rgba(120, 160, 255, 0.16), transparent 26%),
    radial-gradient(circle at 50% 58%, rgba(255, 255, 255, 0.04), transparent 30%);
  filter: blur(34px);
  opacity: 0.95;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(96px, 0, 0) scale(0.985);
  transition:
    opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
  transform-origin: right center;
}

.reveal-on-scroll.reveal {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.hero-board,
.hero-core {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-board__rope,
.hero-core__rope {
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22),
    rgba(214, 168, 79, 0.92),
    rgba(255, 255, 255, 0.24)
  );
  box-shadow: 0 0 10px rgba(214, 168, 79, 0.16);
}

.hero-board__rope {
  height: 96px;
}

.hero-core__rope {
  height: 66px;
}

.hero-board__pin,
.hero-core__pin,
.hero-chip__pin {
  width: 8px;
  height: 8px;
  margin: 6px 0 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.06);
}

.hero-board__card,
.hero-core__card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(20, 20, 27, 0.94), rgba(11, 11, 15, 0.98));
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.22);
}

.hero-board__card {
  width: 100%;
  min-height: 180px;
  padding: 22px 18px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
  transform-origin: top center;
}

.hero-board--left .hero-board__card {
  animation: swing 7.5s ease-in-out infinite;
}

.hero-board--right .hero-board__card {
  animation: swing 8.8s ease-in-out infinite;
  animation-delay: -1.1s;
}

.hero-board__card:hover {
  animation-play-state: paused;
}

.hero-board__kicker {
  color: rgba(120, 160, 255, 0.82);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-board__card strong {
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: 1px;
}

.hero-board__card span {
  color: rgba(230, 230, 230, 0.66);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-core {
  position: relative;
}

.hero-core__card {
  width: min(100%, 390px);
  padding: 18px 18px 24px;
  text-align: center;
  transform-origin: top center;
  animation: swing 9.5s ease-in-out infinite;
}

.hero-core__card:hover {
  animation-play-state: paused;
}

.hero-core__aside {
  display: none;
}

.hero-core__aside-kicker {
  margin-bottom: 10px;
  color: rgba(120, 160, 255, 0.82);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-core__aside-text {
  max-width: 22ch;
  color: rgba(230, 230, 230, 0.78);
  font-size: 15px;
  line-height: 1.8;
}

.portrait--hero {
  position: relative;
  width: min(100%, 290px);
  height: 340px;
  margin: 0 auto 18px;
  overflow: hidden;
  clip-path: polygon(14% 0, 100% 0, 100% 84%, 86% 100%, 0 100%, 0 16%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.26);
  filter: grayscale(1) contrast(1.1);
}

.portrait--hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
}

.portrait--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(139, 30, 30, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.7));
}

.hero-core__mini {
  margin-bottom: 8px;
  color: rgba(120, 160, 255, 0.84);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hero-core__card h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.98;
  letter-spacing: 4px;
}

.hero-core__tag {
  margin-top: 12px;
  color: rgba(230, 230, 230, 0.74);
  font-size: 14px;
  letter-spacing: 0.5px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.hero-link {
  border: 1px solid rgba(139, 30, 30, 0.72);
  padding: 12px 18px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-link:hover {
  background: rgba(139, 30, 30, 0.15);
  border-color: rgba(139, 30, 30, 1);
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.hero-link--ghost {
  border-color: rgba(120, 160, 255, 0.48);
}

.hero-link--ghost:hover {
  background: rgba(120, 160, 255, 0.12);
  border-color: rgba(120, 160, 255, 0.95);
}

.hero-chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  margin-top: -4px;
}

.hero-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-chip:nth-child(1) .hero-chip__label {
  animation: swing 7.2s ease-in-out infinite;
}

.hero-chip:nth-child(2) .hero-chip__label {
  animation: swing 8.1s ease-in-out infinite;
  animation-delay: -1s;
}

.hero-chip:nth-child(3) .hero-chip__label {
  animation: swing 9s ease-in-out infinite;
  animation-delay: -1.8s;
}

.hero-chip__rope {
  width: 2px;
  height: 38px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2),
    rgba(214, 168, 79, 0.88),
    rgba(255, 255, 255, 0.2)
  );
  box-shadow: 0 0 8px rgba(214, 168, 79, 0.14);
}

.hero-chip__label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 13, 18, 0.94);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transform-origin: top center;
}

/* ================= HEADER ================= */

.hanging-header {
  position: relative;
  height: 220px;
  padding-top: 20px;
  overflow: hidden;
  isolation: isolate;
}

.hanging-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(214, 168, 79, 0.18), transparent 20%),
    radial-gradient(circle at 84% 16%, rgba(139, 30, 30, 0.14), transparent 17%),
    radial-gradient(circle at 50% 82%, rgba(244, 234, 208, 0.06), transparent 26%),
    linear-gradient(180deg, rgba(8, 8, 11, 0.96), rgba(5, 6, 8, 0.86));
  pointer-events: none;
  z-index: 0;
}

.hanging-header > * {
  position: relative;
  z-index: 1;
}

.logo {
  text-align: center;
  letter-spacing: 6px;
  font-size: 18px;
}

.logo span {
  color: #8b1e1e;
}

.hanging-nav {
  display: flex;
  gap: 70px;
  justify-content: center;
  position: absolute;
  top: 0;
  width: 100%;
  isolation: isolate;
  z-index: 1;
}

.hanging-nav::before,
.hanging-nav::after {
  display: none;
}

.hanging-nav::before {
  content: "";
  position: absolute;
  inset: -10px 8px auto;
  height: 190px;
  background:
    radial-gradient(circle at 12% 18%, rgba(214, 168, 79, 0.12), transparent 18%),
    radial-gradient(circle at 50% 10%, rgba(244, 234, 208, 0.08), transparent 22%),
    radial-gradient(circle at 88% 20%, rgba(139, 30, 30, 0.1), transparent 16%),
    linear-gradient(
      90deg,
      transparent 0,
      transparent 20%,
      rgba(214, 168, 79, 0.06) 20%,
      rgba(214, 168, 79, 0.06) 20.5%,
      transparent 20.5%,
      transparent 79.5%,
      rgba(214, 168, 79, 0.06) 79.5%,
      rgba(214, 168, 79, 0.06) 80%,
      transparent 80%
  ),
    linear-gradient(180deg, rgba(8, 8, 11, 0.34), rgba(8, 8, 11, 0));
  pointer-events: none;
  z-index: 0;
}

.hanging-nav::after {
  content: "";
  position: absolute;
  inset: 10px 12% auto;
  height: 118px;
  border: 1px solid rgba(214, 168, 79, 0.08);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px rgba(214, 168, 79, 0.03),
    0 0 18px rgba(214, 168, 79, 0.05);
  pointer-events: none;
  z-index: 0;
}

.hanger {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  animation: swing 4.5s ease-in-out infinite;
  cursor: grab;
  touch-action: none;
  position: relative;
  z-index: 1;
  gap: 8px;
}

.hanger:nth-child(1) {
  animation-duration: 4s;
}

.hanger:nth-child(2) {
  animation-duration: 5.5s;
  animation-delay: -1s;
}

.hanger:nth-child(3) {
  animation-duration: 6.5s;
  animation-delay: -2s;
}

.hanger:nth-child(4) {
  animation-duration: 7.5s;
  animation-delay: -3s;
}

.string {
  width: 2px;
  height: 80px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.26),
    rgba(214, 168, 79, 0.94),
    rgba(255, 255, 255, 0.26)
  );
  box-shadow: 0 0 10px rgba(214, 168, 79, 0.16);
  opacity: 0.96;
  animation: rope 2.5s ease-in-out infinite alternate;
}

.pin {
  width: 8px;
  height: 8px;
  margin: 6px 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 14px;
  letter-spacing: 4px;
  opacity: 0.7;
  cursor: pointer;
  transition:
    color 0.28s ease,
    opacity 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease;
}

.hanger:hover {
  animation-play-state: paused;
  transform: rotate(0deg) translateY(6px) scale(1.05);
  filter: drop-shadow(0 10px 18px rgba(214, 168, 79, 0.08));
}

.hanger:hover .label {
  color: #8b1e1e;
  background: rgba(214, 168, 79, 0.1);
  border-color: rgba(214, 168, 79, 0.26);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  opacity: 1;
  transform: translateY(-1px);
}

.hanger:hover .string {
  background: rgba(139, 30, 30, 0.8);
  box-shadow: 0 0 16px rgba(139, 30, 30, 0.18);
}

.hanger:hover .pin {
  background: #8b1e1e;
  border-color: #8b1e1e;
  box-shadow: 0 0 0 4px rgba(139, 30, 30, 0.08);
}

.hanger.dragging,
.hanger.dragging .string {
  animation: none;
}

.lightning-line {
  width: 70%;
  margin: 0 auto 30px;
}

.lightning-line svg {
  width: 100%;
  height: 24px;
}

.lightning-line .bolt {
  fill: none;
  stroke: rgb(83, 70, 70);
  stroke-width: 1.4;
  stroke-dasharray: 10 14;
  animation: boltMove 1.2s linear infinite;
}

/* ================= PORTAL ================= */

#portal {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(27, 95, 254, 0.95) 0%,
    rgba(45, 96, 249, 0.9) 22%,
    rgba(20, 40, 120, 0.95) 48%,
    #000 72%
  );
  clip-path: circle(0% at 50% 50%);
  pointer-events: none;
  z-index: 9998;
  transition: clip-path 0.9s cubic-bezier(.7, 0, .3, 1);
}

#portal.active {
  clip-path: circle(150% at var(--x, 50%) var(--y, 50%));
  animation: blueFlash 1.2s ease-in-out;
}

.portal-item {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  transition:
    transform 0.8s cubic-bezier(.22, 1, .36, 1),
    opacity 0.5s ease;
}

/* ================= SECTIONS ================= */

.section-block {
  padding: 58px 0;
  scroll-margin-top: 32px;
}

.section-block--alt {
  background: linear-gradient(180deg, rgba(13, 13, 18, 0.88), rgba(8, 8, 11, 0.98));
}
html, body {
  overflow-x: hidden;
}
.section-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-kicker {
  margin-bottom: 10px;
  color: rgba(139, 30, 30, 0.92);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

#projects .section-heading {
  max-width: 100%;
  margin-bottom: 36px;
}

#projects .section-heading h2 {
  font-size: clamp(42px, 6.6vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.skills-grid,
.projects-grid,
.about-grid,
.contact-grid {
  display: grid;
  gap: 20px;
}

#projects {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(5, 12, 30, 0.98), rgba(10, 15, 28, 1));
}

#projects .section-shell {
  position: relative;
  z-index: 2;
}

.beacon-range {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 42%, rgba(255, 255, 255, 0.08), transparent 38%),
    radial-gradient(circle at 66% 30%, rgba(214, 168, 79, 0.16), transparent 34%),
    radial-gradient(circle at 48% 12%, rgba(132, 178, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(10, 18, 38, 0.46), rgba(8, 10, 20, 0.9));
}

.beacon-range::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 30, 52, 0.48), rgba(8, 10, 20, 0.92)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 25%, transparent 75%, rgba(255, 255, 255, 0.03));
  filter: blur(0.5px);
}

.beacon {
  position: absolute;
  bottom: -10%;
  width: 164px;
  height: 252px;
  transform-origin: center bottom;
  clip-path: polygon(39% 0%, 61% 0%, 64% 8%, 64% 16%, 74% 16%, 74% 24%, 68% 24%, 68% 100%, 32% 100%, 32% 24%, 26% 24%, 26% 16%, 36% 16%, 36% 8%);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.98) 0%, rgba(239, 216, 184, 0.96) 14%, rgba(200, 141, 74, 0.98) 48%, rgba(66, 44, 27, 0.98) 100%);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.38);
  opacity: 0.52;
}

.beacon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6%;
  transform: translateX(-50%);
  width: 62%;
  height: 16%;
  border-radius: 18px 18px 12px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 229, 204, 0.34) 100%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.78), transparent 68%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 18px rgba(214, 168, 79, 0.18);
  opacity: 0.72;
}

.beacon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 58%;
  height: 46px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.9), rgba(255, 248, 231, 0.2) 52%, transparent 74%);
  opacity: 0.6;
  filter: blur(0.2px);
}

.beacon--left {
  left: 15%;
  transform: translateX(-50%) scale(0.8) rotate(-5deg);
  opacity: 0.28;
}

.beacon--center {
  left: 50%;
  transform: translateX(-50%) scale(1.04);
  opacity: 0.58;
}

.beacon--right {
  left: 85%;
  transform: translateX(-50%) scale(0.88) rotate(6deg);
  opacity: 0.32;
}

.skills-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-grid {
  grid-template-columns: 1.2fr 1fr 0.9fr 0.9fr;
}

.contact-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.info-card,
.project-card,
.contact-card {
  position: relative;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(23, 23, 29, 0.96), rgba(12, 12, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.info-card::before,
.project-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(139, 30, 30, 0.95),
    rgba(120, 160, 255, 0.78),
    transparent
  );
}

.project-card {
  background: rgba(9, 17, 35, 0.7);
  border: 1px solid rgba(120, 160, 255, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  border-radius: 16px;
  overflow: visible;
  z-index: 2;
}

.project-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 108%;
  height: 108%;
  z-index: -1;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(180deg, #7d9ddc 0%, #4c73ae 46%, #1f335c 88%);
  border: 1px solid rgba(160, 190, 240, 0.4);
}

.project-card::before {
  left: 12%;
  right: 12%;
  height: 12px;
  top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.86), rgba(255,255,255,0.14));
}

.project-card::before {
  left: 12%;
  right: 12%;
  height: 10px;
  top: 18px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
}

.project-card .card-kicker,
.project-card h3,
.project-card p,
.project-card .stack-list {
  position: relative;
  z-index: 3;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}

.info-card:hover,
.project-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(120, 160, 255, 0.28);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.info-card--wide {
  grid-column: span 2;
}

.card-kicker {
  margin-bottom: 14px;
  color: rgba(120, 160, 255, 0.9);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tag-list,
.stack-list,
.detail-list {
  list-style: none;
}

.tag-list,
.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list li,
.stack-list li {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  letter-spacing: 0.4px;
}

.project-card h3 {
  font-size: 24px;
  line-height: 1.24;
  margin-bottom: 12px;
}

.project-card p + p {
  margin-top: 10px;
}

.stack-list {
  margin-top: 18px;
}

.detail-list {
  display: grid;
  gap: 18px;
}

.detail-list li {
  display: grid;
  gap: 6px;
}

.detail-list strong {
  font-size: 16px;
}

.detail-list span,
.detail-list p,
.about-copy,
.contact-label {
  color: rgba(230, 230, 230, 0.74);
}

.detail-list p,
.about-copy {
  font-size: 14px;
}

.detail-list--compact {
  gap: 12px;
}

.about-copy {
  max-width: 62ch;
  font-size: 15px;
}

.contact-card {
  display: grid;
  gap: 8px;
  min-height: 140px;
  align-content: center;
}

.contact-card strong {
  font-size: 24px;
  line-height: 1.25;
}

.contact-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contact-form {
  align-content: start;
  gap: 18px;
  min-height: auto;
}

.contact-form__kicker {
  margin-bottom: 0;
}

.contact-form__title {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.contact-form__text {
  max-width: 58ch;
  color: var(--theme-muted);
  font-size: 15px;
  line-height: 1.7;
}

.contact-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-field {
  display: grid;
  gap: 8px;
}

.contact-field--full {
  grid-column: 1 / -1;
}

.contact-field__label {
  color: var(--theme-muted);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contact-input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(214, 168, 79, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--theme-ink);
  font: inherit;
  letter-spacing: 0.2px;
  outline: none;
  transition:
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease;
}

.contact-input::placeholder {
  color: rgba(230, 230, 230, 0.4);
}

.contact-input:focus {
  border-color: rgba(214, 168, 79, 0.48);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(214, 168, 79, 0.08);
}

.contact-input--textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(214, 168, 79, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(24, 20, 16, 0.96), rgba(10, 10, 13, 0.98));
  color: #fff0cf;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.contact-submit:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 168, 79, 0.72);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
}

.contact-submit:disabled {
  opacity: 0.72;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.contact-form__status {
  min-height: 22px;
  margin-top: 4px;
  color: var(--theme-muted);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.contact-form__status--pending {
  color: rgba(214, 168, 79, 0.92);
}

.contact-form__status--success {
  color: #66d19e;
}

.contact-form__status--error {
  color: #ef7d7d;
}

.contact-quick {
  display: grid;
  align-content: start;
  gap: 18px;
}

.contact-card--info {
  display: grid;
  gap: 10px;
  min-height: 130px;
  align-content: center;
  text-decoration: none;
}

/* ================= ANIMATIONS ================= */

@keyframes swing {
  0% {
    transform: rotate(0deg) translateY(0);
  }
  20% {
    transform: rotate(3deg) translateY(-4px);
  }
  40% {
    transform: rotate(-5deg) translateY(-8px);
  }
  60% {
    transform: rotate(4deg) translateY(-6px);
  }
  80% {
    transform: rotate(-2deg) translateY(-3px);
  }
  100% {
    transform: rotate(0deg) translateY(0);
  }
}

@keyframes rope {
  from {
    height: 75px;
  }
  to {
    height: 88px;
  }
}

@keyframes boltMove {
  from {
    stroke-dashoffset: 0;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  40% {
    stroke-dashoffset: 40;
    opacity: 0.3;
  }
  60% {
    opacity: 0.8;
  }
  to {
    stroke-dashoffset: 120;
    opacity: 0;
  }
}

@keyframes blueFlash {
  0% {
    filter: brightness(1);
  }
  30% {
    filter: brightness(1.4);
  }
  60% {
    filter: brightness(0.9);
  }
  100% {
    filter: brightness(1);
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1023px) {
  .hero {
    padding: 24px 34px 52px;
  }

  .hero--hanging {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
  }

  .hero-core {
    grid-column: 1 / -1;
    max-width: 390px;
    margin: 0 auto;
  }

  .hero-chips {
    grid-column: 1 / -1;
  }

  .hero-board__rope {
    height: 76px;
  }

  .section-shell {
    width: min(980px, calc(100% - 36px));
  }

  .skills-grid,
  .projects-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-card--wide {
    grid-column: span 2;
  }

  .hanging-nav {
    gap: 40px;
  }

  .string {
    height: 65px;
  }

  .label {
    font-size: 12px;
  }
}

@media (min-width: 1024px) {
  .hero--hanging {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hero--hanging .hero-board,
  .hero--hanging .hero-core__mini,
  .hero--hanging .hero-core__card h1,
  .hero--hanging .hero-core__tag,
  .hero--hanging .hero-actions {
    display: none;
  }

  .hero-core__rope {
    height: 40px;
  }

  .hero-core {
    max-width: none;
  }

  .hero-core__card {
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    animation: none;
    display: grid;
    grid-template-columns: auto minmax(220px, 280px);
    align-items: center;
    gap: 24px;
    text-align: left;
  }

  .hero-core__card:hover {
    animation-play-state: running;
  }

  .hero-core__aside {
    display: grid;
    gap: 0;
  }

  .portrait--hero {
    margin-bottom: 0;
  }

  .hero-chips {
    margin-top: 18px;
  }
}

@media (max-width: 767px) {
  hr {
    opacity: 0.4;
  }

  .hero {
    padding: 18px 18px 44px;
  }

  .hero--hanging {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-core {
    order: 1;
  }

  .hero-board--left {
    order: 2;
  }

  .hero-board--right {
    order: 3;
  }

  .hero-chips {
    order: 4;
    margin-top: 0;
    gap: 12px;
  }

  .hero--hanging::before {
    left: 16%;
    right: 16%;
  }

  .hero-core__rope {
    height: 46px;
  }

  .hero-board__rope {
    height: 52px;
  }

  .hero-core__card {
    width: min(100%, 340px);
    padding: 14px 14px 20px;
  }

  .hero-core__card h1 {
    font-size: 34px;
    letter-spacing: 3px;
  }

  .portrait--hero {
    width: min(100%, 248px);
    height: 300px;
  }

  .hero-core__tag {
    font-size: 13px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-board__card {
    min-height: 150px;
    padding: 18px 14px;
  }

  .hero-board__card strong {
    font-size: 18px;
  }

  .hero-chip__rope {
    height: 26px;
  }

  .hero-chip__label {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 10px;
  }

  .hanging-header {
    height: auto;
    padding-bottom: 40px;
  }

  .logo {
    margin-bottom: 20px;
  }

  .hanging-nav {
    position: relative;
    flex-direction: column;
    align-items: center;
    gap: 26px;
  }

  .string {
    height: 45px;
  }

  .label {
    font-size: 10px;
    letter-spacing: 3px;
  }

  .section-block {
    padding: 42px 0;
  }

  .section-shell {
    width: min(100%, calc(100% - 28px));
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .skills-grid,
  .projects-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .info-card--wide {
    grid-column: auto;
  }

  .contact-card strong {
    font-size: 20px;
  }
}

/* ================= POSTER FINAL OVERRIDES ================= */

@media (max-width: 1023px) {
  .hero--poster {
    min-height: auto;
    padding: 24px 22px 48px;
  }

  .hero--poster .hero-poster {
    max-width: 760px;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
  }

  .hero--poster .hero-poster::after {
    inset: 9px;
  }

  .hero--poster .hero-poster__visual {
    order: 1;
    min-height: auto;
    padding: 18px;
  }

  .hero--poster .hero-poster__copy {
    order: 2;
    padding: 22px 18px 20px;
    text-align: center;
  }

  .hero--poster .hero-poster__copy::before {
    left: 18px;
    right: 18px;
    top: 0;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(
      90deg,
      rgba(139, 30, 30, 0),
      rgba(139, 30, 30, 0.95),
      rgba(120, 160, 255, 0.78),
      rgba(120, 160, 255, 0)
    );
  }

  .hero--poster .hero-poster__mini,
  .hero--poster .hero-poster__eyebrow,
  .hero--poster .hero-poster__note {
    margin-left: auto;
    margin-right: auto;
  }

  .hero--poster .hero-poster__copy h1 {
    font-size: clamp(52px, 12vw, 86px);
    letter-spacing: 3px;
  }

  .hero--poster .hero-poster__copy h2 {
    font-size: clamp(46px, 11vw, 78px);
    letter-spacing: 3px;
  }

  .hero--poster .hero-poster__note {
    max-width: 34ch;
  }

  .hero--poster .hero-poster__copy .hero-actions {
    justify-content: center;
  }

  .hero--poster .hero-poster__portrait {
    width: min(100%, 320px);
    height: 400px;
  }

  .hero--poster .hero-poster__badge {
    position: static;
    transform: none;
    margin-top: 14px;
  }
}

@media (max-width: 767px) {
  .hero--poster {
    padding: 18px 16px 40px;
  }

  .hero--poster .hero-poster {
    gap: 16px;
    padding: 16px;
  }

  .hero--poster .hero-poster::after {
    inset: 6px;
  }

  .hero--poster .hero-poster__copy {
    padding: 18px 14px 16px;
  }

  .hero--poster .hero-poster__visual {
    padding: 14px;
  }

  .hero--poster .hero-poster__copy h1 {
    font-size: 42px;
    letter-spacing: 2px;
  }

  .hero--poster .hero-poster__copy h2 {
    font-size: 38px;
    letter-spacing: 2px;
  }

  .hero--poster .hero-poster__eyebrow {
    font-size: 0;
    line-height: 0;
    letter-spacing: 0;
  }

  .hero--poster .hero-poster__eyebrow::after {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .hero--poster .hero-poster__note {
    --story-note-size: 13px;
    --story-note-line: 1.7;
    max-width: 28ch;
    font-size: 13px;
    line-height: 1.7;
  }

  .hero--poster .hero-poster__note--story {
    font-size: 0;
    line-height: 0;
  }

  .hero--poster .hero-poster__portrait {
    width: min(100%, 250px);
    height: 320px;
  }

  .hero--poster .hero-poster__badge {
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    font-size: 10px;
    letter-spacing: 1.2px;
    text-align: center;
  }

  .hero--poster .hero-actions {
    display: grid;
    gap: 10px;
    width: 100%;
  }

  .hero--poster .hero-link {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ================= ATELIER HERO ================= */

.hero--atelier {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 48px 64px;
  isolation: isolate;
}

.hero--atelier::before {
  content: "";
  position: absolute;
  top: clamp(18px, 4vw, 42px);
  left: clamp(16px, 4vw, 48px);
  width: min(84vw, 1040px);
  aspect-ratio: 1.618 / 1;
  border: 1px solid rgba(214, 168, 79, 0.12);
  background:
    linear-gradient(
      90deg,
      transparent 0,
      transparent 38.2%,
      rgba(214, 168, 79, 0.11) 38.2%,
      rgba(214, 168, 79, 0.11) calc(38.2% + 1px),
      transparent calc(38.2% + 1px),
      transparent 61.8%,
      rgba(214, 168, 79, 0.16) 61.8%,
      rgba(214, 168, 79, 0.16) calc(61.8% + 1px),
      transparent calc(61.8% + 1px)
    ),
    linear-gradient(
      180deg,
      transparent 0,
      transparent 38.2%,
      rgba(214, 168, 79, 0.11) 38.2%,
      rgba(214, 168, 79, 0.11) calc(38.2% + 1px),
      transparent calc(38.2% + 1px),
      transparent 61.8%,
      rgba(214, 168, 79, 0.16) 61.8%,
      rgba(214, 168, 79, 0.16) calc(61.8% + 1px),
      transparent calc(61.8% + 1px)
    ),
    radial-gradient(circle at 61.8% 38.2%, rgba(214, 168, 79, 0.12), transparent 20%);
  box-shadow:
    inset 0 0 0 1px rgba(214, 168, 79, 0.04),
    0 0 24px rgba(214, 168, 79, 0.08);
  pointer-events: none;
  opacity: 0.88;
  z-index: 0;
}

.hero--atelier::after {
  content: "";
  position: absolute;
  top: clamp(34px, 6vw, 78px);
  right: clamp(6px, 5vw, 44px);
  width: min(64vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(214, 168, 79, 0.12);
  border-radius: 50%;
  clip-path: inset(0 38.2% 38.2% 0);
  box-shadow: 0 0 22px rgba(214, 168, 79, 0.08);
  opacity: 0.78;
  pointer-events: none;
  z-index: 0;
}

.hero--atelier > .hero-poster {
  display: none;
}

.hero-atelier {
  position: relative;
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 26px;
  z-index: 1;
  overflow-x: clip;
}

.hero-atelier__intro,
.hero-atelier__visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(14, 14, 18, 0.88), rgba(8, 8, 11, 0.72));
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
}

.hero-atelier__intro::before,
.hero-atelier__visual::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hero-atelier__intro::after,
.hero-atelier__visual::after {
  content: "";
  position: absolute;
  width: min(62%, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(214, 168, 79, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(214, 168, 79, 0.06);
  pointer-events: none;
}

.hero-atelier__intro {
  min-height: 600px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  background:
    linear-gradient(140deg, rgba(196, 148, 84, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(15, 15, 19, 0.92), rgba(9, 9, 12, 0.82));
}

.hero-atelier__intro::after {
  right: -18%;
  bottom: -14%;
  clip-path: inset(38.2% 0 0 38.2%);
  opacity: 0.72;
}

.hero-atelier__copy {
  max-width: 35rem;
}

.hero-atelier__kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(214, 168, 79, 0.22);
  background: rgba(214, 168, 79, 0.07);
  color: rgba(234, 205, 142, 0.92);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-atelier__title {
  margin-top: 22px;
}

.hero-atelier__title h1,
.hero-atelier__title h2 {
  line-height: 0.88;
}

.hero-atelier__title h1 {
  font-size: clamp(52px, 9vw, 104px);
  letter-spacing: 2px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-atelier__title h2 {
  font-size: clamp(56px, 8vw, 92px);
  letter-spacing: 5px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(230, 230, 230, 0.5);
}

html[lang="fr"] .hero-atelier__title h1 {
  font-size: clamp(42px, 7.2vw, 82px);
  letter-spacing: 1px;
}

.hero-atelier__role {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(214, 168, 79, 0.22);
  background: rgba(214, 168, 79, 0.06);
  color: rgba(240, 232, 214, 0.96);
  font-size: clamp(13px, 1.45vw, 18px);
  letter-spacing: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-atelier__summary {
  max-width: 34ch;
  margin-top: 16px;
  color: rgba(230, 230, 230, 0.76);
  font-size: 17px;
  line-height: 1.8;
}

.hero-atelier__actions {
  justify-content: flex-start;
  margin: 0;
}

.hero-atelier__lang-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 6px 0 2px;
}

.hero-atelier__rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hero-atelier__rail span {
  min-height: 62px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(230, 230, 230, 0.82);
  display: flex;
  align-items: flex-end;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-atelier__visual {
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(240px, 0.92fr) minmax(210px, 0.68fr);
  align-items: center;
  justify-content: center;
  gap: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero-atelier__visual::after {
  left: -12%;
  top: -10%;
  clip-path: inset(0 38.2% 38.2% 0);
}

.hero-atelier__portrait-shell {
  position: relative;
  width: min(100%, 360px);
  min-height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border: none;
  background: transparent;
  box-shadow: none;
}

.hero-atelier__note {
  position: relative;
  z-index: 2;
  max-width: 272px;
  justify-self: start;
  align-self: center;
  margin-left: -44px;
  padding: 24px 22px 22px;
  border: 1px solid rgba(214, 168, 79, 0.24);
  background:
    linear-gradient(160deg, rgba(214, 168, 79, 0.08), rgba(214, 168, 79, 0) 44%),
    linear-gradient(180deg, rgba(18, 14, 11, 0.96), rgba(10, 10, 12, 0.9));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

.hero-atelier__note::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(240, 232, 214, 0.08);
  pointer-events: none;
}

.hero-atelier__note::after {
  content: "";
  position: absolute;
  top: 28px;
  left: -42px;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, rgba(214, 168, 79, 0.64), transparent);
}

.hero-atelier__note-label,
.hero-atelier__note-name,
.hero-atelier__note-text {
  position: relative;
  z-index: 1;
}

.hero-atelier__note-label {
  color: rgba(234, 205, 142, 0.82);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-atelier__note-name {
  margin-top: 12px;
  color: rgba(240, 232, 214, 0.92);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-atelier__note-text {
  margin-top: 14px;
  color: rgba(230, 230, 230, 0.8);
  font-size: 15px;
  line-height: 1.8;
}

.hero-atelier__actions .hero-link {
  border-color: rgba(214, 168, 79, 0.4);
  background: rgba(214, 168, 79, 0.05);
  color: rgba(240, 232, 214, 0.94);
}

.hero-atelier__actions .hero-link:hover {
  background: rgba(214, 168, 79, 0.12);
  border-color: rgba(214, 168, 79, 0.7);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
}

.hero-atelier__actions .hero-link--ghost {
  border-color: rgba(240, 232, 214, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.hero-atelier__actions .hero-link--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(214, 168, 79, 0.4);
}

.hero-atelier__portrait-shell::after {
  display: none;
}

.hero-atelier__portrait-wrap {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 0.76;
  overflow: hidden;
  border: none;
  background: transparent;
  box-shadow: none;
  transform: rotate(-2deg);
  -webkit-mask-image: none;
  mask-image: none;
}

.hero-atelier__portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
  filter: none;
  mix-blend-mode: normal;
}

.hero-atelier__badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 9, 12, 0.92);
  color: rgba(230, 230, 230, 0.86);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-atelier__badge--top {
  top: 18px;
  left: 18px;
}

.hero-atelier__badge--bottom {
  right: 18px;
  bottom: 18px;
}

.hero-atelier__stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-atelier__card {
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-atelier__card span {
  color: rgba(120, 160, 255, 0.82);
  font-size: 11px;
  letter-spacing: 2px;
}

.hero-atelier__card p {
  color: rgba(230, 230, 230, 0.82);
  font-size: 14px;
}

@media (max-width: 1023px) {
  .hero--atelier {
    min-height: auto;
    padding: 24px 22px 48px;
  }

  .hero--atelier::before {
    left: 22px;
    width: calc(100% - 44px);
  }

  .hero--atelier::after {
    top: 44px;
    right: -26px;
    width: min(72vw, 540px);
  }

  .hero-atelier {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-atelier__visual {
    order: 1;
  }

  .hero-atelier__intro,
  .hero-atelier__visual {
    padding: 24px;
  }

  .hero-atelier__visual {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
    padding-bottom: 30px;
  }

  .hero-atelier__intro {
    order: 2;
    min-height: auto;
    gap: 24px;
  }

  .hero-atelier__intro::after,
  .hero-atelier__visual::after {
    width: min(52%, 280px);
  }

  .hero-atelier__title h1 {
    font-size: clamp(44px, 10vw, 76px);
  }

  .hero-atelier__title h2 {
    font-size: clamp(42px, 8vw, 70px);
  }

  .hero-atelier__note {
    width: min(100%, 420px);
    max-width: 420px;
    justify-self: center;
    margin: 18px auto 0;
    text-align: center;
  }

  .hero-atelier__note::after {
    top: -1px;
    left: 50%;
    right: auto;
    width: 88px;
    transform: translateX(-50%);
  }

  .hero-atelier__rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hero--atelier {
    padding: 18px 16px 40px;
  }

  .hero--atelier::before {
    top: 24px;
    left: 12px;
    width: calc(100% - 24px);
  }

  .hero--atelier::after {
    top: 28px;
    right: -42px;
    width: 250px;
  }

  .hero-atelier {
    position: relative;
    gap: 0;
    padding-top: 22px;
  }

  .hero-atelier::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    transform: translateX(-50%);
    background:
      radial-gradient(circle, rgba(214, 168, 79, 0.14), rgba(214, 168, 79, 0) 68%);
    filter: blur(10px);
    pointer-events: none;
  }

  .hero-atelier__intro,
  .hero-atelier__visual {
    padding: 18px;
  }

  .hero-atelier__visual {
    order: 1;
    min-height: auto;
    padding: 0 20px 12px;
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    z-index: 2;
  }

  .hero-atelier__visual::before {
    display: none;
  }

  .hero-atelier__intro {
    order: 2;
    margin-top: -38px;
    padding: 92px 18px 18px;
    gap: 18px;
    text-align: center;
    z-index: 1;
  }

  .hero-atelier__intro::before,
  .hero-atelier__visual::before {
    inset: 8px;
  }

  .hero-atelier__intro::after {
    width: 180px;
    right: -54px;
    bottom: -34px;
  }

  .hero-atelier__visual::after {
    width: 210px;
    left: -58px;
    top: -26px;
  }

  .hero-atelier__copy {
    margin-inline: auto;
  }

  .hero-atelier__kicker {
    margin-inline: auto;
    min-height: 30px;
    padding-inline: 10px;
    font-size: 10px;
    letter-spacing: 2px;
  }

  .hero-atelier__title h1 {
    font-size: 34px;
    letter-spacing: 1px;
  }

  .hero-atelier__title h2 {
    font-size: 36px;
    letter-spacing: 3px;
  }

  .hero-atelier__role {
    margin-top: 16px;
    font-size: 10px;
    letter-spacing: 2px;
  }

  .hero-atelier__summary {
    position: relative;
    max-width: 25ch;
    margin: 16px auto 0;
    padding: 18px 16px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    font-size: 14px;
    line-height: 1.75;
  }

  .hero-atelier__summary::before {
    content: "\"";
    position: absolute;
    top: -16px;
    left: 12px;
    color: rgba(214, 168, 79, 0.28);
    font-size: 64px;
    line-height: 1;
  }

  .hero-atelier__actions {
    display: grid;
    gap: 10px;
    width: 100%;
    margin-top: 2px;
  }

  .hero-atelier__actions .hero-link {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    text-align: center;
  }

  .hero-atelier__actions .hero-link:first-child {
    background: rgba(230, 217, 189, 0.92);
    border-color: rgba(230, 217, 189, 0.92);
    color: #111116;
  }

  .hero-atelier__actions .hero-link.hero-link--ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(214, 168, 79, 0.28);
    color: rgba(230, 230, 230, 0.9);
  }

  .hero-atelier__portrait-shell {
    width: min(100%, 310px);
    min-height: auto;
    margin-inline: auto;
    padding: 18px;
    background: transparent;
    box-shadow: none;
  }

  .hero-atelier__portrait-shell::after {
    inset: 8px;
  }

  .hero-atelier__portrait-wrap {
    width: min(100%, 236px);
    transform: rotate(-4deg);
    background: transparent;
  }

  .hero-atelier__note {
    width: min(100%, 250px);
    justify-self: center;
    margin: -22px auto 0;
    padding: 18px 16px 16px;
  }

  .hero-atelier__note::before {
    inset: 8px;
  }

  .hero-atelier__note::after {
    display: none;
  }

  .hero-atelier__note-label {
    font-size: 9px;
    letter-spacing: 2.4px;
  }

  .hero-atelier__note-name {
    margin-top: 10px;
    font-size: 11px;
    letter-spacing: 1.8px;
  }

  .hero-atelier__note-text {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.7;
  }
}

/* ================= GLOBAL GOLD THEME ================= */

body {
  --theme-accent: rgba(214, 168, 79, 1);
  --theme-accent-soft: rgba(214, 168, 79, 0.08);
  --theme-accent-line: rgba(214, 168, 79, 0.22);
  --theme-ink: rgba(240, 232, 214, 0.94);
  --theme-muted: rgba(230, 220, 198, 0.72);
  --theme-panel-top: rgba(24, 20, 15, 0.96);
  --theme-panel-bottom: rgba(11, 10, 8, 0.98);
}

hr {
  background: rgba(214, 168, 79, 0.32);
}

.logo,
.label,
.section-heading h2,
.project-card h3,
.detail-list strong,
.contact-card strong {
  color: var(--theme-ink);
}

.logo span,
.section-kicker,
.card-kicker,
.contact-label,
.hero-board__kicker,
.hero-core__mini {
  color: rgba(234, 205, 142, 0.92);
}

.string,
.hero-board__rope,
.hero-core__rope,
.hero-chip__rope {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(214, 168, 79, 0.5),
    rgba(255, 255, 255, 0.08)
  );
}

.pin,
.hero-board__pin,
.hero-core__pin,
.hero-chip__pin {
  border-color: rgba(214, 168, 79, 0.42);
  background: rgba(214, 168, 79, 0.08);
}

.label {
  opacity: 0.82;
}

.hanger:hover .label {
  color: rgba(244, 224, 170, 0.98);
}

.hanger:hover .string {
  background: rgba(214, 168, 79, 0.9);
}

.hanger:hover .pin {
  background: rgba(214, 168, 79, 0.9);
  border-color: rgba(214, 168, 79, 0.9);
}

.lightning-line .bolt {
  stroke: rgba(214, 168, 79, 0.72);
  opacity: 0.82;
}

.section-block--alt {
  background: linear-gradient(180deg, rgba(18, 15, 11, 0.9), rgba(8, 8, 9, 0.98));
}

.info-card,
.project-card,
.contact-card,
.hero-board__card,
.hero-core__card,
.hero-chip__label {
  border-color: rgba(214, 168, 79, 0.14);
  background:
    linear-gradient(180deg, var(--theme-panel-top), var(--theme-panel-bottom));
}

.info-card::before,
.project-card::before,
.contact-card::before {
  background: linear-gradient(
    90deg,
    rgba(214, 168, 79, 0.96),
    rgba(244, 234, 208, 0.72),
    transparent
  );
}

.info-card:hover,
.project-card:hover,
.contact-card:hover {
  border-color: rgba(214, 168, 79, 0.34);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
}

.hero-board__card span,
.hero-core__tag,
.detail-list span,
.detail-list p,
.about-copy,
.contact-label {
  color: var(--theme-muted);
}

.tag-list li,
.stack-list li {
  border-color: rgba(214, 168, 79, 0.18);
  background: rgba(214, 168, 79, 0.06);
  color: var(--theme-ink);
}

.hero-link {
  border-color: rgba(214, 168, 79, 0.44);
  background: rgba(214, 168, 79, 0.05);
  color: var(--theme-ink);
}

.hero-link:hover {
  background: rgba(214, 168, 79, 0.14);
  border-color: rgba(214, 168, 79, 0.76);
}

.hero-link--ghost {
  border-color: rgba(240, 232, 214, 0.16);
  background: rgba(255, 255, 255, 0.02);
}

.hero-link--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(214, 168, 79, 0.42);
}

/* ================= LIGHT SITE OVERRIDES ================= */

body {
  background:
    radial-gradient(circle at 20% 15%, rgba(139, 30, 30, 0.14), transparent 24%),
    radial-gradient(circle at 80% 12%, rgba(214, 168, 79, 0.1), transparent 20%),
    linear-gradient(180deg, #09090c 0%, #0d0d12 48%, #08080a 100%);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(96px, 0, 0) scale(0.985);
  transition:
    opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
  transform-origin: right center;
}

.reveal-on-scroll.reveal {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.hanger,
.string,
.lightning-line .bolt,
.hero-board--left .hero-board__card,
.hero-board--right .hero-board__card,
.hero-core__card,
.hero-chip:nth-child(1) .hero-chip__label,
.hero-chip:nth-child(2) .hero-chip__label,
.hero-chip:nth-child(3) .hero-chip__label {
  animation: none !important;
}

.lightning-line .bolt {
  stroke-dasharray: none;
  opacity: 0.45;
}

.hero--atelier::before,
.hero--atelier::after,
.hero-atelier__intro::after,
.hero-atelier__visual::after {
  box-shadow: none;
}

.hero-atelier__intro::after,
.hero-atelier__visual::after {
  display: none;
}

.hero--atelier::before {
  display: block;
  top: clamp(20px, 4vw, 42px);
  left: clamp(16px, 4vw, 46px);
  width: min(82vw, 940px);
  aspect-ratio: 1.618 / 1;
  border: 1px solid rgba(214, 168, 79, 0.11);
  background:
    linear-gradient(
      90deg,
      transparent 0,
      transparent 38.2%,
      rgba(214, 168, 79, 0.12) 38.2%,
      rgba(214, 168, 79, 0.12) calc(38.2% + 1px),
      transparent calc(38.2% + 1px),
      transparent 61.8%,
      rgba(214, 168, 79, 0.18) 61.8%,
      rgba(214, 168, 79, 0.18) calc(61.8% + 1px),
      transparent calc(61.8% + 1px)
    ),
    linear-gradient(
      180deg,
      transparent 0,
      transparent 38.2%,
      rgba(214, 168, 79, 0.12) 38.2%,
      rgba(214, 168, 79, 0.12) calc(38.2% + 1px),
      transparent calc(38.2% + 1px),
      transparent 61.8%,
      rgba(214, 168, 79, 0.18) 61.8%,
      rgba(214, 168, 79, 0.18) calc(61.8% + 1px),
      transparent calc(61.8% + 1px)
    ),
    radial-gradient(circle at 61.8% 38.2%, rgba(214, 168, 79, 0.1), transparent 16%);
  opacity: 0.74;
}

.hero--atelier::after {
  display: block;
  top: clamp(54px, 8vw, 90px);
  left: clamp(22px, 7vw, 78px);
  width: 16px;
  height: 16px;
  border: 1px solid rgba(244, 234, 208, 0.74);
  border-radius: 2px;
  clip-path: none;
  background: rgba(214, 168, 79, 0.3);
  box-shadow:
    0 0 0 1px rgba(214, 168, 79, 0.18),
    0 0 16px rgba(214, 168, 79, 0.18);
  opacity: 0.96;
  animation: phiCellMove 7.8s ease-in-out infinite;
}

.hero-atelier__intro,
.hero-atelier__visual,
.hero-atelier__note,
.info-card,
.project-card,
.contact-card,
.hero-board__card,
.hero-core__card,
.hero-chip__label {
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.16);
}

.info-card:hover,
.project-card:hover,
.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.hero-atelier__intro {
  background: linear-gradient(180deg, rgba(17, 14, 11, 0.94), rgba(9, 9, 11, 0.84));
}

.hero-atelier__visual {
  min-height: auto;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.hero-atelier__portrait-shell {
  background: transparent;
}

.hero-atelier__portrait-wrap {
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.14);
}

.hero-atelier__visual::before {
  display: none;
}

.hero-atelier__copy,
.hero-atelier__actions,
.hero-atelier__portrait-shell,
.hero-atelier__note {
  position: relative;
  z-index: 2;
}

.hero-atelier__motifs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-atelier__motif {
  position: absolute;
  display: block;
}

.hero-atelier__motif--corner {
  top: 26px;
  right: 26px;
  width: 82px;
  height: 82px;
  border-top: 1px solid rgba(214, 168, 79, 0.28);
  border-right: 1px solid rgba(214, 168, 79, 0.28);
}

.hero-atelier__motif--dots {
  top: 80px;
  right: 82px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(244, 234, 208, 0.86);
  box-shadow:
    14px 0 0 rgba(214, 168, 79, 0.56),
    28px 0 0 rgba(214, 168, 79, 0.32),
    0 14px 0 rgba(214, 168, 79, 0.46),
    14px 14px 0 rgba(214, 168, 79, 0.22),
    28px 14px 0 rgba(214, 168, 79, 0.14);
}

.hero-atelier__motif--trail {
  left: 30px;
  bottom: 54px;
  width: 94px;
  height: 1px;
  background: linear-gradient(90deg, rgba(214, 168, 79, 0.52), transparent);
  box-shadow:
    0 10px 0 rgba(214, 168, 79, 0.22),
    0 20px 0 rgba(214, 168, 79, 0.12);
}

.hero-atelier__motif--halo {
  top: 12%;
  left: 8%;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(214, 168, 79, 0.18);
  border-radius: 50%;
}

.hero-atelier__motif--frame {
  right: 9%;
  bottom: 14%;
  width: 124px;
  height: 154px;
  border: 1px solid rgba(214, 168, 79, 0.18);
  transform: rotate(8deg);
}

.hero-atelier__motif--capsule {
  top: 28%;
  right: 28px;
  width: 18px;
  height: 96px;
  border: 1px solid rgba(244, 234, 208, 0.3);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(214, 168, 79, 0.18), rgba(214, 168, 79, 0.02));
}

@media (min-width: 1024px) {
  .hero-atelier__motifs--intro {
    inset: 24px 24px 24px 24px;
  }

  .hero-atelier__motifs--visual {
    inset: 20px;
  }

  .hero-atelier__motifs--intro .hero-atelier__motif--corner {
    top: 2px;
    right: 6px;
    width: 72px;
    height: 72px;
    border-top-color: rgba(214, 168, 79, 0.34);
    border-right-color: rgba(214, 168, 79, 0.34);
  }

  .hero-atelier__motifs--intro .hero-atelier__motif--dots {
    top: 44px;
    right: 40px;
    transform: scale(0.92);
    transform-origin: top right;
    opacity: 0.94;
  }

  .hero-atelier__motifs--intro .hero-atelier__motif--trail {
    left: 6px;
    bottom: 18px;
    width: 118px;
    background: linear-gradient(90deg, rgba(214, 168, 79, 0.62), transparent 82%);
    box-shadow:
      0 10px 0 rgba(214, 168, 79, 0.2),
      0 20px 0 rgba(214, 168, 79, 0.1);
  }

  .hero-atelier__motifs--visual .hero-atelier__motif--halo {
    top: 50%;
    left: 50%;
    width: min(54%, 268px);
    height: min(54%, 268px);
    transform: translate(-50%, -52%);
    border-color: rgba(214, 168, 79, 0.22);
    box-shadow: 0 0 28px rgba(214, 168, 79, 0.08);
  }

  .hero-atelier__motifs--visual .hero-atelier__motif--frame {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: min(56%, 278px);
    height: min(76%, 362px);
    transform: translate(-50%, -50%) rotate(7deg);
    border-color: rgba(214, 168, 79, 0.24);
  }

  .hero-atelier__motifs--visual .hero-atelier__motif--capsule {
    top: 50%;
    right: clamp(4px, 5%, 24px);
    width: 16px;
    height: 108px;
    transform: translateY(-50%);
    border-color: rgba(244, 234, 208, 0.34);
    background:
      linear-gradient(180deg, rgba(214, 168, 79, 0.24), rgba(214, 168, 79, 0.04));
    box-shadow: 0 0 0 1px rgba(214, 168, 79, 0.08);
  }
}

@keyframes phiCellMove {
  0%,
  100% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 0.42;
  }
  24% {
    transform: translateX(clamp(120px, 24vw, 320px)) translateY(0) scale(1.08);
    opacity: 1;
  }
  50% {
    transform:
      translateX(clamp(120px, 24vw, 320px))
      translateY(clamp(88px, 13vw, 170px))
      scale(0.96);
    opacity: 0.62;
  }
  76% {
    transform: translateX(0) translateY(clamp(88px, 13vw, 170px)) scale(1.06);
    opacity: 0.92;
  }
}

@media (max-width: 767px) {
  .hero--atelier::before {
    top: 22px;
    left: 12px;
    width: calc(100% - 24px);
  }

  .hero--atelier::after {
    top: 44px;
    left: 22px;
    width: 14px;
    height: 14px;
    animation-duration: 6.8s;
  }

  .hero-atelier__motif--corner {
    width: 56px;
    height: 56px;
    top: 18px;
    right: 18px;
  }

  .hero-atelier__motif--dots {
    top: 58px;
    right: 54px;
    transform: scale(0.8);
    transform-origin: top right;
  }

  .hero-atelier__motif--trail {
    left: 18px;
    bottom: 34px;
    width: 66px;
  }

  .hero-atelier__motif--halo {
    width: 124px;
    height: 124px;
    top: 10%;
    left: 6%;
  }

  .hero-atelier__motif--frame {
    display: none;
  }

  .hero-atelier__motif--capsule {
    right: 12px;
    width: 14px;
    height: 66px;
  }
}

/* ================= SECTION VISIBILITY ================= */

.lightning-line,
.hanging-header {
  display: block;
}

#skills,
#projects,
#about,
#contact {
  display: block;
}

/* ================= PROJECT MOUNTAINS ================= */

#projects {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(214, 168, 79, 0.16), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(139, 30, 30, 0.12), transparent 16%),
    radial-gradient(circle at 50% 82%, rgba(244, 234, 208, 0.06), transparent 22%),
    linear-gradient(180deg, #060607 0%, #09090d 48%, #050506 100%);
}

#projects::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(214, 168, 79, 0.12), transparent 20%),
    radial-gradient(circle at 84% 16%, rgba(139, 30, 30, 0.1), transparent 17%),
    radial-gradient(circle at 50% 82%, rgba(244, 234, 208, 0.04), transparent 26%);
  opacity: 0.82;
  pointer-events: none;
  z-index: 0;
}

#projects .section-shell {
  position: relative;
  z-index: 2;
}

.projects-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 24px;
}

.project-card {
  --beacon-height: 240px;
  position: relative;
  min-height: calc(var(--beacon-height) + 210px);
  padding: calc(var(--beacon-height) + 24px) 20px 22px;
  border: 1px solid rgba(214, 168, 79, 0.16);
  border-radius: 28px 28px 22px 22px;
  background: linear-gradient(180deg, rgba(10, 15, 27, 0.9), rgba(4, 5, 9, 0.98));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.26);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 0;
  height: var(--beacon-height);
  clip-path: polygon(39% 0%, 61% 0%, 64% 8%, 64% 16%, 74% 16%, 74% 24%, 68% 24%, 68% 100%, 32% 100%, 32% 24%, 26% 24%, 26% 16%, 36% 16%, 36% 8%);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.98) 0%, rgba(239, 216, 184, 0.96) 14%, rgba(200, 141, 74, 0.98) 48%, rgba(66, 44, 27, 0.98) 100%);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  z-index: 0;
}

.project-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 60%;
  height: 48px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.94), rgba(255, 248, 231, 0.22) 56%, transparent 76%);
  z-index: 1;
  opacity: 0.65;
  filter: blur(0.3px);
}

.project-card > * {
  position: relative;
  z-index: 2;
}

.project-card:nth-child(1) {
  --beacon-height: 226px;
}

.project-card:nth-child(2) {
  --beacon-height: 284px;
}

.project-card:nth-child(3) {
  --beacon-height: 248px;
}

.project-card:nth-child(4) {
  --beacon-height: 214px;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(214, 168, 79, 0.32);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

.project-card:hover::before {
  filter: brightness(1.06) saturate(1.08);
}

.project-card .card-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(214, 168, 79, 0.2);
  border-radius: 999px;
  background: rgba(214, 168, 79, 0.08);
  color: rgba(244, 234, 208, 0.94);
  letter-spacing: 2px;
}

.project-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
  letter-spacing: 0.4px;
}

.project-card p {
  color: var(--theme-muted);
}

.project-card p + p {
  margin-top: 10px;
}

.project-card .stack-list {
  margin-top: 18px;
}

.project-card .stack-list li {
  border-color: rgba(244, 234, 208, 0.18);
  background: rgba(7, 10, 16, 0.72);
}

@media (max-width: 1023px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card {
    min-height: 410px;
  }

  .project-card:nth-child(2) {
    --beacon-height: 258px;
  }

  .project-card:nth-child(4) {
    --beacon-height: 206px;
  }
}

@media (max-width: 767px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 380px;
    padding: calc(var(--beacon-height) + 20px) 18px 20px;
  }

  .project-card:nth-child(1) {
    --beacon-height: 196px;
  }

  .project-card:nth-child(2) {
    --beacon-height: 206px;
  }

  .project-card:nth-child(3) {
    --beacon-height: 198px;
  }

  .project-card:nth-child(4) {
    --beacon-height: 188px;
  }

  .project-card::after {
    width: 30%;
  }
}

/* ================= YOUCODE SECTION ================= */

#about.section-block--youcode {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(214, 168, 79, 0.16), transparent 22%),
    radial-gradient(circle at 84% 14%, rgba(120, 160, 255, 0.12), transparent 18%),
    radial-gradient(circle at 50% 88%, rgba(255, 255, 255, 0.06), transparent 22%),
    linear-gradient(180deg, rgba(8, 10, 16, 0.98), rgba(4, 5, 8, 1));
}

#about.section-block--youcode::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.14;
  pointer-events: none;
}

#about.section-block--youcode::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -110px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 168, 79, 0.16), rgba(214, 168, 79, 0));
  filter: blur(8px);
  pointer-events: none;
}

#about.section-block--youcode .section-shell {
  position: relative;
  z-index: 2;
}

#about.section-block--youcode .section-heading {
  max-width: 820px;
}

.youcode-card {
  position: relative;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(214, 168, 79, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(17, 19, 28, 0.98), rgba(7, 8, 12, 0.98));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.youcode-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 168, 79, 0.3);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.32);
}

.youcode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(214, 168, 79, 0.16), transparent 18%),
    radial-gradient(circle at 86% 18%, rgba(120, 160, 255, 0.13), transparent 20%),
    linear-gradient(120deg, transparent 0 34%, rgba(255, 255, 255, 0.03) 34% 36%, transparent 36% 100%);
  pointer-events: none;
}

.youcode-card__glow {
  position: absolute;
  inset: auto -80px -80px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 168, 79, 0.18), rgba(214, 168, 79, 0));
  filter: blur(10px);
  pointer-events: none;
}

.youcode-card__top {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.youcode-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 180px;
  aspect-ratio: 1;
  border-radius: 30px;
  border: 1px solid rgba(214, 168, 79, 0.22);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(214, 168, 79, 0.18), rgba(11, 12, 18, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 16px 36px rgba(0, 0, 0, 0.24);
}

.youcode-mark::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
}

.youcode-mark::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px dashed rgba(244, 234, 208, 0.14);
  border-radius: 18px;
}

.youcode-mark span {
  position: relative;
  z-index: 1;
  font-size: clamp(42px, 7vw, 72px);
  letter-spacing: 6px;
  color: var(--theme-ink);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.youcode-kicker {
  color: rgba(234, 205, 142, 0.92);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.youcode-title h3 {
  margin-top: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
}

.youcode-summary {
  max-width: 64ch;
  margin-top: 14px;
  color: var(--theme-muted);
  font-size: 15px;
  line-height: 1.8;
}

.youcode-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.youcode-stat {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.youcode-stat span {
  color: rgba(234, 205, 142, 0.92);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.youcode-stat strong {
  font-size: 18px;
  line-height: 1.3;
}

.youcode-card__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.youcode-track__item {
  position: relative;
  padding: 18px 18px 18px 56px;
  border: 1px solid rgba(214, 168, 79, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.youcode-track__item span {
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(214, 168, 79, 0.22);
  background: rgba(214, 168, 79, 0.12);
  color: rgba(244, 234, 208, 0.94);
  font-size: 11px;
  letter-spacing: 1px;
}

.youcode-track__item p {
  color: var(--theme-muted);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 1023px) {
  .youcode-card {
    padding: 24px;
  }

  .youcode-card__top {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
  }

  .youcode-mark {
    width: 150px;
  }

  .youcode-card__stats,
  .youcode-card__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .youcode-card__stats .youcode-stat:last-child,
  .youcode-card__track .youcode-track__item:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .youcode-card {
    padding: 20px;
    border-radius: 24px;
  }

  .youcode-card__top {
    grid-template-columns: 1fr;
  }

  .youcode-mark {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }

  .youcode-title {
    text-align: center;
  }

  .youcode-summary {
    margin-inline: auto;
  }

  .youcode-card__stats,
  .youcode-card__track {
    grid-template-columns: 1fr;
  }

  .youcode-track__item {
    padding-left: 52px;
  }
}

/* ================= SKILLS PEAKS ================= */

#skills.section-block--skills {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(214, 168, 79, 0.16), transparent 22%),
    radial-gradient(circle at 86% 14%, rgba(120, 160, 255, 0.11), transparent 18%),
    linear-gradient(180deg, rgba(5, 10, 22, 0.98), rgba(6, 8, 16, 1));
}

#skills.section-block--skills::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%) 0 0 / 54px 54px,
    linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%) 0 0 / 72px 72px;
  opacity: 0.16;
  pointer-events: none;
}

#skills .section-shell {
  position: relative;
  z-index: 2;
}

#skills .section-heading {
  max-width: 820px;
}

.skills-grid--peaks {
  align-items: end;
  gap: 24px;
}

.skill-card {
  --skill-peak-height: 190px;
  --skill-accent: rgba(214, 168, 79, 0.95);
  --skill-accent-soft: rgba(214, 168, 79, 0.16);
  position: relative;
  min-height: calc(var(--skill-peak-height) + 230px);
  padding: calc(var(--skill-peak-height) + 24px) 20px 22px;
  border: 1px solid var(--skill-accent-soft);
  border-radius: 28px 28px 20px 20px;
  background: linear-gradient(180deg, rgba(13, 18, 30, 0.96), rgba(6, 8, 12, 0.98));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.26);
  overflow: hidden;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.skill-card::before {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  top: 0;
  height: var(--skill-peak-height);
  clip-path: polygon(0 100%, 12% 72%, 24% 84%, 40% 18%, 54% 0%, 68% 32%, 82% 16%, 100% 100%);
  z-index: 0;
}

.skill-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  width: 26%;
  height: 52px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.12));
  z-index: 1;
  opacity: 0.84;
}

.skill-card > * {
  position: relative;
  z-index: 2;
}

.skill-card__index {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  margin-bottom: 14px;
  border: 1px solid var(--skill-accent-soft);
  border-radius: 999px;
  background: rgba(9, 12, 20, 0.78);
  color: rgba(244, 234, 208, 0.94);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.skill-card .card-kicker {
  margin-bottom: 12px;
}

.skill-card h3 {
  font-size: 22px;
  line-height: 1.18;
  margin-bottom: 12px;
}

.skill-card__copy {
  color: var(--theme-muted);
  font-size: 14px;
  line-height: 1.72;
}

.skill-card .tag-list {
  margin-top: 18px;
}

.skill-card .tag-list li {
  border-color: var(--skill-accent-soft);
  background: rgba(255, 255, 255, 0.04);
}

.skill-card--back {
  --skill-peak-height: 184px;
  --skill-accent: rgba(214, 168, 79, 0.95);
  --skill-accent-soft: rgba(214, 168, 79, 0.16);
}

.skill-card--back::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 222, 189, 0.94) 16%, rgba(161, 115, 56, 0.96) 48%, rgba(40, 30, 20, 0.98) 100%);
}

.skill-card--front {
  --skill-peak-height: 230px;
  --skill-accent: rgba(120, 160, 255, 0.95);
  --skill-accent-soft: rgba(120, 160, 255, 0.18);
}

.skill-card--front::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(205, 220, 248, 0.94) 16%, rgba(89, 129, 193, 0.96) 48%, rgba(24, 35, 64, 0.98) 100%);
}

.skill-card--systems {
  --skill-peak-height: 202px;
  --skill-accent: rgba(103, 209, 165, 0.95);
  --skill-accent-soft: rgba(103, 209, 165, 0.18);
}

.skill-card--systems::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(209, 242, 228, 0.94) 16%, rgba(74, 164, 121, 0.96) 48%, rgba(20, 42, 33, 0.98) 100%);
}

.skill-card--tools {
  --skill-peak-height: 176px;
  --skill-accent: rgba(243, 149, 92, 0.95);
  --skill-accent-soft: rgba(243, 149, 92, 0.18);
}

.skill-card--tools::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 228, 207, 0.94) 16%, rgba(203, 122, 68, 0.96) 48%, rgba(44, 26, 18, 0.98) 100%);
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: var(--skill-accent-soft);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.34);
}

.skill-card:hover::before {
  filter: saturate(1.06) brightness(1.03);
}

@media (max-width: 1023px) {
  .skill-card {
    min-height: 390px;
  }

  .skills-grid--peaks {
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .skill-card {
    min-height: 360px;
    padding: calc(var(--skill-peak-height) + 20px) 18px 20px;
  }

  .skill-card::after {
    width: 30%;
  }
}

/* ================= CONTROLS ================= */

.theme-toggle {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(214, 168, 79, 0.22);
  border-radius: 999px;
  background: rgba(8, 9, 12, 0.82);
  color: var(--theme-ink);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font: inherit;
  letter-spacing: 2px;
  text-transform: uppercase;
  appearance: none;
}

.theme-toggle__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(214, 168, 79, 0.1);
  color: rgba(244, 234, 208, 0.96);
  font-size: 13px;
}

.theme-toggle__text {
  font-size: 11px;
  letter-spacing: 2.4px;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 168, 79, 0.42);
}

.theme-toggle:focus-visible,
.hero-link:focus-visible {
  outline: 2px solid rgba(214, 168, 79, 0.55);
  outline-offset: 2px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  appearance: none;
  font: inherit;
}

.hero-link--lang {
  min-width: 96px;
}

/* ================= LIGHT THEME ================= */

body.theme-light {
  color: #241b13;
  --theme-ink: #241b13;
  --theme-muted: rgba(78, 56, 40, 0.76);
  --theme-accent: rgba(139, 30, 30, 1);
  --theme-accent-soft: rgba(139, 30, 30, 0.08);
  --theme-accent-line: rgba(139, 30, 30, 0.18);
  background:
    radial-gradient(circle at 20% 15%, rgba(214, 168, 79, 0.1), transparent 24%),
    radial-gradient(circle at 78% 12%, rgba(120, 160, 255, 0.04), transparent 20%),
    linear-gradient(180deg, #ffffff 0%, #fbf8f3 48%, #f5f1ea 100%);
}

body.theme-light hr {
  background: rgba(90, 70, 40, 0.22);
}

body.theme-light .logo,
body.theme-light .label,
body.theme-light .section-heading h2,
body.theme-light .project-card h3,
body.theme-light .skill-card h3,
body.theme-light .youcode-title h3,
body.theme-light .contact-card strong,
body.theme-light .hero-atelier__title h1 {
  color: #241b13;
}

body.theme-light .section-kicker,
body.theme-light .card-kicker,
body.theme-light .contact-label,
body.theme-light .hero-board__kicker,
body.theme-light .hero-core__mini,
body.theme-light .youcode-kicker,
body.theme-light .skill-card__index {
  color: rgba(139, 30, 30, 0.9);
}

body.theme-light .lightning-line .bolt {
  stroke: rgba(139, 30, 30, 0.52);
}

body.theme-light .hero-atelier__kicker,
body.theme-light .hero-atelier__note-label,
body.theme-light .youcode-stat span,
body.theme-light .youcode-track__item span {
  color: rgba(139, 30, 30, 0.92);
}

body.theme-light .hero-atelier__kicker {
  border-color: rgba(139, 30, 30, 0.16);
  background: rgba(139, 30, 30, 0.06);
}

body.theme-light .hero-atelier__role,
body.theme-light .hero-atelier__note-name,
body.theme-light .hero-atelier__rail span {
  color: #241b13;
}

body.theme-light .label {
  color: #241b13;
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(139, 30, 30, 0.12);
}

body.theme-light .hanger:hover {
  filter: drop-shadow(0 10px 18px rgba(139, 30, 30, 0.08));
}

body.theme-light .hanger:hover .label {
  color: #8b1e1e;
  background: rgba(139, 30, 30, 0.08);
  border-color: rgba(139, 30, 30, 0.22);
  box-shadow: 0 10px 24px rgba(36, 27, 20, 0.12);
}

body.theme-light .hanger:hover .string {
  background: rgba(139, 30, 30, 0.8);
  box-shadow: 0 0 16px rgba(139, 30, 30, 0.14);
}

body.theme-light .hanger:hover .pin {
  background: #8b1e1e;
  border-color: #8b1e1e;
  box-shadow: 0 0 0 4px rgba(139, 30, 30, 0.08);
}

body.theme-light .string,
body.theme-light .hero-board__rope,
body.theme-light .hero-core__rope,
body.theme-light .hero-chip__rope {
  background: linear-gradient(
    180deg,
    rgba(139, 30, 30, 0.28),
    rgba(214, 168, 79, 0.95),
    rgba(139, 30, 30, 0.24)
  );
  box-shadow: 0 0 10px rgba(139, 30, 30, 0.1);
  opacity: 0.98;
}

body.theme-light .contact-form__title,
body.theme-light .contact-form__text,
body.theme-light .contact-field__label,
body.theme-light .contact-card--info strong,
body.theme-light .contact-card--info .contact-label {
  color: #241b13;
}

body.theme-light .contact-input {
  border-color: rgba(139, 30, 30, 0.14);
  background: rgba(255, 255, 255, 0.95);
  color: #241b13;
  caret-color: #241b13;
}

body.theme-light .contact-input::placeholder {
  color: rgba(78, 56, 40, 0.58);
}

body.theme-light .contact-input:focus {
  border-color: rgba(139, 30, 30, 0.34);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 3px rgba(139, 30, 30, 0.08);
}

body.theme-light .contact-input:-webkit-autofill,
body.theme-light .contact-input:-webkit-autofill:hover,
body.theme-light .contact-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #241b13;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.95) inset;
}

body.theme-light .contact-submit {
  border-color: rgba(139, 30, 30, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 229, 214, 0.98));
  color: #241b13;
  box-shadow: 0 14px 30px rgba(36, 27, 20, 0.08);
}

body.theme-light .contact-submit:hover {
  border-color: rgba(139, 30, 30, 0.32);
  box-shadow: 0 16px 34px rgba(36, 27, 20, 0.12);
}

body.theme-light .hero-atelier__summary,
body.theme-light .hero-atelier__note-text {
  color: var(--theme-muted);
}

body.theme-light .hero-atelier__portrait-wrap img {
  filter: none;
}

body.theme-light .hero-atelier__portrait-shell {
  padding: 18px;
  border: 1px solid rgba(139, 30, 30, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 241, 233, 0.98));
  box-shadow: 0 20px 38px rgba(36, 27, 20, 0.1);
}

body.theme-light .hero-atelier__portrait-wrap {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.theme-light .hero-atelier__portrait-wrap img {
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  filter: none;
}

body.theme-light .hero-atelier__visual {
  padding: 22px;
  border: 1px solid rgba(139, 30, 30, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 18%, rgba(214, 168, 79, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 243, 236, 0.96));
  box-shadow: 0 18px 34px rgba(36, 27, 20, 0.08);
}

body.theme-light .hero-atelier__visual::before {
  border-color: rgba(139, 30, 30, 0.04);
}

body.theme-light .hero-atelier__visual::after {
  border-color: rgba(139, 30, 30, 0.08);
  box-shadow: 0 0 18px rgba(139, 30, 30, 0.05);
}

body.theme-light .hero-atelier__title h2 {
  -webkit-text-stroke: 1px rgba(36, 27, 19, 0.42);
}

body.theme-light .hero-atelier__intro,
body.theme-light .hero-atelier__note {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 237, 228, 0.98));
  border-color: rgba(139, 30, 30, 0.1);
  box-shadow: 0 18px 34px rgba(36, 27, 20, 0.12);
}

body.theme-light .hero-atelier__intro::before,
body.theme-light .hero-atelier__note::before {
  border-color: rgba(139, 30, 30, 0.05);
}

body.theme-light .hero-atelier__intro::after,
body.theme-light .hero-atelier__note::after {
  opacity: 0.65;
}

body.theme-light .youcode-track__item span {
  border-color: rgba(139, 30, 30, 0.18);
  background: rgba(139, 30, 30, 0.08);
}

body.theme-light .hanging-header::before {
  background:
    radial-gradient(circle at 18% 24%, rgba(214, 168, 79, 0.16), transparent 20%),
    radial-gradient(circle at 84% 16%, rgba(139, 30, 30, 0.1), transparent 17%),
    radial-gradient(circle at 50% 82%, rgba(255, 255, 255, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(248, 241, 231, 0.96), rgba(236, 228, 216, 0.94));
}

body.theme-light .hanging-nav::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(214, 168, 79, 0.1), transparent 18%),
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.14), transparent 22%),
    radial-gradient(circle at 88% 20%, rgba(139, 30, 30, 0.08), transparent 16%),
    linear-gradient(
      90deg,
      transparent 0,
      transparent 20%,
      rgba(139, 30, 30, 0.05) 20%,
      rgba(139, 30, 30, 0.05) 20.5%,
      transparent 20.5%,
      transparent 79.5%,
      rgba(214, 168, 79, 0.05) 79.5%,
      rgba(214, 168, 79, 0.05) 80%,
      transparent 80%
    ),
    linear-gradient(180deg, rgba(248, 241, 231, 0.34), rgba(248, 241, 231, 0));
}

body.theme-light .hanging-nav::after {
  border-color: rgba(139, 30, 30, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(139, 30, 30, 0.025),
    0 0 18px rgba(139, 30, 30, 0.04);
}

body.theme-light .site-motifs {
  opacity: 0.28;
}

body.theme-light .site-motif--corner {
  border-top-color: rgba(139, 30, 30, 0.2);
  border-right-color: rgba(139, 30, 30, 0.2);
}

body.theme-light .site-motif--dots {
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    14px 0 0 rgba(214, 168, 79, 0.32),
    28px 0 0 rgba(214, 168, 79, 0.18),
    0 14px 0 rgba(139, 30, 30, 0.24),
    14px 14px 0 rgba(139, 30, 30, 0.12),
    28px 14px 0 rgba(139, 30, 30, 0.08);
}

body.theme-light .site-motif--trail {
  background: linear-gradient(90deg, rgba(139, 30, 30, 0.34), transparent);
  box-shadow:
    0 10px 0 rgba(139, 30, 30, 0.12),
    0 20px 0 rgba(139, 30, 30, 0.08);
}

body.theme-light .site-motif--halo,
body.theme-light .site-motif--frame {
  border-color: rgba(139, 30, 30, 0.14);
}

body.theme-light .site-motif--capsule {
  border-color: rgba(139, 30, 30, 0.18);
  background: linear-gradient(180deg, rgba(214, 168, 79, 0.12), rgba(214, 168, 79, 0.02));
}

body.theme-light .info-card,
body.theme-light .project-card,
body.theme-light .skill-card,
body.theme-light .youcode-card,
body.theme-light .contact-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 243, 236, 0.98));
  border-color: rgba(139, 30, 30, 0.12);
  box-shadow: 0 18px 34px rgba(36, 27, 20, 0.08);
}

body.theme-light .hero-atelier__visual {
  background:
    radial-gradient(circle at 18% 18%, rgba(214, 168, 79, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 243, 236, 0.96));
  border: 1px solid rgba(139, 30, 30, 0.08);
  box-shadow: 0 18px 34px rgba(36, 27, 20, 0.08);
}

body.theme-light .section-block--alt {
  background: linear-gradient(180deg, rgba(248, 241, 231, 0.96), rgba(236, 228, 216, 0.98));
}

body.theme-light #projects {
  background:
    radial-gradient(circle at 18% 16%, rgba(214, 168, 79, 0.08), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(139, 30, 30, 0.05), transparent 16%),
    radial-gradient(circle at 50% 82%, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #fbf8f3 48%, #f6f2ec 100%);
}

body.theme-light #projects::before {
  background:
    radial-gradient(circle at 18% 24%, rgba(214, 168, 79, 0.1), transparent 20%),
    radial-gradient(circle at 84% 16%, rgba(139, 30, 30, 0.07), transparent 17%),
    radial-gradient(circle at 50% 82%, rgba(255, 255, 255, 0.12), transparent 26%);
  opacity: 0.9;
}

body.theme-light #skills.section-block--skills {
  background: linear-gradient(180deg, rgba(246, 239, 229, 0.98), rgba(235, 226, 212, 1));
}

body.theme-light #about.section-block--youcode {
  background: linear-gradient(180deg, rgba(248, 241, 231, 0.98), rgba(237, 229, 216, 1));
}

body.theme-light .beacon-range,
body.theme-light .beacon-range::before {
  background:
    radial-gradient(circle at 30% 42%, rgba(255, 255, 255, 0.26), transparent 38%),
    radial-gradient(circle at 65% 34%, rgba(255, 255, 255, 0.14), transparent 42%),
    radial-gradient(circle at 48% 12%, rgba(255, 223, 167, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(248, 241, 231, 0.54), rgba(233, 223, 208, 0.86));
}

body.theme-light .beacon {
  background: linear-gradient(180deg, #fffaf2 0%, #ead7bd 30%, #c58d57 58%, #6a4732 92%);
  opacity: 0.28;
}

body.theme-light .beacon::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.22)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.66), transparent 68%);
}

body.theme-light .beacon::after {
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.96), rgba(255, 248, 231, 0.24) 56%, transparent 76%);
}

body.theme-light .hero-link,
body.theme-light .theme-toggle {
  border-color: rgba(139, 30, 30, 0.22);
  background: rgba(255, 255, 255, 0.78);
  color: #241b13;
}

body.theme-light .hero-link--ghost {
  border-color: rgba(139, 30, 30, 0.14);
  background: rgba(255, 255, 255, 0.55);
}

body.theme-light .tag-list li,
body.theme-light .stack-list li {
  border-color: rgba(139, 30, 30, 0.12);
  background: rgba(139, 30, 30, 0.06);
  color: #241b13;
}

body.theme-light .skill-card::after,
body.theme-light .project-card::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.18));
}

body.theme-light .project-card::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(228, 236, 245, 0.96) 16%, rgba(157, 178, 205, 0.96) 48%, rgba(88, 104, 126, 0.98) 100%);
}

body.theme-light .skill-card--back::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 228, 201, 0.96) 16%, rgba(178, 129, 72, 0.96) 48%, rgba(74, 49, 28, 0.98) 100%);
}

body.theme-light .skill-card--front::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(220, 233, 250, 0.96) 16%, rgba(106, 146, 206, 0.96) 48%, rgba(42, 57, 85, 0.98) 100%);
}

body.theme-light .skill-card--systems::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(223, 245, 233, 0.96) 16%, rgba(99, 176, 131, 0.96) 48%, rgba(33, 65, 49, 0.98) 100%);
}

body.theme-light .skill-card--tools::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 235, 219, 0.96) 16%, rgba(219, 137, 82, 0.96) 48%, rgba(68, 38, 22, 0.98) 100%);
}

body.theme-light .theme-toggle__icon {
  background: rgba(139, 30, 30, 0.08);
  color: rgba(139, 30, 30, 0.9);
}

@media (max-width: 767px) {
  .theme-toggle {
    top: 12px;
    left: 12px;
    min-height: 38px;
    padding: 8px 10px;
  }
}

/* PROJECT FILE CARDS OVERRIDE */

#projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.8vw, 30px);
  align-items: stretch;
  justify-items: stretch;
}

#projects .project-card {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 390px;
  aspect-ratio: auto;
  justify-self: stretch;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  padding: 92px 24px 24px;
  border-radius: 28px;
  border: 1px solid rgba(214, 168, 79, 0.16);
  background:
    radial-gradient(circle at 18% 16%, rgba(214, 168, 79, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(18, 22, 31, 0.98), rgba(8, 10, 15, 0.99));
  box-shadow:
    0 28px 54px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(214, 168, 79, 0.04);
  overflow: hidden;
  isolation: isolate;
  text-align: left;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    filter 0.35s ease;
}

#projects .project-card::before {
  content: attr(data-project);
  position: absolute;
  left: 18px;
  top: 18px;
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  height: 30px;
  padding: 0 12px;
  border-radius: 16px 16px 10px 10px;
  border: 1px solid rgba(214, 168, 79, 0.34);
  background: linear-gradient(135deg, rgba(214, 168, 79, 0.92), rgba(64, 44, 24, 0.96));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  color: #24170f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  z-index: 1;
}

#projects .project-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 88px;
  height: 88px;
  background: linear-gradient(
    135deg,
    transparent 49%,
    rgba(214, 168, 79, 0.42) 49.5%,
    rgba(214, 168, 79, 0.12) 61%,
    transparent 61.5%
  );
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}

#projects .project-card > :not(.project-card__details) {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

#projects .project-card .card-kicker {
  align-self: flex-start;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(214, 168, 79, 0.2);
  background: rgba(214, 168, 79, 0.08);
  color: #f4ddba;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

#projects .project-card h3 {
  margin: 10px 0 0;
  max-width: 14ch;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 0.98;
  color: #f4e0c1;
}

#projects .project-card p {
  color: rgba(241, 224, 205, 0.78);
}

#projects .project-card:nth-child(1) {
  --project-accent-soft: rgba(214, 168, 79, 0.26);
  --project-accent-strong: rgba(214, 168, 79, 0.94);
}

#projects .project-card:nth-child(2) {
  --project-accent-soft: rgba(88, 186, 225, 0.24);
  --project-accent-strong: rgba(88, 186, 225, 0.92);
}

#projects .project-card:nth-child(3) {
  --project-accent-soft: rgba(114, 203, 154, 0.24);
  --project-accent-strong: rgba(114, 203, 154, 0.92);
}

#projects .project-card:nth-child(4) {
  --project-accent-soft: rgba(231, 141, 120, 0.24);
  --project-accent-strong: rgba(231, 141, 120, 0.92);
}

#projects .project-card:hover,
#projects .project-card:focus-within {
  transform: translateY(-10px);
  border-color: rgba(214, 168, 79, 0.28);
  box-shadow: 0 36px 68px rgba(0, 0, 0, 0.4);
}

#projects .project-card:hover::before,
#projects .project-card:focus-within::before {
  filter: brightness(1.08) saturate(1.08);
  transform: translateY(-1px);
}

#projects .project-card:hover .card-kicker,
#projects .project-card:hover h3,
#projects .project-card:focus-within .card-kicker,
#projects .project-card:focus-within h3 {
  opacity: 0;
  transform: translateX(-12px);
}

#projects .project-card__details {
  position: absolute;
  inset: 18px;
  z-index: 2;
  padding: 24px 22px 22px;
  border-radius: 22px;
  border: 1px solid rgba(214, 168, 79, 0.14);
  background:
    radial-gradient(circle at 18% 14%, rgba(214, 168, 79, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(34, 24, 16, 0.98), rgba(18, 12, 8, 0.99));
  box-shadow: inset 0 1px 0 rgba(214, 168, 79, 0.06);
  opacity: 0;
  transform: translateX(22px);
  transition:
    opacity 0.32s ease,
    transform 0.32s ease,
    border-color 0.32s ease,
    background 0.32s ease;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

#projects .project-card__details::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--project-accent-strong), rgba(214, 168, 79, 0));
  opacity: 0.75;
}

#projects .project-card__details p {
  margin: 0;
  color: #f0e0cc;
  font-size: 13px;
  line-height: 1.45;
}

#projects .project-card__details p + p {
  margin-top: 8px;
}

#projects .project-card__details .stack-list {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
}

#projects .project-card__details .stack-list li {
  border-color: rgba(214, 168, 79, 0.18);
  background: rgba(214, 168, 79, 0.08);
  color: #f4e2c5;
  padding: 6px 9px;
  font-size: 11px;
}

#projects .project-card:hover .project-card__details,
#projects .project-card:focus-within .project-card__details {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

@media (max-width: 1023px) {
  #projects .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  #projects .projects-grid {
    grid-template-columns: 1fr;
  }

  #projects .project-card {
    min-height: auto;
    padding: 24px 18px 18px;
  }

  #projects .project-card .card-kicker,
  #projects .project-card h3 {
    opacity: 1;
    transform: none;
  }

  #projects .project-card::after {
    top: auto;
    right: 16px;
    bottom: 14px;
    width: calc(100% - 32px);
    height: 6px;
    clip-path: none;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--project-accent-strong), transparent);
    opacity: 0.78;
  }

  #projects .project-card__details {
    position: static;
    inset: auto;
    width: 100%;
    margin-top: 16px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding: 20px 16px 18px;
  }

  #projects .project-card__details::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 14px;
    width: 54px;
    height: 8px;
    border-radius: 999px;
    background:
      radial-gradient(circle, rgba(214, 168, 79, 0.7) 0 2px, transparent 3px) 0 0 / 14px 8px repeat-x;
    opacity: 0.55;
    pointer-events: none;
  }

  #projects .project-card__details .stack-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  #projects .project-card__details .stack-list li {
    text-align: center;
  }
}

body.theme-light #projects .project-card {
  border-color: rgba(139, 30, 30, 0.14);
  background:
    radial-gradient(circle at 18% 16%, rgba(214, 168, 79, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 242, 236, 0.98));
  box-shadow: 0 24px 44px rgba(48, 30, 18, 0.08);
}

body.theme-light #projects .project-card::after {
  opacity: 0.42;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 236, 236, 0.96));
}

body.theme-light #projects .project-card .card-kicker {
  border-color: rgba(139, 30, 30, 0.16);
  background: rgba(139, 30, 30, 0.08);
  color: #241b13;
}

body.theme-light #projects .project-card h3,
body.theme-light #projects .project-card p {
  color: #241b13;
}

body.theme-light #projects .project-card__details {
  background:
    radial-gradient(circle at 18% 14%, rgba(214, 168, 79, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 243, 236, 0.98));
  border-color: rgba(139, 30, 30, 0.12);
}

body.theme-light #projects .project-card__details::before {
  background: linear-gradient(180deg, rgba(139, 30, 30, 0.82), rgba(139, 30, 30, 0));
}

body.theme-light #projects .project-card__details p,
body.theme-light #projects .project-card__details .stack-list li {
  color: #241b13;
}

body.theme-light #projects .project-card__details .stack-list li {
  border-color: rgba(139, 30, 30, 0.12);
  background: rgba(139, 30, 30, 0.08);
}

/* SOCIAL LINKS */
.hero-atelier__socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(214, 168, 79, 0.24);
  background:
    radial-gradient(circle at 30% 28%, rgba(214, 168, 79, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(17, 18, 22, 0.96), rgba(8, 9, 12, 0.99));
  color: rgba(244, 224, 186, 0.96);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease,
    color 0.28s ease;
}

.social-link__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.social-link:hover {
  transform: translateY(-3px);
  border-color: rgba(214, 168, 79, 0.7);
  background:
    radial-gradient(circle at 30% 28%, rgba(214, 168, 79, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(24, 20, 16, 0.98), rgba(10, 10, 13, 0.99));
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.28);
  color: #fff0cf;
}

.social-link:focus-visible {
  outline: 2px solid rgba(214, 168, 79, 0.62);
  outline-offset: 3px;
}

body.theme-light .social-link {
  border-color: rgba(139, 30, 30, 0.16);
  background:
    radial-gradient(circle at 30% 28%, rgba(214, 168, 79, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(234, 223, 207, 0.98));
  color: #241b13;
}

body.theme-light .social-link:hover {
  border-color: rgba(139, 30, 30, 0.36);
  background:
    radial-gradient(circle at 30% 28%, rgba(214, 168, 79, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(245, 233, 219, 0.98), rgba(228, 209, 187, 0.98));
  color: #241b13;
}

body.theme-light .social-link:focus-visible {
  outline-color: rgba(139, 30, 30, 0.45);
}

@media (max-width: 767px) {
  .hero-atelier__lang-social {
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    margin-left: auto;
    justify-content: flex-end;
    justify-self: end;
  }

  .hero-atelier__socials {
    width: auto;
    justify-content: flex-end;
    margin: 0;
    flex-wrap: nowrap;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .social-link__icon {
    width: 17px;
    height: 17px;
  }
}

/* ================= UNIFIED SHAPED BACKDROP ================= */

body {
  background:
    radial-gradient(circle at 18% 16%, rgba(214, 168, 79, 0.16), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(139, 30, 30, 0.12), transparent 16%),
    radial-gradient(circle at 50% 82%, rgba(244, 234, 208, 0.06), transparent 22%),
    linear-gradient(180deg, #060607 0%, #09090d 48%, #050506 100%);
}

.section-block--alt,
#skills.section-block--skills,
#about.section-block--youcode {
  background: linear-gradient(180deg, rgba(8, 9, 13, 0.96), rgba(5, 6, 8, 1));
}

#projects .beacon-range {
  background:
    radial-gradient(circle at 30% 42%, rgba(214, 168, 79, 0.12), transparent 38%),
    radial-gradient(circle at 66% 30%, rgba(214, 168, 79, 0.08), transparent 34%),
    radial-gradient(circle at 48% 12%, rgba(244, 234, 208, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(10, 12, 18, 0.48), rgba(6, 7, 11, 0.9));
}

#projects .beacon-range::before {
  background:
    linear-gradient(180deg, rgba(15, 16, 22, 0.56), rgba(7, 8, 12, 0.92)),
    linear-gradient(90deg, rgba(214, 168, 79, 0.04), transparent 25%, transparent 75%, rgba(214, 168, 79, 0.04));
}

#skills.section-block--skills::before,
#about.section-block--youcode::before {
  background:
    linear-gradient(135deg, rgba(214, 168, 79, 0.05) 25%, transparent 25%) 0 0 / 54px 54px,
    linear-gradient(45deg, rgba(214, 168, 79, 0.03) 25%, transparent 25%) 0 0 / 72px 72px;
  opacity: 0.14;
}

body.theme-light {
  background:
    radial-gradient(circle at 18% 16%, rgba(214, 168, 79, 0.08), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(139, 30, 30, 0.05), transparent 16%),
    radial-gradient(circle at 50% 82%, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #fbf8f3 48%, #f6f2ec 100%);
}

body.theme-light .section-block--alt,
body.theme-light #skills.section-block--skills,
body.theme-light #about.section-block--youcode {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 242, 236, 1));
}

body.theme-light #projects .beacon-range,
body.theme-light #projects .beacon-range::before {
  background:
    radial-gradient(circle at 30% 42%, rgba(255, 255, 255, 0.24), transparent 38%),
    radial-gradient(circle at 66% 30%, rgba(214, 168, 79, 0.12), transparent 34%),
    radial-gradient(circle at 48% 12%, rgba(255, 223, 167, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(248, 241, 231, 0.54), rgba(233, 223, 208, 0.88));
}

body.theme-light #skills.section-block--skills::before,
body.theme-light #about.section-block--youcode::before {
  background:
    linear-gradient(135deg, rgba(139, 30, 30, 0.06) 25%, transparent 25%) 0 0 / 54px 54px,
    linear-gradient(45deg, rgba(139, 30, 30, 0.04) 25%, transparent 25%) 0 0 / 72px 72px;
  opacity: 0.12;
}

@media (max-width: 767px) {
  .site-motifs {
    opacity: 0.28;
  }

  .site-motifs__cluster--intro {
    top: 86px;
    right: -18px;
    width: 200px;
    height: 200px;
  }

  .site-motifs__cluster--visual {
    top: 56vh;
    right: -24px;
    width: 170px;
    height: 170px;
  }

  .site-motif--corner {
    top: 8px;
    right: 8px;
    width: 52px;
    height: 52px;
  }

  .site-motif--dots {
    top: 40px;
    right: 42px;
    transform: scale(0.82);
    transform-origin: top right;
  }

  .site-motif--trail {
    left: 12px;
    bottom: 24px;
    width: 64px;
  }

  .site-motif--halo {
    width: 120px;
    height: 120px;
  }

  .site-motif--frame {
    width: 90px;
    height: 108px;
  }

  .site-motif--capsule {
    right: 16px;
    width: 12px;
    height: 70px;
  }
}

/* ================= FOOTER ================= */

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 28px 0 64px;
  background:
    radial-gradient(circle at 86% 18%, rgba(214, 168, 79, 0.16), transparent 18%),
    radial-gradient(circle at 14% 72%, rgba(139, 30, 30, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(6, 6, 9, 0.98), rgba(3, 3, 4, 1));
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(214, 168, 79, 0.05) 10% 10.5%, transparent 10.5% 89.5%, rgba(139, 30, 30, 0.05) 89.5% 90%, transparent 90%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 24%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1120px, calc(100% - 48px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(214, 168, 79, 0.34), rgba(255, 255, 255, 0.14), rgba(139, 30, 30, 0.28), transparent);
  opacity: 0.85;
  pointer-events: none;
}

.site-footer__shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.site-footer__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 24px;
  align-items: end;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 18%, rgba(214, 168, 79, 0.1), transparent 20%),
    radial-gradient(circle at 16% 74%, rgba(139, 30, 30, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(15, 15, 19, 0.98), rgba(7, 7, 9, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.site-footer__panel::before {
  content: "";
  position: absolute;
  inset: 16px 16px auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(214, 168, 79, 0.12);
  box-shadow:
    0 0 0 24px rgba(214, 168, 79, 0.03),
    0 0 44px rgba(214, 168, 79, 0.08);
  pointer-events: none;
  opacity: 0.9;
}

.site-footer__panel::after {
  content: "";
  position: absolute;
  left: -8%;
  bottom: -30%;
  width: 46%;
  height: 46%;
  background: radial-gradient(circle, rgba(139, 30, 30, 0.16), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.site-footer__copy,
.site-footer__aside {
  position: relative;
  z-index: 1;
}

.site-footer__kicker {
  margin-bottom: 12px;
  color: rgba(214, 168, 79, 0.9);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.site-footer__heading {
  max-width: 12ch;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.site-footer__text {
  max-width: 54ch;
  margin-top: 16px;
  color: var(--theme-muted);
  font-size: 15px;
  line-height: 1.75;
}

.site-footer__aside {
  display: grid;
  justify-items: end;
  gap: 16px;
}

.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-footer__top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(214, 168, 79, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(24, 20, 16, 0.96), rgba(10, 10, 13, 0.98));
  color: #fff0cf;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease,
    color 0.28s ease;
}

.site-footer__top:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 168, 79, 0.72);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.26);
}

.site-footer__top:focus-visible {
  outline: 2px solid rgba(214, 168, 79, 0.58);
  outline-offset: 3px;
}

.site-footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  flex-wrap: wrap;
  padding: 16px 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--theme-muted);
}

.site-footer__signature {
  color: rgba(244, 234, 208, 0.78);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.site-footer__status {
  font-size: 13px;
  line-height: 1.6;
}

body.theme-light .site-footer {
  background:
    radial-gradient(circle at 86% 18%, rgba(214, 168, 79, 0.12), transparent 18%),
    radial-gradient(circle at 14% 72%, rgba(139, 30, 30, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(247, 241, 232, 0.98), rgba(234, 225, 213, 1));
}

body.theme-light .site-footer::before {
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(139, 30, 30, 0.05) 10% 10.5%, transparent 10.5% 89.5%, rgba(214, 168, 79, 0.05) 89.5% 90%, transparent 90%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.24), transparent 24%);
}

body.theme-light .site-footer::after {
  background: linear-gradient(90deg, transparent, rgba(139, 30, 30, 0.22), rgba(214, 168, 79, 0.22), transparent);
}

body.theme-light .site-footer__panel {
  border-color: rgba(139, 30, 30, 0.1);
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.36), transparent 20%),
    radial-gradient(circle at 16% 74%, rgba(214, 168, 79, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(255, 250, 245, 0.98), rgba(238, 229, 216, 0.98));
  box-shadow: 0 24px 64px rgba(73, 53, 33, 0.12);
}

body.theme-light .site-footer__panel::before {
  border-color: rgba(139, 30, 30, 0.12);
  box-shadow:
    0 0 0 24px rgba(139, 30, 30, 0.03),
    0 0 44px rgba(139, 30, 30, 0.08);
}

body.theme-light .site-footer__panel::after {
  background: radial-gradient(circle, rgba(214, 168, 79, 0.12), transparent 68%);
}

body.theme-light .site-footer__kicker,
body.theme-light .site-footer__signature {
  color: rgba(139, 30, 30, 0.9);
}

body.theme-light .site-footer__heading,
body.theme-light .site-footer__top {
  color: #241b13;
}

body.theme-light .site-footer__text,
body.theme-light .site-footer__status {
  color: var(--theme-muted);
}

body.theme-light .site-footer__bar {
  border-top-color: rgba(139, 30, 30, 0.12);
}

body.theme-light .site-footer__top {
  border-color: rgba(139, 30, 30, 0.18);
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(234, 223, 207, 0.98));
}

body.theme-light .site-footer__top:hover {
  border-color: rgba(139, 30, 30, 0.36);
  background: linear-gradient(180deg, rgba(245, 233, 219, 0.98), rgba(228, 209, 187, 0.98));
}

body.theme-light .site-footer__top:focus-visible {
  outline-color: rgba(139, 30, 30, 0.45);
}

@media (max-width: 1023px) {
  .site-footer__panel {
    grid-template-columns: 1fr;
  }

  .site-footer__aside {
    justify-items: start;
  }

  .site-footer__socials {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding: 18px 0 48px;
  }

  .site-footer__panel {
    padding: 22px 18px;
    border-radius: 22px;
    gap: 18px;
  }

  .site-footer__heading {
    max-width: 100%;
    font-size: clamp(28px, 11vw, 42px);
  }

  .site-footer__text {
    font-size: 14px;
  }

  .site-footer__bar {
    padding: 0 4px;
  }

  .site-footer__signature,
  .site-footer__status {
    width: 100%;
  }

  .site-footer__top {
    width: 100%;
  }
}

/* ================= SIMPLE READABILITY TUNE ================= */

body {
  background:
    radial-gradient(circle at 18% 16%, rgba(201, 164, 106, 0.08), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.04), transparent 16%),
    linear-gradient(180deg, #0b0d11 0%, #101319 48%, #08090c 100%);
}

body.theme-light {
  background:
    radial-gradient(circle at 18% 16%, rgba(201, 164, 106, 0.06), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(0, 0, 0, 0.03), transparent 16%),
    linear-gradient(180deg, #ffffff 0%, #f8f6f1 48%, #f2efe8 100%);
}

body .section-kicker,
body .card-kicker,
body .contact-label,
body .hero-board__kicker,
body .hero-core__mini,
body .youcode-kicker,
body .skill-card__index,
body .hero-atelier__kicker,
body .hero-atelier__note-label {
  color: #c9a46a;
}

body.theme-light .section-kicker,
body.theme-light .card-kicker,
body.theme-light .contact-label,
body.theme-light .hero-board__kicker,
body.theme-light .hero-core__mini,
body.theme-light .youcode-kicker,
body.theme-light .skill-card__index,
body.theme-light .hero-atelier__kicker,
body.theme-light .hero-atelier__note-label {
  color: #7f674e;
}

body .hero-atelier__title h2 {
  color: inherit;
  -webkit-text-stroke: 0;
  opacity: 0.92;
}

body.theme-light .hero-atelier__title h2 {
  color: #241b13;
  opacity: 1;
}

body .hero-atelier__role,
body .hero-atelier__note-text,
body .hero-atelier__summary,
body .hero-atelier__note-name,
body .hero-atelier__rail span,
body .hero-board__card span,
body .hero-core__tag,
body .detail-list span,
body .detail-list p,
body .about-copy,
body .contact-form__text,
body .contact-field__label,
body .contact-card--info strong,
body .contact-card--info .contact-label,
body .youcode-summary {
  color: rgba(236, 233, 226, 0.76);
}

body.theme-light .hero-atelier__role,
body.theme-light .hero-atelier__note-text,
body.theme-light .hero-atelier__summary,
body.theme-light .hero-atelier__note-name,
body.theme-light .hero-atelier__rail span,
body.theme-light .hero-board__card span,
body.theme-light .hero-core__tag,
body.theme-light .detail-list span,
body.theme-light .detail-list p,
body.theme-light .about-copy,
body.theme-light .contact-form__text,
body.theme-light .contact-field__label,
body.theme-light .contact-card--info strong,
body.theme-light .contact-card--info .contact-label,
body.theme-light .youcode-summary {
  color: #3b3228;
}

body .hero-atelier__intro,
body .hero-atelier__visual,
body .info-card,
body .project-card,
body .contact-card,
body .hero-board__card,
body .hero-core__card,
body .hero-chip__label {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 18, 24, 0.94), rgba(10, 12, 16, 0.98));
}

body.theme-light .hero-atelier__intro,
body.theme-light .hero-atelier__visual,
body.theme-light .info-card,
body.theme-light .project-card,
body.theme-light .contact-card,
body.theme-light .hero-board__card,
body.theme-light .hero-core__card,
body.theme-light .hero-chip__label {
  border-color: rgba(128, 104, 70, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 243, 237, 0.98));
}

body.theme-light .label {
  color: #241b13;
  background: rgba(255, 255, 255, 0.84);
}
