/* =========================================================
   Pondok Pesantren Miftahul Huda Pakuning
   Gaya visual: Modern Islamic Heritage
   ========================================================= */

:root {
  --emerald: #0B3D2E;
  --emerald-deep: #072A20;
  --forest: #145A42;
  --gold: #D6B56D;
  --gold-light: #E7CC93;
  --gold-deep: #A9894A;
  --ivory: #FAF7F0;
  --white: #FFFFFF;
  --ink: #12281F;
  --muted: #53665D;
  --line: rgba(11, 61, 46, .12);
  --line-gold: rgba(214, 181, 109, .42);

  --serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --shadow-sm: 0 10px 24px -18px rgba(7, 42, 32, .55);
  --shadow-md: 0 26px 50px -32px rgba(7, 42, 32, .5);
  --shadow-lg: 0 40px 80px -40px rgba(7, 42, 32, .55);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;

  --ease: cubic-bezier(.16, .84, .44, 1);
  --header-h: 84px;

  --pattern-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23D6B56D' stroke-opacity='.17' stroke-width='1'%3E%3Cpath d='M48 10 60 34 86 48 60 62 48 86 36 62 10 48 36 34Z'/%3E%3Ccircle cx='48' cy='48' r='2.6'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%230B3D2E' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M48 10 60 34 86 48 60 62 48 86 36 62 10 48 36 34Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Reset & dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open, body.lightbox-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -.005em;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--forest); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--emerald); }

ul { margin: 0; padding: 0; }

button { font: inherit; color: inherit; }

address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold-light); color: var(--emerald-deep); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--emerald);
  color: var(--ivory);
  font-size: .9rem;
  transition: top .25s ease;
}
.skip-link:focus { top: 16px; color: var(--ivory); }

.ico {
  width: 18px;
  height: 18px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- Utilitas tipografi ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 14px;
}
.eyebrow--gold { color: var(--gold); }

.section__title {
  font-size: clamp(1.72rem, 3.3vw, 2.75rem);
  line-height: 1.2;
}
.section__title--light { color: var(--ivory); }

.section__lead {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  max-width: 64ch;
}

.rule-gold {
  display: block;
  width: 84px;
  height: 1px;
  margin: 20px 0 22px;
  background: linear-gradient(90deg, var(--gold), rgba(214, 181, 109, .1));
  border: 0;
}
.rule-gold--center {
  width: 140px;
  margin-inline: auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section {
  position: relative;
  padding: clamp(64px, 8.5vw, 118px) 0;
}

.section__head { margin-bottom: clamp(34px, 5vw, 58px); max-width: 760px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .section__lead { margin-inline: auto; }
.section__head .section__lead { margin-top: 6px; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .94rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .005em;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background-color .3s ease, border-color .3s ease, color .3s ease;
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: #1B2A14;
  box-shadow: 0 14px 28px -16px rgba(169, 137, 74, .85);
}
.btn--gold:hover {
  color: #14210F;
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -16px rgba(169, 137, 74, .9);
}

.btn--ghost {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(214, 181, 109, .45);
  color: var(--ivory);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(214, 181, 109, .16);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

.btn--outline {
  border-color: rgba(11, 61, 46, .28);
  color: var(--forest);
  background: transparent;
}
.btn--outline:hover {
  background: rgba(11, 61, 46, .06);
  border-color: var(--forest);
  color: var(--emerald);
  transform: translateY(-2px);
}

.btn--sm { padding: 10px 18px; font-size: .85rem; }
.btn--lg { padding: 17px 32px; font-size: 1rem; }
.btn--block { width: 100%; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 4px 0;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 500;
  color: var(--forest);
  cursor: pointer;
  transition: gap .3s var(--ease), color .25s ease;
}
.link-btn .ico { color: var(--gold-deep); transition: transform .3s var(--ease); }
.link-btn:hover { gap: 14px; color: var(--emerald); }
.link-btn:hover .ico { transform: translateX(2px); }

/* ---------- Animasi masuk saat scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 140;
  padding: 16px 0;
  transition: background-color .4s ease, padding .4s ease, box-shadow .4s ease,
              border-color .4s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(7, 42, 32, .94);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: rgba(214, 181, 109, .2);
  box-shadow: 0 16px 40px -30px rgba(0, 0, 0, .9);
  padding: 10px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ivory);
}
.brand:hover { color: var(--ivory); }

.brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(214, 181, 109, .55);
  background: rgba(214, 181, 109, .1);
  color: var(--gold-light);
  flex: none;
}
.brand__mark svg { width: 30px; height: 30px; }

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__top {
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: .9;
}
.brand__name {
  font-family: var(--serif);
  font-size: 1.16rem;
  letter-spacing: .01em;
  color: var(--ivory);
}

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 22px);
  list-style: none;
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: .855rem;
  font-weight: 400;
  color: rgba(250, 247, 240, .84);
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--gold-light); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { margin-left: 4px; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(214, 181, 109, .45);
  background: rgba(255, 255, 255, .06);
  color: var(--gold-light);
  cursor: pointer;
  transition: background-color .25s ease;
}
.menu-toggle .ico { width: 22px; height: 22px; }
.menu-toggle .ico--close { display: none; }
.menu-toggle[aria-expanded="true"] .ico--open { display: none; }
.menu-toggle[aria-expanded="true"] .ico--close { display: block; }
.menu-toggle:hover { background: rgba(214, 181, 109, .16); }

/* Navigasi ponsel */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 130;
  padding: calc(var(--header-h) + 26px) 24px 40px;
  background: linear-gradient(165deg, #0B3D2E 0%, #093528 55%, #072A20 100%);
  background-image: var(--pattern-gold), linear-gradient(165deg, #0B3D2E 0%, #093528 55%, #072A20 100%);
  color: var(--ivory);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.mobile-nav.is-open { opacity: 1; transform: none; }
.mobile-nav[hidden] { display: none; }
.mobile-nav__list { list-style: none; display: grid; gap: 0; margin-bottom: 28px; }
.mobile-nav__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid rgba(214, 181, 109, .16);
  font-family: var(--serif);
  font-size: 1.22rem;
  color: var(--ivory);
}
.mobile-nav__list a:hover { color: var(--gold-light); }
.mobile-nav__meta {
  margin: 24px 0 0;
  font-size: .8rem;
  line-height: 1.7;
  color: rgba(250, 247, 240, .55);
  text-align: center;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 90px;
  background: var(--emerald);
  color: var(--ivory);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(46, 124, 93, .55) 0%, rgba(11, 61, 46, 0) 58%),
    radial-gradient(70% 60% at 85% 20%, rgba(214, 181, 109, .12) 0%, rgba(11, 61, 46, 0) 60%),
    radial-gradient(80% 70% at 10% 90%, rgba(20, 90, 66, .65) 0%, rgba(11, 61, 46, 0) 65%),
    linear-gradient(180deg, #0C4232 0%, #0B3D2E 45%, #072A20 100%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern-gold);
  background-size: 96px 96px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(75% 65% at 50% 45%, #000 0%, transparent 78%);
  mask-image: radial-gradient(75% 65% at 50% 45%, #000 0%, transparent 78%);
}
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 42, 32, .5) 0%, rgba(7, 42, 32, 0) 22%, rgba(7, 42, 32, .55) 100%);
  z-index: 1;
}

.hero__arch {
  position: absolute;
  z-index: -2;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(940px, 118%);
  height: auto;
  opacity: .95;
  pointer-events: none;
}

.hero__silhouette {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(120px, 15vw, 210px);
  opacity: .85;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 960px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(18px, 3vw, 28px);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hero__eyebrow-line {
  display: block;
  width: clamp(24px, 5vw, 54px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero__eyebrow-line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }

.hero__title {
  font-size: clamp(2.15rem, 5.6vw, 4.1rem);
  line-height: 1.08;
  color: var(--ivory);
  margin: 0 0 clamp(18px, 2.6vw, 26px);
  letter-spacing: -.015em;
  text-shadow: 0 18px 40px rgba(3, 24, 18, .55);
}
.hero__title-accent {
  background: linear-gradient(100deg, #F2DFB4 5%, var(--gold) 45%, #B99A57 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.02rem, 1.9vw, 1.35rem);
  line-height: 1.55;
  color: #F1E7D0;
  margin: 0 auto clamp(16px, 2vw, 22px);
  max-width: 46ch;
}

.hero__desc {
  max-width: 64ch;
  margin: 0 auto clamp(28px, 3.4vw, 38px);
  font-size: clamp(.92rem, 1.3vw, 1rem);
  line-height: 1.8;
  color: rgba(250, 247, 240, .78);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: clamp(26px, 3.4vw, 38px);
}

.hero__loc {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: .78rem;
  letter-spacing: .06em;
  color: rgba(250, 247, 240, .62);
}
.hero__loc .ico { width: 16px; height: 16px; color: var(--gold); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(214, 181, 109, .5);
  display: grid;
  place-items: center;
  z-index: 2;
}
.hero__scroll-dot {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold-light);
  animation: scrollDot 2.2s var(--ease) infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(-6px); opacity: .25; }
  45% { transform: translateY(7px); opacity: 1; }
}

/* =========================================================
   SAMBUTAN PIMPINAN
   ========================================================= */
.sambutan { background: var(--ivory); }

.sambutan__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 5.5vw, 76px);
  align-items: center;
}

.sambutan__media { position: relative; }

.portrait {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 260px 260px 18px 18px;
  background: var(--emerald);
  box-shadow:
    0 0 0 1px rgba(214, 181, 109, .55),
    0 0 0 12px rgba(255, 255, 255, .75),
    0 0 0 13px rgba(214, 181, 109, .28),
    0 36px 70px -40px rgba(7, 42, 32, .6);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.portrait__caption {
  margin-top: 30px;
  text-align: center;
  display: grid;
  gap: 5px;
}
.portrait__name {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
}
.portrait__role {
  font-size: .78rem;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--muted);
}

.sambutan__text { font-size: .97rem; }
.sambutan__text p { margin-bottom: .95em; }
.salam {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.04rem;
  color: var(--forest);
}
.sambutan__note {
  margin: 22px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  font-size: .8rem;
  font-style: italic;
  color: #63726B;
}

/* =========================================================
   PROFIL
   ========================================================= */
.profile { background: var(--white); }

.profile__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(30px, 4.5vw, 64px);
  align-items: start;
}
.profile__text { font-size: 1rem; }
.profile__text p { margin-bottom: 1.1em; }
.profile__text p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.1rem;
  line-height: .78;
  float: left;
  padding: 8px 10px 0 0;
  color: var(--forest);
}

.profile__cards { display: grid; gap: 16px; }

.value-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: transform .35s var(--ease), border-color .35s ease, box-shadow .35s ease;
}
.value-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-gold);
  box-shadow: var(--shadow-md);
}
.value-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(214, 181, 109, .16);
  border: 1px solid rgba(214, 181, 109, .38);
  color: var(--forest);
}
.value-card__icon .ico { width: 21px; height: 21px; }
.value-card h3 { font-size: 1.06rem; margin-bottom: 6px; }
.value-card p { font-size: .9rem; line-height: 1.7; margin: 0; }

/* =========================================================
   UNIT PENDIDIKAN
   ========================================================= */
.unit {
  background-color: var(--ivory);
  background-image: var(--pattern-green);
}

.unit__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}

.unit-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s ease;
}
.unit-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-gold);
  box-shadow: var(--shadow-lg);
}

.unit-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--emerald);
}
.unit-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.unit-card:hover .unit-card__media img { transform: scale(1.05); }

.unit-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(214, 181, 109, .4);
  background: rgba(7, 42, 32, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.unit-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 24px clamp(20px, 2.2vw, 26px) 26px;
}
.unit-card__body h3 { font-size: 1.14rem; }
.unit-card__body p { font-size: .9rem; line-height: 1.7; margin: 0 0 6px; }

/* =========================================================
   KEUNGGULAN
   ========================================================= */
.keunggulan {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--ivory) 100%);
  border-top: 1px solid rgba(11, 61, 46, .07);
}

.keunggulan__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 2.6vw, 32px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(214, 181, 109, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-gold);
  box-shadow: var(--shadow-md);
}
.feature-card:hover::after { transform: scaleX(1); }

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid rgba(214, 181, 109, .45);
  color: var(--forest);
}
.feature-card__icon .ico { width: 23px; height: 23px; }
.feature-card h3 { font-size: 1.06rem; line-height: 1.35; margin-bottom: 8px; }
.feature-card p { font-size: .89rem; line-height: 1.7; margin: 0; }

/* =========================================================
   FASILITAS
   ========================================================= */
.fasilitas { background: var(--ivory); }

.fasilitas__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.9vw, 22px);
}

.foto {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--emerald);
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(11, 61, 46, .08);
}
.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.foto:hover img { transform: scale(1.04); }

.foto--large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.foto:last-child {
  grid-column: span 3;
  aspect-ratio: 21 / 7;
}

.foto figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px clamp(18px, 2vw, 26px) clamp(16px, 2vw, 22px);
  background: linear-gradient(180deg, rgba(4, 24, 18, 0) 0%, rgba(4, 24, 18, .82) 72%);
  color: var(--ivory);
}
.foto figcaption h3 {
  font-size: 1.06rem;
  color: var(--ivory);
  margin-bottom: 5px;
}
.foto figcaption p {
  margin: 0;
  font-size: .82rem;
  line-height: 1.6;
  color: rgba(250, 247, 240, .76);
}
.foto--large figcaption h3 { font-size: 1.32rem; }

.media-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: clamp(22px, 3vw, 30px) 0 0;
  font-size: .8rem;
  font-style: italic;
  line-height: 1.65;
  color: #63726B;
}
.media-note .ico { width: 15px; height: 15px; margin-top: 3px; color: var(--gold-deep); }

/* =========================================================
   HADROH
   ========================================================= */
.hadroh {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 110px) 0;
  background:
    radial-gradient(90% 80% at 12% 0%, rgba(46, 124, 93, .45) 0%, rgba(11, 61, 46, 0) 60%),
    linear-gradient(150deg, #0C4232 0%, #0B3D2E 42%, #072A20 100%);
  color: var(--ivory);
}
.hadroh__pattern {
  position: absolute;
  inset: 0;
  background-image: var(--pattern-gold);
  background-size: 96px 96px;
  opacity: .45;
  -webkit-mask-image: radial-gradient(70% 100% at 80% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 100% at 80% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hadroh__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hadroh__text .rule-gold { background: linear-gradient(90deg, var(--gold), rgba(214, 181, 109, .05)); }
.hadroh__lead {
  max-width: 52ch;
  margin-bottom: 30px;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(250, 247, 240, .78);
}
.hadroh__media { margin: 0; }
.hadroh__media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(214, 181, 109, .32);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .7);
}
.hadroh__media figcaption {
  margin-top: 14px;
  font-size: .82rem;
  line-height: 1.6;
  color: rgba(250, 247, 240, .55);
}

/* =========================================================
   GALERI
   ========================================================= */
.galeri { background: var(--white); }

.galeri__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: clamp(26px, 3.4vw, 40px);
}

.chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--muted);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease,
              transform .25s var(--ease);
}
.chip:hover { border-color: var(--line-gold); color: var(--forest); transform: translateY(-1px); }
.chip.is-active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--ivory);
}

.galeri__grid {
  columns: 3;
  column-gap: clamp(14px, 1.9vw, 22px);
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 clamp(14px, 1.9vw, 22px);
  padding: 0;
  border: 1px solid rgba(11, 61, 46, .08);
  border-radius: var(--radius-sm);
  background: var(--emerald);
  overflow: hidden;
  cursor: zoom-in;
  break-inside: avoid;
  transition: border-color .3s ease, box-shadow .4s var(--ease);
}
.gallery-item:hover { border-color: var(--line-gold); box-shadow: var(--shadow-md); }
.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform .8s var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.is-hidden { display: none; }

.gallery-item__label {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 3px;
  padding: 28px 18px 16px;
  background: linear-gradient(180deg, rgba(4, 24, 18, 0), rgba(4, 24, 18, .86));
  color: var(--ivory);
  font-size: .92rem;
  font-family: var(--serif);
  text-align: left;
}
.gallery-item__label small {
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.gallery-item__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(7, 42, 32, .62);
  border: 1px solid rgba(214, 181, 109, .4);
  color: var(--gold-light);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s ease, transform .3s var(--ease);
}
.gallery-item:hover .gallery-item__zoom,
.gallery-item:focus-visible .gallery-item__zoom { opacity: 1; transform: none; }
.gallery-item__zoom .ico { width: 16px; height: 16px; }

/* =========================================================
   AJAKAN
   ========================================================= */
.ajakan {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8.5vw, 112px) 0;
  text-align: center;
  color: var(--ivory);
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(46, 124, 93, .5) 0%, rgba(11, 61, 46, 0) 62%),
    linear-gradient(140deg, #0B3D2E 0%, #145A42 52%, #0A3527 100%);
}
.ajakan__pattern {
  position: absolute;
  inset: 0;
  background-image: var(--pattern-gold);
  background-size: 96px 96px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 40%, #000 0%, transparent 78%);
  mask-image: radial-gradient(70% 80% at 50% 40%, #000 0%, transparent 78%);
}
.ajakan__inner { position: relative; max-width: 820px; margin-inline: auto; }
.ajakan .section__title { color: var(--ivory); }
.ajakan__lead {
  max-width: 60ch;
  margin: 0 auto 34px;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(250, 247, 240, .8);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { background: var(--ivory); }

.faq__inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 4.5vw, 64px);
  align-items: start;
}
.faq__head .section__lead { margin-bottom: 26px; }

.faq__list { display: grid; gap: 12px; }

.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 2px 22px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.faq__item[open] {
  border-color: var(--line-gold);
  box-shadow: var(--shadow-sm);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: .96rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--forest); }
.faq__chev { color: var(--gold-deep); transition: transform .3s var(--ease); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }

.faq__answer {
  padding: 0 0 18px;
  font-size: .92rem;
  line-height: 1.75;
  color: var(--muted);
  animation: faqIn .35s var(--ease);
}
.faq__answer p { margin: 0; }
.faq__answer a { text-decoration: underline; text-underline-offset: 3px; }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   KONTAK
   ========================================================= */
.kontak { background: var(--white); }

.kontak__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(20px, 2.6vw, 30px);
}

.kontak__card {
  padding: clamp(24px, 3vw, 40px);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.kontak__card h3 { font-size: 1.34rem; margin-bottom: 4px; }

.kontak__list {
  list-style: none;
  display: grid;
  gap: 22px;
  margin: 26px 0 30px;
}
.kontak__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  font-size: .93rem;
  line-height: 1.7;
}
.kontak__ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(214, 181, 109, .16);
  border: 1px solid rgba(214, 181, 109, .38);
  color: var(--forest);
}
.kontak__ico .ico { width: 19px; height: 19px; }
.kontak__list strong {
  display: block;
  margin-bottom: 3px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.kontak__list a { color: var(--forest); font-weight: 500; }
.kontak__list a:hover { text-decoration: underline; text-underline-offset: 3px; }

.kontak__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.kontak__map {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.kontak__map-embed {
  position: relative;
  line-height: 0;
  aspect-ratio: 4 / 3;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.kontak__map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.kontak__map-body { display: grid; gap: 10px; padding: clamp(22px, 3vw, 30px); }
.kontak__map-body h3 { font-size: 1.14rem; }
.kontak__map-body p { margin: 0; font-size: .91rem; line-height: 1.7; }
.kontak__map-note { font-size: .78rem !important; font-style: italic; color: #63726B; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #082F24 0%, #061F18 100%);
  color: rgba(250, 247, 240, .7);
  border-top: 1px solid rgba(214, 181, 109, .22);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr) 1.2fr;
  gap: clamp(28px, 4vw, 52px);
  padding: clamp(46px, 6vw, 78px) 0 clamp(34px, 4vw, 46px);
}
.brand--footer { color: var(--gold-light); margin-bottom: 4px; }
.brand--footer .brand__mark { border-color: rgba(214, 181, 109, .35); }
.footer__tagline {
  margin: 20px 0 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--gold-light);
}
.footer__address {
  margin-bottom: 14px;
  font-size: .87rem;
  line-height: 1.85;
  color: rgba(250, 247, 240, .7);
}
.footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: rgba(250, 247, 240, .8);
}
.footer__phone .ico { width: 15px; height: 15px; color: var(--gold); }
.footer__phone:hover { color: var(--gold-light); }

.footer__col h3 {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer__col ul { list-style: none; display: grid; gap: 9px; }
.footer__col li a {
  font-size: .885rem;
  color: rgba(250, 247, 240, .68);
}
.footer__col li a:hover { color: var(--gold-light); }
.footer__col p { font-size: .87rem; line-height: 1.75; margin-bottom: 18px; }

.footer__maps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: .84rem;
  color: rgba(250, 247, 240, .68);
}
.footer__maps .ico { width: 15px; height: 15px; color: var(--gold); }
.footer__maps:hover { color: var(--gold-light); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(214, 181, 109, .16);
  font-size: .79rem;
  color: rgba(250, 247, 240, .64);
}
.footer__bottom p { margin: 0; }
.footer__bottom-tagline { color: rgba(214, 181, 109, .8); }

/* =========================================================
   TOMBOL MENGAMBANG
   ========================================================= */
.floaters {
  position: fixed;
  right: clamp(14px, 2.4vw, 24px);
  bottom: clamp(14px, 2.4vw, 24px);
  z-index: 110;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.float-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s ease, background-color .3s ease;
}
.float-btn .ico { width: 22px; height: 22px; }
.float-btn:hover { transform: translateY(-3px); }
.float-btn--wa {
  background: linear-gradient(140deg, var(--gold-light), var(--gold) 60%, var(--gold-deep));
  color: #16301C;
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 16px 30px -14px rgba(7, 42, 32, .75);
}
.float-btn--top {
  background: rgba(7, 42, 32, .92);
  color: var(--gold-light);
  border: 1px solid rgba(214, 181, 109, .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 26px -16px rgba(7, 42, 32, .8);
}
.float-btn--top[hidden] { display: none; }

/* =========================================================
   DIALOG UNIT
   ========================================================= */
.unit-dialog {
  width: min(600px, calc(100% - 32px));
  max-height: min(88vh, 780px);
  padding: 0;
  border: 1px solid rgba(214, 181, 109, .4);
  border-radius: var(--radius);
  background: var(--ivory);
  color: var(--muted);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}
.unit-dialog::backdrop {
  background: rgba(6, 32, 24, .66);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.unit-dialog__inner {
  position: relative;
  padding: clamp(26px, 4vw, 40px);
}
.unit-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--forest);
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease;
}
.unit-dialog__close:hover { background: rgba(214, 181, 109, .18); border-color: var(--line-gold); }
.unit-dialog__close .ico { width: 17px; height: 17px; }
.unit-dialog__title { font-size: 1.52rem; margin-bottom: 12px; padding-right: 42px; }
.unit-dialog__desc { font-size: .95rem; line-height: 1.75; margin-bottom: 20px; }
.unit-dialog__details {
  padding: 20px 22px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
}
.unit-dialog__details h3 {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.unit-dialog__details ul { list-style: none; display: grid; gap: 9px; }
.unit-dialog__details li {
  position: relative;
  padding-left: 20px;
  font-size: .89rem;
  line-height: 1.65;
}
.unit-dialog__details li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}
.unit-dialog__note {
  margin: 0 0 22px;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  font-size: .8rem;
  font-style: italic;
  color: #63726B;
}
.unit-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(6px, 1.6vw, 20px);
  padding: clamp(52px, 6vw, 64px) clamp(10px, 2vw, 28px) clamp(24px, 4vw, 40px);
  background: rgba(4, 20, 15, .95);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: lbIn .25s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox__figure {
  margin: 0 auto;
  display: grid;
  gap: 14px;
  justify-items: center;
  max-width: min(1040px, 100%);
}
.lightbox__figure img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(214, 181, 109, .3);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
}
.lightbox__figure figcaption {
  display: grid;
  gap: 4px;
  text-align: center;
  font-size: .9rem;
  color: rgba(250, 247, 240, .88);
}
.lightbox__count {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

.lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(214, 181, 109, .4);
  background: rgba(255, 255, 255, .06);
  color: var(--ivory);
  cursor: pointer;
  transition: background-color .25s ease;
}
.lightbox__close:hover { background: rgba(214, 181, 109, .2); }

.lightbox__nav {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(214, 181, 109, .4);
  background: rgba(255, 255, 255, .06);
  color: var(--gold-light);
  cursor: pointer;
  transition: background-color .25s ease, transform .25s var(--ease);
}
.lightbox__nav:hover { background: rgba(214, 181, 109, .22); transform: scale(1.06); }
.lightbox__nav .ico { width: 20px; height: 20px; }

/* =========================================================
   RESPONSIF
   ========================================================= */
@media (max-width: 1080px) {
  .nav__list { gap: 10px; }
  .nav__link { font-size: .8rem; }
  .keunggulan__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__grid > .footer__col:last-child { grid-column: span 3; }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header { padding: 12px 0; }
  .hero { min-height: 92svh; }
}

@media (max-width: 900px) {
  .sambutan__grid,
  .profile__grid,
  .faq__inner,
  .hadroh__inner,
  .kontak__grid { grid-template-columns: minmax(0, 1fr); }

  .sambutan__media { max-width: 420px; margin-inline: auto; width: 100%; }
  .unit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galeri__grid { columns: 2; }
  .fasilitas__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foto--large { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .foto:last-child { grid-column: span 2; aspect-ratio: 16 / 8; }
  .faq__head .btn { margin-bottom: 6px; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .container { width: calc(100% - 36px); }
  body { font-size: .98rem; }

  .brand__name { font-size: 1.02rem; }
  .brand__top { font-size: .56rem; letter-spacing: .18em; }
  .brand__mark { width: 40px; height: 40px; border-radius: 12px; }

  .hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 80px; text-align: center; }
  .hero__eyebrow { gap: 10px; font-size: .62rem; letter-spacing: .18em; }
  .hero__title { font-size: clamp(1.9rem, 8.4vw, 2.5rem); }
  .hero__desc { font-size: .92rem; }
  .hero__actions { flex-direction: column; gap: 11px; }
  .hero__actions .btn { width: 100%; }
  .hero__loc { font-size: .72rem; line-height: 1.6; }
  .hero__scroll { display: none; }

  .unit__grid,
  .keunggulan__grid,
  .fasilitas__grid { grid-template-columns: minmax(0, 1fr); }
  .foto--large, .foto:last-child { grid-column: span 1; aspect-ratio: 4 / 3; }
  .foto--large figcaption h3 { font-size: 1.14rem; }

  .galeri__grid { columns: 1; }
  .galeri__filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .chip { flex: none; }

  .profile__text p:first-child::first-letter { font-size: 2.6rem; }

  .portrait { border-radius: 200px 200px 16px 16px; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer__grid > .footer__col:last-child { grid-column: span 1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .float-btn { width: 48px; height: 48px; }
  .float-btn .ico { width: 20px; height: 20px; }

  .lightbox { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .lightbox__figure img { max-height: 64vh; }
  .lightbox__nav {
    position: static;
    width: 44px;
    height: 44px;
  }
  .lightbox__nav--prev { grid-row: 2; grid-column: 1; justify-self: start; }
  .lightbox__nav--next { grid-row: 2; grid-column: 1; justify-self: end; }

  .unit-dialog__actions .btn { flex: 1 1 100%; }
}

/* =========================================================
   AKSESIBILITAS / PREFERENSI
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

@media print {
  .site-header, .floaters, .lightbox, .mobile-nav, .hero__scroll { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
