* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #FFF;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: #000;
  overflow-x: hidden;
}

/* ===== Original canvas styling ===== */

canvas#canvas {
  display: block;
  background: #000;
  position: fixed;
  inset: 0;
  z-index: -1;
}

ul#navigation {
  position: absolute;
  height: 100%;
  top: 0;
  right: 0;
  -webkit-writing-mode: vertical-rl;
      -ms-writing-mode: tb-rl;
          writing-mode: vertical-rl;
  text-align: center;
  margin-right: 1.6rem;
  font-size: 0.8rem;
  z-index: 10;
}
ul#navigation > li {
  display: inline-block;
  padding: 0.8rem 0;
}

p.right {
  font-size: 0.8rem;
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 1.6rem;
  z-index: 10;
}

p.count {
  display: none;
  z-index: 10;
}

@media screen and (min-width: 48rem) {
  p.count {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 1.6rem;
  }
  p.right {
    left: initial;
    right: 0;
  }
}

/* ===== Portfolio overlay ===== */

.overlay {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 80px 20px;
}

.portfolio-card {
  width: 100%;
  max-width: 1100px;
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 60px;
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
}

section {
  margin-bottom: 80px;
}

h1 {
  font-size: 3.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.6rem;
  opacity: 0.85;
  margin-bottom: 16px;
}

p {
  opacity: 0.8;
  line-height: 1.7;
  font-size: 1.05rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.card {
  background: rgba(255,255,255,0.03);
  padding: 24px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  margin: 4px 6px 0 0;
  font-size: 0.75rem;
}

.cta {
  margin-top: 30px;
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
}

.cta:hover {
  background: white;
  color: black;
}

@media (max-width: 768px) {
  .portfolio-card {
    padding: 40px 24px;
  }
  h1 {
    font-size: 2.3rem;
  }
}

.wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

.section {
	width: 100%;
	max-width: 940px;
	padding: 40px 16px;
	text-align: center;
}

.section-title {
	font-size: 1.8rem;
	line-height: 1.2;
	font-weight: 700;
	margin-bottom: 8px;
}

.section-desc {
	color: #555;
	font-size: 1rem;
	line-height: 1.5;
	margin-bottom: 40px;
}

.card-wrapper {
	position: relative;
}

.card {
	--r: 30px; /* radius */
	--s: 40px; /* inner curve size */
	background-color: #fff;
	padding: 24px;
	width: 100%;
	text-align: left;
	border-radius: 30px;

}

.card-circle {
	width: 60px;
	height: 60px;
	position: absolute;
	top: 0;
	right: 0;
	border-radius: 50%;
	font-size: 1.5rem;
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight: 700;
}

.card-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 10px;
	padding-right: 70px;
}

.card-desc {
	font-size: 0.875rem;
	line-height: 1.5;
	color: #666;
	margin-bottom: 12px;
	padding-right: 65px;
}

.card-figure {
	height: 200px;
	background-color: #eee;
	border-radius: 20px;
	position: relative;
	overflow: hidden;
}

.card-img {
	height: 100%;
	position: absolute;
	width: 100%;
	inset: 0;
	object-fit: cover;
}

.swiper-pagination {
	position: static;
	margin-top: 24px;
}

.no-support {
	position: fixed;
	inset: 0;
	background-color: #000d;
	display: grid;
	place-items: center;
	align-content: center;
	gap: 1em;
	z-index: 10;
	color: #fff;
	text-align: center;
	padding: 1rem;
}

@supports (clip-path: shape(from 0 0, move to 0 0)) {
	.no-support {
		display: none;
	}
}
