:root {
  --bg: #f2eee7;
  --ink: #1e2624;
  --accent: #c64a2e;
  --accent-2: #0f7c75;
  --panel: #fbf7ef;
  --line: #d9d0c3;
  --shadow: 0 16px 44px rgba(20, 34, 31, 0.14);
  --theme-speed: 280ms;
}

html[data-theme="dark"] {
  --bg: #13191e;
  --ink: #ece7dd;
  --accent: #ff8f69;
  --accent-2: #5cd3c2;
  --panel: #1b232a;
  --line: #33424c;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at -5% -10%, rgba(198, 74, 46, 0.22), transparent 32%),
    radial-gradient(circle at 102% 8%, rgba(15, 124, 117, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(
      -38deg,
      rgba(30, 38, 36, 0.028) 0,
      rgba(30, 38, 36, 0.028) 1px,
      transparent 1px,
      transparent 14px
    ),
    var(--bg);
  transition: background-color var(--theme-speed) ease, color var(--theme-speed) ease;
  line-height: 1.6;
  overflow-x: hidden;
}

.site-header,
.theme-toggle,
.menu-button,
.nav-links a,
.stat-card,
.timeline-item,
.panel,
.social-grid a,
.eyebrow,
.badge-row li,
.pillars span,
.hero-photo-header img,
.site-footer {
  transition:
    background-color var(--theme-speed) ease,
    color var(--theme-speed) ease,
    border-color var(--theme-speed) ease,
    box-shadow var(--theme-speed) ease;
}

.ambient {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
}

.ambient-1 {
  top: -9rem;
  right: -8rem;
  background: rgba(198, 74, 46, 0.24);
}

.ambient-2 {
  bottom: -11rem;
  left: -9rem;
  background: rgba(15, 124, 117, 0.24);
}

.site-header {
  position: fixed;
  top: 1.35rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1080px, calc(100% - 2rem));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(217, 208, 195, 0.88);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  background: rgba(251, 247, 239, 0.66);
  box-shadow: 0 10px 28px rgba(30, 38, 36, 0.12);
}

html[data-theme="dark"] .site-header {
  background: rgba(19, 25, 30, 0.62);
  border-color: rgba(67, 86, 99, 0.8);
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: "Changa", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(251, 247, 239, 0.95), rgba(251, 247, 239, 0.82));
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 600;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(251, 247, 239, 0.96), rgba(251, 247, 239, 0.8));
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

html[data-theme="dark"] .theme-toggle {
  background: linear-gradient(180deg, rgba(27, 35, 42, 0.96), rgba(27, 35, 42, 0.8));
  border-color: rgba(92, 211, 194, 0.42);
  color: #ece7dd;
}

.theme-toggle:hover {
  border-color: var(--accent-2);
}

.theme-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.nav-links a:hover {
  background: rgba(15, 124, 117, 0.16);
}

.section {
  width: min(1080px, 100% - 2rem);
  margin: 0 auto;
  padding: 4.5rem 0;
}

.hero {
  padding-top: 2.1rem;
}

.eyebrow {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  margin: 0 0 1rem;
  font-weight: 700;
  font-size: 0.83rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--panel);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-family: "Changa", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  max-width: 12ch;
}

h1 span {
  color: var(--accent);
}

h2 {
  font-family: "Changa", sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  margin-bottom: 1rem;
}

.hero-copy {
  max-width: 60ch;
  font-size: 1.08rem;
  margin-top: 1rem;
}

.hero-photo-header {
  margin-top: 1.35rem;
  position: relative;
  height: clamp(230px, 42vw, 390px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(251, 247, 239, 0.92), rgba(251, 247, 239, 0.72));
  box-shadow: var(--shadow);
}

.hero-photo-top {
  width: 100%;
  margin: 0;
}

.top-hero-shell {
  width: min(1080px, 100% - 2rem);
  margin: 7rem auto 0;
  position: relative;
}

.top-hero-copy {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 6.25rem;
  bottom: 2.7rem;
  z-index: 7;
  color: #f8f4ed;
  max-width: 62ch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.top-hero-copy .eyebrow {
  background: rgba(251, 247, 239, 0.18);
  border-color: rgba(248, 244, 237, 0.62);
  color: #f8f4ed;
  backdrop-filter: blur(4px);
}

.top-hero-copy h1 {
  max-width: 14ch;
}

.top-hero-copy h1 span {
  color: #ffd1a4;
}

.top-hero-copy .hero-copy {
  color: rgba(248, 244, 237, 0.95);
  margin-bottom: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 700ms ease, transform 1400ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 13, 13, 0.14), rgba(8, 13, 13, 0.66));
}

.hero-slide figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  margin: 0;
  color: #f8f4ed;
  font-weight: 700;
  font-size: 0.95rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .hero-photo-header {
  background: linear-gradient(160deg, rgba(26, 35, 36, 0.94), rgba(26, 35, 36, 0.74));
}

.hero-slide-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 0.8rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 240ms ease, background-color 240ms ease;
  cursor: pointer;
}

.hero-dot.is-active {
  width: 18px;
  background: rgba(255, 255, 255, 0.95);
}


.social-carousel {
  margin-top: 1.7rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: clip;
  background: linear-gradient(160deg, rgba(251, 247, 239, 0.94), rgba(251, 247, 239, 0.76));
  padding: 0.7rem;
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .social-carousel {
  background: linear-gradient(160deg, rgba(27, 35, 42, 0.94), rgba(27, 35, 42, 0.72));
}

.social-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.social-tab {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(251, 247, 239, 0.98), rgba(251, 247, 239, 0.84));
  color: var(--ink);
  font-weight: 700;
  padding: 0;
  min-height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.social-tab.is-active {
  background: linear-gradient(135deg, #13576a, var(--accent-2));
  color: #fff;
  border-color: transparent;
}

.social-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-tab-icon img {
  width: 18px;
  height: 18px;
  display: block;
  transition: filter 180ms ease;
}

.social-tab.is-active .social-tab-icon img {
  filter: brightness(0) invert(1);
}



.social-panels {
  position: relative;
}

.social-panel {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(251, 247, 239, 0.62);
  animation: panelFade 260ms ease;
}

html[data-theme="dark"] .social-panel {
  background: rgba(27, 35, 42, 0.66);
}

.social-label {
  margin: 0;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.social-panel h3 {
  margin-top: 0.4rem;
  font-size: 1.35rem;
}

.social-panel p {
  margin: 0.5rem 0 0;
  max-width: 56ch;
}

.social-embed {
  margin-top: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(251, 247, 239, 0.76);
  min-height: 310px;
}

html[data-theme="dark"] .social-embed {
  background: rgba(27, 35, 42, 0.82);
}

.social-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 310px;
  border: 0;
  display: block;
}

.social-embed-youtube,
.social-embed-facebook {
  min-height: 360px;
}

.social-embed-youtube iframe,
.social-embed-facebook iframe {
  min-height: 360px;
}

.embed-fallback {
  min-height: 220px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.7rem;
  padding: 1.1rem;
  background: linear-gradient(160deg, rgba(251, 247, 239, 0.95), rgba(251, 247, 239, 0.82));
}

html[data-theme="dark"] .embed-fallback {
  background: linear-gradient(160deg, rgba(27, 35, 42, 0.95), rgba(27, 35, 42, 0.84));
}

.embed-fallback p {
  margin: 0;
  font-weight: 600;
  max-width: 42ch;
}

.embed-fallback a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  background: var(--panel);
}

body.local-preview-limited .social-embed-youtube iframe,
body.local-preview-limited .social-embed-tiktok blockquote {
  display: none;
}

body.local-preview-limited .embed-fallback {
  display: grid !important;
}

.social-embed-instagram {
  display: block;
  padding: 0.4rem;
  min-height: unset;
}

.social-embed-instagram .instagram-media {
  margin: 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.social-embed-instagram iframe {
  height: auto !important;
  min-height: 0 !important;
}

.social-embed-tiktok {
  padding: 0.5rem;
}

.social-embed-tiktok .tiktok-embed {
  margin: 0 auto !important;
  min-width: 0 !important;
  max-width: 420px !important;
}

.social-panel a {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--accent-2);
  font-weight: 700;
  text-underline-offset: 3px;
}

@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ea763f);
}

.btn-ghost {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
}


.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

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

.stat-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(251, 247, 239, 0.96), rgba(251, 247, 239, 0.78));
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .stat-card {
  background: linear-gradient(180deg, rgba(27, 35, 42, 0.96), rgba(27, 35, 42, 0.78));
}

.stat-card h3 {
  font-size: 1.6rem;
  color: var(--accent-2);
}

.stat-card p {
  margin: 0.35rem 0 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.timeline-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(251, 247, 239, 0.98), rgba(251, 247, 239, 0.76));
}

html[data-theme="dark"] .timeline-item {
  background: linear-gradient(180deg, rgba(27, 35, 42, 0.98), rgba(27, 35, 42, 0.76));
}

.timeline-item .label {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.timeline-item h3 {
  margin-top: 0.45rem;
}

.timeline-item a {
  color: var(--accent-2);
  font-weight: 700;
}

.showcase-photo {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  transition: opacity 380ms ease, filter 520ms ease, transform 520ms ease;
}

.showcase-photo.is-loading {
  opacity: 0.7;
  transform: scale(1.045);
  filter: blur(12px);
}

.showcase-photo.is-loaded {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(251, 247, 239, 0.96), rgba(251, 247, 239, 0.8));
  border-radius: 22px;
  padding-inline: 1.3rem;
}

html[data-theme="dark"] .panel {
  background: linear-gradient(180deg, rgba(27, 35, 42, 0.96), rgba(27, 35, 42, 0.8));
}

.pillars {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pillars span {
  border: 1px solid rgba(31, 138, 112, 0.35);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(31, 138, 112, 0.08);
  font-weight: 600;
}

html[data-theme="dark"] .pillars span {
  border-color: rgba(92, 211, 194, 0.45);
  background: rgba(92, 211, 194, 0.14);
}

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

.social-grid a {
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-weight: 700;
  background: linear-gradient(180deg, rgba(251, 247, 239, 0.98), rgba(251, 247, 239, 0.84));
  padding: 0.9rem;
  font-size: 1.05rem;
  line-height: 1;
  min-height: 48px;
  display: grid;
  place-items: center;
}

.social-grid a img {
  width: 20px;
  height: 20px;
  display: block;
}

.social-grid a:hover {
  border-color: var(--accent-2);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(15, 124, 117, 0.18);
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem 2.6rem;
  border-top: 1px solid rgba(233, 218, 197, 0.8);
}

html[data-theme="dark"] .site-footer {
  border-top-color: rgba(47, 63, 65, 0.8);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.go-up-button {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(251, 247, 239, 0.96), rgba(251, 247, 239, 0.82));
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 40;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, border-color var(--theme-speed) ease, background-color var(--theme-speed) ease, color var(--theme-speed) ease;
}

.go-up-button.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.go-up-button:hover {
  border-color: var(--accent-2);
}

html[data-theme="dark"] .go-up-button {
  background: linear-gradient(180deg, rgba(27, 35, 42, 0.95), rgba(27, 35, 42, 0.8));
}

@media (max-width: 920px) {
  .split,
  .timeline {
    grid-template-columns: 1fr;
  }

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

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

  .social-embed,
  .social-embed iframe {
    min-height: 270px;
  }

  .social-embed-youtube,
  .social-embed-facebook,
  .social-embed-youtube iframe,
  .social-embed-facebook iframe {
    min-height: 300px;
  }

  .hero-photo-header {
    height: clamp(220px, 48vw, 330px);
  }
}

@media (max-width: 720px) {
  .top-hero-shell {
    margin-top: 6.2rem;
  }

  .site-header {
    top: 0.95rem;
    left: 50%;
    width: calc(100% - 1.1rem);
    padding: 0.65rem 0.75rem;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    right: 1rem;
    top: 3.6rem;
    display: none;
    flex-direction: column;
    width: min(240px, calc(100vw - 2rem));
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero-photo-header {
    height: 235px;
  }

  .top-hero-copy {
    left: 0.75rem;
    right: 0.75rem;
    top: 5rem;
    bottom: 2.4rem;
  }

  .top-hero-copy .eyebrow {
    margin-bottom: 0.65rem;
    font-size: 0.72rem;
  }

  .top-hero-copy h1 {
    font-size: clamp(1.45rem, 7.2vw, 2.05rem);
    max-width: 15ch;
  }

  .top-hero-copy .hero-copy {
    margin-top: 0.55rem;
    font-size: 0.93rem;
  }

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

  .social-panel {
    padding: 0.85rem;
  }

  .social-tab {
    min-height: 40px;
  }

  .social-tab-icon img {
    width: 16px;
    height: 16px;
  }

  .social-grid a {
    min-height: 44px;
    padding: 0.75rem;
  }

  .social-grid a img {
    width: 18px;
    height: 18px;
  }

  .theme-text {
    display: none;
  }

  .go-up-button {
    left: 0.75rem;
    bottom: 0.75rem;
    width: 42px;
    height: 42px;
  }
}

/* === Aksesibilitas: Kurangi Gerak === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-slide {
    transition: none;
  }

  .showcase-photo {
    transition: none;
  }
}
