:root {
  --bg: #070b10;
  --bg-soft: #0d1520;
  --card: #121c28;
  --text: #ecf2fb;
  --muted: #9cb3c9;
  --line: #233245;
  --primary: #5dd4a1;
  --secondary: #ffad66;
  --glow: rgba(93, 212, 161, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 10% -15%, rgba(93, 212, 161, 0.2), transparent 55%),
    radial-gradient(900px 600px at 105% 15%, rgba(255, 173, 102, 0.14), transparent 50%),
    linear-gradient(180deg, #06090d 0%, #0a1118 45%, #090f16 100%);
  line-height: 1.6;
}

.portfolio-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: rgba(6, 9, 13, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(93, 212, 161, 0.5);
  background: rgba(93, 212, 161, 0.1);
  color: #e9fff5;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  transition: 0.2s ease;
}

.action-btn:hover {
  border-color: var(--primary);
  background: rgba(93, 212, 161, 0.16);
  transform: translateY(-1px);
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.hero {
  padding: 4.5rem 0 3.3rem;
  text-align: center;
}

.hero-logo {
  width: min(280px, 48vw);
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.45));
  margin: 0 auto 1.35rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  margin: 1rem 0 0.8rem;
  font-size: clamp(2rem, 6.2vw, 4.5rem);
  line-height: 1.08;
  font-weight: 800;
}

.hero-subtitle {
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.18rem);
  max-width: 700px;
}

.section {
  margin: 2rem 0;
  padding: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(140deg, rgba(18, 28, 40, 0.95), rgba(14, 23, 33, 0.95)),
    var(--card);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.section + .section {
  margin-top: 1.2rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.3rem, 2.7vw, 2rem);
  line-height: 1.2;
}

.section p {
  margin: 0;
  color: #d8e5f2;
}

.muted {
  color: var(--muted);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.meta-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.015);
}

.meta-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.meta-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.case-head {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.case-logo {
  width: 86px;
  height: 86px;
  border-radius: 14px;
  object-fit: cover;
  background: #0a1018;
  border: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.tile {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.tile h4 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.tile p {
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.gallery-item {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item p {
  margin: 0;
  padding: 0.5rem 0.55rem;
  font-size: 0.78rem;
  text-align: center;
  color: var(--muted);
}

.cover {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.video-wrap {
  margin-top: 1rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 32px rgba(0, 0, 0, 0.25);
}

.video-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.ornaments-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.ornament-card {
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.ornament-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.ornament-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
  font-size: 0.72rem;
}

.edu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.edu-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.edu-image {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.list-line {
  margin: 0.2rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-cta {
  margin: 1.3rem auto 3rem;
  display: flex;
  justify-content: center;
}

.footer-note {
  margin-bottom: 2.2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.62s ease forwards;
}

[data-reveal="2"] {
  animation-delay: 0.12s;
}

[data-reveal="3"] {
  animation-delay: 0.2s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@media (max-width: 760px) {
  .section {
    padding: 1.2rem;
    border-radius: 18px;
  }

  .split,
  .edu-grid,
  .meta-grid,
  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .case-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
