
/* ============================================================
   SMP NEGERI 4 KUDUS — PREMIUM UI/UX DESIGN
   Modern Editorial • Responsive • Premium Motion
   ============================================================ */

:root {
  color-scheme: light;

  --ink: #17263c;
  --navy: #162b46;
  --navy-2: #203e61;
  --blue: #2e6682;
  --orange: #ed7857;
  --orange-dark: #d95c3d;
  --butter: #f6cb67;
  --cream: #f8f7f3;
  --paper: #fffefa;
  --surface: #ffffff;
  --line: #e7e7df;
  --muted: #697587;
  --muted-light: #aeb7c0;
  --green: #4f806d;

  --radius: 24px;
  --radius-sm: 15px;

  --shadow: 0 12px 34px rgba(26,43,64,.075);
  --shadow-hover: 0 24px 55px rgba(26,43,64,.14);

  --heading: 'Manrope', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;

  --wrap: 1200px;

  --motion-ease: cubic-bezier(.2,.75,.2,1);
  --motion-spring: cubic-bezier(.18,.88,.32,1.22);
  --motion-duration: 720ms;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  isolation: isolate;
}

body,
button,
input,
textarea,
select {
  font-family: var(--body);
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

::selection {
  background: rgba(246,203,103,.55);
  color: var(--navy);
}

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

.wrap {
  width: min(var(--wrap),calc(100% - 56px));
  margin-inline: auto;
}

h1,h2,h3,h4,p {
  margin-top: 0;
}

h1,h2,h3,h4 {
  font-family: var(--heading);
  line-height: 1.12;
  letter-spacing: -.045em;
}

h1,h2 {
  font-weight: 800;
}

h3,h4 {
  font-weight: 750;
}

p {
  margin-bottom: 1rem;
}

button {
  color: inherit;
}

section[id],
footer[id] {
  scroll-margin-top: 92px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.scroll-progress {
  position: fixed;
  z-index: 120;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  pointer-events: none;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg,var(--orange),var(--butter));
  box-shadow: 0 0 12px rgba(237,120,87,.35);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 13px max(28px,calc((100vw - var(--wrap))/2));
  border-bottom: 1px solid rgba(231,231,223,.75);
  background: rgba(248,247,243,.88);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: min-height .25s,box-shadow .25s,background .25s;
}

.nav.scrolled {
  min-height: 72px;
  background: rgba(255,254,250,.96);
  box-shadow: 0 8px 30px rgba(23,38,60,.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--navy);
  text-decoration: none;
}

.brand-logo-wrap {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  padding: 4px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 5px 14px rgba(23,38,60,.07);
  overflow: hidden;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font: 800 .99rem/1.25 var(--heading);
  letter-spacing: -.035em;
  white-space: nowrap;
}

.brand-name small {
  margin-top: 4px;
  color: var(--muted);
  font: 600 .67rem/1.2 var(--body);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.nav nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 999px;
  color: #49566a;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 650;
  transition: color .2s,background .2s,transform .2s;
}

.nav nav a:hover,
.nav nav a.is-active {
  color: var(--navy);
  background: #eeeee7;
}

.nav nav a.nav-cta {
  margin-left: 8px;
  padding: 12px 18px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 18px rgba(22,43,70,.16);
}

.nav nav a.nav-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.nav-cta span {
  font-size: 1rem;
  transition: transform .2s;
}

.nav-cta:hover span {
  transform: translate(2px,-2px);
}

.nav-toggle {
  display: none;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 8px;
  background: var(--navy);
  transition: transform .25s,opacity .2s;
}

.nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 14px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  overflow: hidden;
  transition: transform .22s,box-shadow .22s,background .22s,color .22s,border-color .22s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn span {
  font-size: 1.12rem;
  transition: transform .22s;
}

.btn:hover span {
  transform: translate(3px,-2px);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 24px rgba(237,120,87,.24);
}

.btn-primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 16px 30px rgba(217,92,61,.3);
}

.btn-outline {
  border-color: rgba(22,43,70,.16);
  background: rgba(255,255,255,.44);
  color: var(--navy);
}

.btn-outline:hover {
  border-color: var(--navy);
  background: #fff;
}

.btn-secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(23,38,60,.05);
}

.btn-secondary:hover {
  border-color: #ccd2d0;
  box-shadow: var(--shadow);
}

.btn-light {
  background: var(--butter);
  color: var(--navy);
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
}

.btn-light:hover {
  background: #ffda7b;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 750;
  text-decoration: none;
  border-bottom: 1px solid rgba(22,43,70,.25);
  padding-bottom: 5px;
  transition: gap .2s,color .2s;
}

.text-link:hover {
  gap: 16px;
  color: var(--orange-dark);
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--cream);
}

.hero-modern {
  min-height: 650px;
  padding: 76px 0 104px;
  background:
    radial-gradient(ellipse at 9% 8%,rgba(246,203,103,.14),transparent 31%),
    linear-gradient(145deg,#fbfaf6 0%,#f6f5ef 62%,#f0f0e7 100%);
}

.hero-modern::before {
  position: absolute;
  z-index: -1;
  content: "";
  width: 560px;
  height: 560px;
  left: -290px;
  bottom: -350px;
  border: 1px solid rgba(22,43,70,.085);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(22,43,70,.018),
    0 0 0 110px rgba(22,43,70,.014);
}

.hero-modern::after {
  position: absolute;
  z-index: -1;
  content: "";
  width: 280px;
  height: 280px;
  right: -100px;
  top: -95px;
  background: radial-gradient(circle,rgba(237,120,87,.13),transparent 70%);
  border-radius: 50%;
}

.hero-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.hero-orb-one {
  right: 40%;
  top: 12%;
  width: 8px;
  height: 8px;
  background: var(--orange);
  box-shadow: 0 0 0 9px rgba(237,120,87,.09);
}

.hero-orb-two {
  right: 9%;
  bottom: 18%;
  width: 13px;
  height: 13px;
  background: var(--butter);
  box-shadow: 0 0 0 11px rgba(246,203,103,.15);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(380px,.9fr);
  align-items: center;
  gap: clamp(48px,7vw,100px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 8px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border: 1px solid #e5e4db;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  color: var(--navy);
  font-size: .77rem;
  font-weight: 750;
  letter-spacing: .025em;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #5e9a79;
  box-shadow: 0 0 0 4px rgba(94,154,121,.14);
  animation: dotPulse 2s infinite;
}

.hero-overline {
  margin: 28px 0 10px;
  color: var(--orange-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 690px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(3.4rem,6vw,5.8rem);
  line-height: .99;
  letter-spacing: -.075em;
}

.hero h1 span {
  display: block;
  color: var(--orange);
  font-family: var(--heading);
  font-weight: 800;
  font-style: normal;
}

.hero-lead {
  max-width: 530px;
  margin: 24px 0 29px;
  color: #677181;
  font-size: 1.08rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.play-icon {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid rgba(22,43,70,.23);
  border-radius: 50%;
  font-size: .9rem;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  color: #738091;
  font-size: .82rem;
  line-height: 1.45;
}

.proof-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 35px;
  height: 35px;
  border-radius: 12px;
  background: #e8eee6;
  color: var(--green);
  font-size: 1rem;
  font-weight: 900;
}

.hero-proof strong {
  color: var(--navy);
  font-size: .87rem;
}

.hero-visual {
  position: relative;
  min-width: 0;
  max-width: 540px;
  justify-self: end;
  width: 100%;
  padding: 12px 14px 24px 12px;
}

.hero-image-frame {
  position: relative;
  height: clamp(400px,46vw,545px);
  overflow: hidden;
  border-radius: 48% 48% 25px 25px / 25% 25% 25px 25px;
  box-shadow: 0 34px 70px rgba(22,43,70,.17);
  background: linear-gradient(145deg,#c8d2d1,#d8d3c5);
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.025);
  transition: transform 1.2s cubic-bezier(.2,.7,.1,1);
}

.hero-visual:hover .hero-image {
  transform: scale(1.08);
}

.hero-image-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(19,39,60,.02) 38%,
    rgba(15,35,57,.68) 100%
  );
}

.image-caption {
  position: absolute;
  right: 22px;
  bottom: 24px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 18px;
  background: rgba(255,255,255,.15);
  color: #fff;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.caption-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  background: var(--butter);
  color: var(--navy);
  font-size: 1.5rem;
}

.image-caption small,
.image-caption strong {
  display: block;
}

.image-caption small {
  margin-bottom: 4px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .13em;
  opacity: .8;
}

.image-caption strong {
  font: 700 .98rem/1.4 var(--heading);
  letter-spacing: -.02em;
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border: 1px solid rgba(231,231,223,.85);
  border-radius: 18px;
  background: rgba(255,254,250,.96);
  box-shadow: 0 15px 42px rgba(22,43,70,.14);
  animation: cardFloat 5s ease-in-out infinite;
}

.float-card strong,
.float-card small {
  display: block;
}

.float-card strong {
  font: 750 .78rem/1.4 var(--heading);
  color: var(--navy);
}

.float-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .7rem;
}

.float-card-top {
  top: 76px;
  left: -35px;
}

.float-card-bottom {
  bottom: 63px;
  right: -20px;
  animation-delay: -2.5s;
}

.float-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 13px;
  background: #fff0df;
  color: var(--orange-dark);
  font-size: 1.35rem;
}

.float-number {
  font: 800 1.6rem/1 var(--heading);
  letter-spacing: -.08em;
  color: var(--orange);
}

.hero-stamp {
  position: absolute;
  left: -18px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .13em;
  box-shadow: 0 10px 24px rgba(22,43,70,.18);
  transform: rotate(-7deg);
}

.stamp-star {
  color: var(--butter);
  font-size: 1.1rem;
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: #87909c;
  text-decoration: none;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.scroll-line {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--orange);
}

/* ============================================================
   STATISTICS
   ============================================================ */

.stats-section {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  background: var(--paper);
  padding: 0 0 28px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 13px;
  transform: translateY(-2px);
}

.stat-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  min-height: 150px;
  padding: 22px 23px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(22,43,70,.04);
  transition: transform .25s,box-shadow .25s,border-color .25s;
  transition-delay: var(--card-delay,0ms);
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: #ddd9c9;
  box-shadow: var(--shadow);
}

.stat-index {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #bbc0c4;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.stat-number {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 12px 0 7px;
  color: var(--navy);
  font: 800 clamp(2.1rem,3.2vw,2.8rem)/1 var(--heading);
  letter-spacing: -.08em;
}

.stat-plus {
  color: var(--orange);
  font-size: 1.1rem;
  letter-spacing: 0;
}

.stat-label {
  max-width: 190px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

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

.section {
  position: relative;
  padding: clamp(76px,9vw,126px) 0;
}

.section-profile {
  background: var(--paper);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 21px;
  color: var(--orange-dark);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.section-kicker>span {
  display: inline-grid;
  place-items: center;
  min-width: 31px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid rgba(237,120,87,.3);
  border-radius: 9px;
  color: var(--orange-dark);
  font-size: .7rem;
  letter-spacing: 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-heading h2,
.profile-heading h2,
.achievement-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.35rem,4.4vw,4rem);
  line-height: 1.08;
  letter-spacing: -.07em;
}

.section-heading h2 em,
.profile-heading h2 em,
.achievement-heading h2 em,
.spmb-heading h2 em,
.closing-cta h2 em {
  color: var(--orange);
  font-style: normal;
}

.section-heading>p {
  margin: 16px 0 0;
  color: var(--muted);
}

.section-heading-split {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(250px,.65fr);
  align-items: end;
  gap: 40px;
  max-width: none;
}

.section-intro {
  max-width: 380px;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.85;
}

/* ============================================================
   PROFILE AND HEAD TEACHER MESSAGE
   ============================================================ */

.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px,.82fr) minmax(0,1.18fr);
  gap: clamp(50px,8vw,120px);
  align-items: start;
}

.profile-heading {
  position: sticky;
  top: 118px;
}

.profile-heading h2 {
  max-width: 470px;
  margin-bottom: 20px;
}

.profile-heading .section-intro {
  margin-bottom: 28px;
}

.profile-content {
  padding-top: 14px;
}

.profile-copy {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.profile-copy p {
  color: #626e7c;
  font-size: 1rem;
  line-height: 1.9;
}

.principal-note {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr);
  gap: 13px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #e7e4d9;
  border-radius: 22px;
  background: linear-gradient(135deg,#fffefa,#f4f2e9);
}

.quote-mark {
  color: var(--orange);
  font: 800 4rem/.8 Georgia,serif;
}

.note-label {
  display: block;
  margin: 0 0 12px;
  color: var(--orange-dark);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.principal-note p {
  color: #697587;
  font-size: .9rem;
  line-height: 1.8;
}

.principal-signature {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 19px;
  padding-top: 18px;
  border-top: 1px solid #e6e2d7;
}

.signature-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: var(--navy);
  color: var(--butter);
  font: 800 1.2rem var(--heading);
}

.principal-signature strong,
.principal-signature small {
  display: block;
}

.principal-signature strong {
  color: var(--navy);
  font-size: .85rem;
}

.principal-signature small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .76rem;
}

/* ============================================================
   PROGRAMS
   ============================================================ */

.program-section {
  background: #f2f2ec;
}

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

.program-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 260px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #e5e5dc;
  border-radius: 23px;
  background: rgba(255,255,255,.78);
  overflow: hidden;
  transition:
    transform .3s cubic-bezier(.2,.8,.2,1),
    box-shadow .3s,
    border-color .3s;
  transition-delay: var(--card-delay,0ms);
}

.program-card::after {
  position: absolute;
  right: -50px;
  bottom: -75px;
  content: "";
  width: 160px;
  height: 160px;
  border: 1px solid rgba(237,120,87,.12);
  border-radius: 50%;
  transition: transform .45s;
}

.program-card:hover {
  transform: translateY(-8px);
  border-color: rgba(237,120,87,.35);
  box-shadow: var(--shadow-hover);
}

.program-card:hover::after {
  transform: scale(1.25);
}

.program-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 29px;
}

.program-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: #fff0e5;
  color: var(--orange-dark);
  transition: transform .25s,background .25s;
}

.program-card:nth-child(3n+2) .program-icon {
  background: #e9efea;
  color: var(--green);
}

.program-card:nth-child(3n) .program-icon {
  background: #fbf0d1;
  color: #a57928;
}

.program-card:hover .program-icon {
  transform: rotate(-7deg) scale(1.05);
}

.program-icon svg {
  width: 25px;
  height: 25px;
}

.program-index {
  color: #aeb4ba;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.program-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.18rem;
  letter-spacing: -.035em;
}

.program-card p {
  position: relative;
  z-index: 1;
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.8;
}

.program-arrow {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 20px;
  color: var(--orange-dark);
  font-size: 1.2rem;
  opacity: .7;
  transition: transform .2s,opacity .2s;
}

.program-card:hover .program-arrow {
  transform: translate(3px,-3px);
  opacity: 1;
}

/* ============================================================
   ACHIEVEMENTS
   ============================================================ */

.achievement-section {
  background: var(--paper);
}

.achievement-heading {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(230px,.6fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 43px;
}

.achievement-heading h2 {
  max-width: 690px;
}

.achievement-heading>p {
  max-width: 360px;
  margin: 0 0 5px;
  color: var(--muted);
  line-height: 1.8;
}

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

.achievement-card {
  position: relative;
  display: flex;
  min-height: 207px;
  flex-direction: column;
  overflow: hidden;
  padding: 22px 23px 18px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: #fff;
  transition: transform .25s,box-shadow .25s,border-color .25s;
  transition-delay: var(--card-delay,0ms);
}

.achievement-card:hover {
  transform: translateY(-5px);
  border-color: #e7d7bb;
  box-shadow: var(--shadow);
}

.achievement-medal {
  position: absolute;
  top: 18px;
  right: 21px;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 13px;
  background: #fbf0d1;
  color: #b5852d;
  font-size: 1.12rem;
}

.achievement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-right: 42px;
  margin-bottom: 24px;
}

.achievement-meta span {
  padding: 5px 9px;
  border-radius: 8px;
  background: #f4f3ed;
  color: #758090;
  font-size: .67rem;
  font-weight: 750;
}

.achievement-card h3 {
  max-width: 270px;
  margin: 0 0 20px;
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1.35;
  letter-spacing: -.035em;
}

.achievement-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f0f0ea;
  color: #939aa4;
  font-size: .7rem;
}

.achievement-bottom span:last-child {
  color: var(--orange);
  font-size: 1rem;
}

/* ============================================================
   NEWS AND ADMISSION
   ============================================================ */

.news-section {
  background: #f7f6f0;
}

.spmb-section {
  padding-top: 55px;
  padding-bottom: 95px;
  background: #f7f6f0;
}

.spmb-panel {
  display: grid;
  grid-template-columns: minmax(270px,.78fr) minmax(0,1.22fr);
  gap: clamp(36px,6vw,82px);
  padding: clamp(26px,4.2vw,55px);
  border: 1px solid #e5e3d8;
  border-radius: 30px;
  background: #fffefa;
  box-shadow: 0 15px 50px rgba(22,43,70,.055);
}

.spmb-heading h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(2.25rem,4vw,3.5rem);
  letter-spacing: -.07em;
  line-height: 1.05;
}

.spmb-heading p {
  max-width: 360px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.8;
}

.spmb-heading .section-kicker {
  display: flex;
}

.spmb-waves-wrap {
  min-width: 0;
  padding-top: 8px;
}

.spmb-waves-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--navy);
  font: 750 .98rem var(--heading);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font: 750 .68rem var(--body);
}

.live-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #62a37c;
  box-shadow: 0 0 0 4px rgba(98,163,124,.13);
}

.spmb-note {
  margin: 15px 0 0;
  color: #8a929c;
  font-size: .73rem;
}

/* ============================================================
   CLOSING CALL TO ACTION
   ============================================================ */

.closing-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(82px,11vw,145px) 0;
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.closing-cta::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background-image: radial-gradient(
    rgba(255,255,255,.13) .8px,
    transparent .8px
  );
  background-size: 23px 23px;
  mask-image: linear-gradient(180deg,black,transparent 100%);
  opacity: .38;
}

.cta-shape {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
  pointer-events: none;
}

.cta-shape-one {
  width: 520px;
  height: 520px;
  top: -370px;
  right: 7%;
  box-shadow:
    0 0 0 55px rgba(255,255,255,.025),
    0 0 0 110px rgba(255,255,255,.018);
}

.cta-shape-two {
  width: 400px;
  height: 400px;
  bottom: -320px;
  left: 6%;
  box-shadow: 0 0 0 50px rgba(255,255,255,.02);
}

.closing-cta-content {
  position: relative;
  z-index: 1;
}

.cta-mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--butter);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .2em;
}

.cta-mini::before,
.cta-mini::after {
  content: "";
  width: 22px;
  height: 1px;
  background: rgba(246,203,103,.6);
}

.closing-cta h2 {
  margin: 24px 0 18px;
  color: #fff;
  font-size: clamp(2.7rem,6vw,5rem);
  line-height: 1.05;
  letter-spacing: -.075em;
}

.closing-cta h2 em {
  color: var(--butter);
}

.closing-cta p {
  margin: 0;
  color: #c0cad3;
  font-size: 1rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 30px;
}

.cta-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  transition: gap .2s,color .2s;
}

.cta-text-link:hover {
  gap: 15px;
  color: var(--butter);
}

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

.footer {
  background: #101f32;
  color: #b8c2cc;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr 1fr;
  gap: clamp(28px,4vw,60px);
  padding-top: 70px;
  padding-bottom: 54px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
  color: #fff;
  text-decoration: none;
  font: 800 1rem var(--heading);
  letter-spacing: -.03em;
}

.footer-brand img {
  display: block;
  width: 45px;
  height: 45px;
  object-fit: contain;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: #fff;
}

.footer-brand-block>p {
  max-width: 300px;
  color: #a7b2bf;
  font-size: .85rem;
  line-height: 1.8;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #c1cbd2;
  font-size: .7rem;
}

.footer-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #75b48a;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-column h2 {
  margin: 6px 0 10px;
  color: #fff;
  font: 800 .78rem var(--heading);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.footer-column a {
  color: #aeb9c4;
  text-decoration: none;
  font-size: .82rem;
  transition: color .2s,transform .2s;
}

.footer-column a:hover {
  transform: translateX(3px);
  color: var(--butter);
}

.footer-column p {
  margin: 0;
  color: #aeb9c4;
  font-size: .82rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.footer-contact a {
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #8794a2;
  font-size: .72rem;
}

.footer-credit b {
  color: var(--orange);
  font-size: .92rem;
}

.footer-top-link {
  color: #d5dde2;
  text-decoration: none;
  font-weight: 750;
  white-space: nowrap;
  transition: color .2s;
}

.footer-top-link:hover {
  color: var(--butter);
}

.to-top {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 12px 30px rgba(22,43,70,.22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s,visibility .2s,transform .2s,background .2s;
}

.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--orange-dark);
  transform: translateY(-3px);
}

/* ============================================================
   REVEAL + BASE ANIMATIONS
   ============================================================ */

.js .reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity .75s cubic-bezier(.2,.7,.2,1),
    transform .75s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--card-delay,0ms);
}

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

@keyframes dotPulse {
  50% {
    box-shadow: 0 0 0 8px rgba(94,154,121,0);
  }
}

@keyframes cardFloat {
  0%,100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media(max-width:1050px) {

  .nav {
    padding-inline: 28px;
  }

  .nav nav {
    gap: 0;
  }

  .nav nav a {
    padding: 10px;
  }

  .nav nav a.nav-cta {
    margin-left: 4px;
    padding: 12px 14px;
  }

  .hero-grid {
    grid-template-columns: minmax(0,1fr) minmax(330px,.82fr);
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(3rem,6.2vw,4.7rem);
  }

  .hero-image-frame {
    height: 440px;
  }

  .profile-layout {
    gap: 50px;
  }

  .footer-main {
    grid-template-columns: 1.15fr .7fr .7fr;
  }

  .footer-contact {
    grid-column: 2/4;
  }
}

@media(max-width:900px) {

  .wrap {
    width: min(var(--wrap),calc(100% - 44px));
  }

  .nav {
    min-height: 74px;
    padding: 10px 22px;
  }

  .brand-logo-wrap {
    width: 43px;
    height: 43px;
  }

  .nav-toggle {
    display: block;
  }

  .nav nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100dvh - 100px);
    overflow: auto;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,254,250,.98);
    box-shadow: 0 25px 65px rgba(22,43,70,.17);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s,visibility .2s,transform .2s;
  }

  .nav.open nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav nav a {
    padding: 13px 15px;
    border-radius: 13px;
  }

  .nav nav a.nav-cta {
    justify-content: center;
    margin: 5px 0 0;
    padding: 14px;
  }

  .hero-modern {
    padding: 62px 0 85px;
  }

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

  .hero h1 {
    font-size: clamp(2.9rem,6.2vw,4.2rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-image-frame {
    height: 390px;
  }

  .float-card-top {
    left: -20px;
    top: 52px;
  }

  .float-card-bottom {
    right: -10px;
    bottom: 54px;
  }

  .hero-stamp {
    left: -7px;
  }

  .stats-grid {
    gap: 10px;
  }

  .stat-card {
    padding: 19px 17px;
    min-height: 140px;
  }

  .profile-layout {
    grid-template-columns: .8fr 1.2fr;
    gap: 32px;
  }

  .profile-heading {
    position: static;
  }

  .section-heading-split,
  .achievement-heading {
    gap: 26px;
  }

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

  .spmb-panel {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .spmb-heading p {
    max-width: 580px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-brand-block {
    grid-column: 1/-1;
  }

  .footer-contact {
    grid-column: auto;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media(max-width:640px) {

  html {
    scroll-padding-top: 78px;
  }

  .wrap {
    width: calc(100% - 36px);
  }

  .nav {
    min-height: 68px;
    padding: 9px 18px;
  }

  .nav.scrolled {
    min-height: 66px;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo-wrap {
    width: 39px;
    height: 39px;
    border-radius: 12px;
  }

  .brand-name {
    font-size: .87rem;
  }

  .brand-name small {
    font-size: .58rem;
    letter-spacing: .045em;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .hero-modern {
    padding: 46px 0 76px;
  }

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

  .hero-copy {
    padding: 0;
  }

  .hero-kicker {
    font-size: .69rem;
    padding: 7px 10px;
  }

  .hero-overline {
    margin-top: 23px;
    font-size: .69rem;
  }

  .hero h1 {
    max-width: 540px;
    font-size: clamp(3.15rem,13vw,4.7rem);
  }

  .hero-lead {
    max-width: 500px;
    margin: 20px 0 24px;
    font-size: .97rem;
    line-height: 1.8;
  }

  .hero-actions {
    gap: 9px;
  }

  .hero-actions .btn {
    min-height: 49px;
    padding: 13px 17px;
    font-size: .85rem;
  }

  .hero-proof {
    margin-top: 24px;
  }

  .hero-visual {
    justify-self: center;
    max-width: 470px;
    width: calc(100% - 12px);
    padding: 6px 10px 21px;
  }

  .hero-image-frame {
    height: clamp(330px,102vw,450px);
    border-radius: 48% 48% 23px 23px / 22% 22% 23px 23px;
  }

  .image-caption {
    right: 13px;
    bottom: 15px;
    left: 13px;
    padding: 12px;
    border-radius: 15px;
  }

  .caption-mark {
    width: 37px;
    height: 37px;
    border-radius: 12px;
  }

  .image-caption strong {
    font-size: .82rem;
  }

  .image-caption small {
    font-size: .55rem;
  }

  .float-card {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .float-card-top {
    top: 34px;
    left: -13px;
  }

  .float-card-bottom {
    right: -9px;
    bottom: 45px;
  }

  .float-card strong {
    font-size: .7rem;
  }

  .float-card small {
    font-size: .64rem;
  }

  .float-icon {
    width: 33px;
    height: 33px;
  }

  .float-number {
    font-size: 1.35rem;
  }

  .hero-stamp {
    left: -6px;
    bottom: 0;
    padding: 9px 12px;
    font-size: .52rem;
  }

  .hero-scroll {
    bottom: 21px;
    font-size: .59rem;
    letter-spacing: .04em;
  }

  .stats-section {
    padding-bottom: 8px;
  }

  .stats-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
  }

  .stat-card {
    min-height: 126px;
    padding: 16px 14px;
    border-radius: 17px;
  }

  .stat-index {
    top: 15px;
    right: 14px;
    font-size: .59rem;
  }

  .stat-number {
    margin: 11px 0 7px;
    font-size: 2.15rem;
  }

  .stat-label {
    font-size: .74rem;
  }

  .section {
    padding: 76px 0;
  }

  .section-kicker {
    gap: 9px;
    font-size: .64rem;
    letter-spacing: .12em;
    margin-bottom: 16px;
  }

  .section-kicker>span {
    min-width: 27px;
    height: 25px;
    font-size: .64rem;
  }

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

  .section-heading h2,
  .profile-heading h2,
  .achievement-heading h2 {
    font-size: clamp(2.3rem,10vw,3.4rem);
  }

  .section-heading-split,
  .achievement-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-intro {
    font-size: .92rem;
  }

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .profile-heading {
    position: static;
  }

  .profile-heading h2 {
    max-width: 510px;
  }

  .profile-content {
    padding-top: 0;
  }

  .profile-copy p {
    font-size: .94rem;
  }

  .principal-note {
    grid-template-columns: 28px minmax(0,1fr);
    gap: 9px;
    padding: 19px 16px;
    border-radius: 19px;
  }

  .quote-mark {
    font-size: 3.3rem;
  }

  .principal-note p {
    font-size: .84rem;
  }

  .program-grid,
  .achievement-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .program-card {
    min-height: 225px;
    padding: 21px;
  }

  .program-card-top {
    margin-bottom: 23px;
  }

  .program-card p {
    font-size: .87rem;
  }

  .achievement-heading {
    margin-bottom: 28px;
  }

  .achievement-card {
    min-height: 184px;
    padding: 20px;
  }

  .achievement-meta {
    margin-bottom: 20px;
  }

  .spmb-section {
    padding: 30px 0 75px;
  }

  .spmb-panel {
    gap: 28px;
    padding: 24px 18px;
    border-radius: 23px;
  }

  .spmb-heading h2 {
    font-size: 2.55rem;
  }

  .spmb-heading p {
    font-size: .9rem;
  }

  .spmb-waves-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .spmb-note {
    font-size: .68rem;
  }

  .closing-cta {
    padding: 82px 0;
  }

  .closing-cta h2 {
    font-size: clamp(2.55rem,10vw,3.7rem);
  }

  .closing-cta p {
    font-size: .9rem;
  }

  .cta-actions {
    gap: 18px;
    margin-top: 25px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px 22px;
    padding-top: 50px;
    padding-bottom: 38px;
  }

  .footer-brand-block {
    grid-column: 1/-1;
  }

  .footer-contact {
    grid-column: 1/-1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 22px;
  }

  .to-top {
    right: 15px;
    bottom: 15px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }
}

@media(max-width:380px) {

  .brand-name {
    font-size: .8rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .float-card-top {
    left: -7px;
  }

  .float-card-bottom {
    right: -4px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand-block,
  .footer-contact {
    grid-column: auto;
  }
}

/* ============================================================
   ACCESSIBILITY — REDUCED MOTION
   ============================================================ */

@media(prefers-reduced-motion:reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

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

  .hero-image {
    transform: none;
  }

  .status-dot {
    animation: none;
  }
}

/* ============================================================
   PREMIUM MOTION LAYER — SMP NEGERI 4 KUDUS
   ============================================================ */

@media (hover:hover) and (pointer:fine) {

  body.has-premium-cursor,
  body.has-premium-cursor a,
  body.has-premium-cursor button,
  body.has-premium-cursor [role="button"] {
    cursor: none !important;
  }

  body.has-premium-cursor input,
  body.has-premium-cursor textarea,
  body.has-premium-cursor select,
  body.has-premium-cursor [contenteditable="true"] {
    cursor: text !important;
  }
}

/* Custom point cursor */

.premium-cursor-dot,
.premium-cursor-ring {
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
  contain: layout style paint;
}

.premium-cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow:
    0 0 0 5px rgba(237,120,87,.12),
    0 0 18px rgba(237,120,87,.4);
  transition:
    opacity .2s ease,
    width .2s ease,
    height .2s ease,
    margin .2s ease,
    background .2s ease;
}

.premium-cursor-ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(22,43,70,.45);
  border-radius: 50%;
  background: rgba(255,254,250,.07);
  box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  transition:
    opacity .25s ease,
    width .28s var(--motion-spring),
    height .28s var(--motion-spring),
    margin .28s var(--motion-spring),
    border-color .25s ease,
    background .25s ease;
}

body.has-premium-cursor .premium-cursor-dot,
body.has-premium-cursor .premium-cursor-ring {
  opacity: 1;
}

.premium-cursor-ring.is-hover {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-color: rgba(237,120,87,.78);
  background: rgba(237,120,87,.09);
}

.premium-cursor-dot.is-hover {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--orange-dark);
}

.premium-cursor-ring.is-pressed {
  width: 29px;
  height: 29px;
  margin: -14.5px 0 0 -14.5px;
  background: rgba(237,120,87,.16);
}

body.cursor-outside .premium-cursor-dot,
body.cursor-outside .premium-cursor-ring {
  opacity: 0;
}

/* ============================================================
   CINEMATIC HERO ENTRANCE
   ============================================================ */

.js .hero-copy .hero-kicker,
.js .hero-copy .hero-overline,
.js .hero-copy h1,
.js .hero-copy .hero-lead,
.js .hero-copy .hero-actions,
.js .hero-copy .hero-proof {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .75s var(--motion-ease),
    transform .85s var(--motion-ease);
}

.js .hero-copy.in .hero-kicker {
  opacity: 1;
  transform: none;
  transition-delay: 90ms;
}

.js .hero-copy.in .hero-overline {
  opacity: 1;
  transform: none;
  transition-delay: 170ms;
}

.js .hero-copy.in h1 {
  opacity: 1;
  transform: none;
  transition-delay: 250ms;
}

.js .hero-copy.in .hero-lead {
  opacity: 1;
  transform: none;
  transition-delay: 350ms;
}

.js .hero-copy.in .hero-actions {
  opacity: 1;
  transform: none;
  transition-delay: 430ms;
}

.js .hero-copy.in .hero-proof {
  opacity: 1;
  transform: none;
  transition-delay: 520ms;
}

.js .hero-visual.in {
  animation: premiumHeroFloat 8s ease-in-out 900ms infinite;
}

.hero-image-frame {
  transform: translateZ(0);
}

.hero-image {
  will-change: transform;
}

.hero-orb {
  will-change: transform;
  transition: transform .45s var(--motion-ease);
}

.hero-modern {
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
}

.hero-modern .hero-orb-one {
  transform: translate3d(
    calc(var(--hero-shift-x) * -.45),
    calc(var(--hero-shift-y) * -.45),
    0
  );
}

.hero-modern .hero-orb-two {
  transform: translate3d(
    calc(var(--hero-shift-x) * .65),
    calc(var(--hero-shift-y) * .65),
    0
  );
}

.hero-modern .hero-image-frame {
  box-shadow:
    0 34px 70px rgba(22,43,70,.17),
    0 0 0 1px rgba(255,255,255,.6) inset;
}

.hero-modern .hero-image {
  transition:
    transform 1.15s var(--motion-ease),
    filter .8s ease;
}

.hero-visual:hover .hero-image {
  filter: saturate(1.08) contrast(1.025);
}

.float-card {
  transition:
    box-shadow .35s ease,
    border-color .35s ease;
}

.float-card:hover {
  border-color: rgba(237,120,87,.34);
  box-shadow: 0 23px 55px rgba(22,43,70,.19);
}

/* ============================================================
   SCROLL REVEAL + STAGGER ANIMATION
   ============================================================ */

.js .premium-reveal {
  opacity: 0;
  transform: translate3d(0,30px,0) scale(.985);
  transition:
    opacity var(--motion-duration) var(--motion-ease),
    transform var(--motion-duration) var(--motion-ease);
  transition-delay: var(--motion-delay,0ms);
}

.js .premium-reveal.motion-in {
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
}

.js .program-card,
.js .achievement-card,
.js .stat-card,
.js .wave {
  transition-delay: var(--card-delay,0ms);
}

/* ============================================================
   3D CARD INTERACTION
   ============================================================ */

.premium-tilt {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
  transition:
    transform .36s var(--motion-ease),
    box-shadow .35s ease,
    border-color .35s ease;
}

.premium-tilt > * {
  backface-visibility: hidden;
}

.premium-tilt.is-pointer-active {
  transition:
    transform .12s ease-out,
    box-shadow .25s ease;
}

.stat-card.premium-tilt.is-pointer-active,
.program-card.premium-tilt.is-pointer-active,
.achievement-card.premium-tilt.is-pointer-active,
.wave.premium-tilt.is-pointer-active,
.vision-card.premium-tilt.is-pointer-active,
.mission-card.premium-tilt.is-pointer-active,
.principal-note.premium-tilt.is-pointer-active {
  box-shadow: 0 22px 54px rgba(22,43,70,.13);
}

/* ============================================================
   MAGNETIC BUTTON
   ============================================================ */

.premium-magnetic {
  --mag-x: 0px;
  --mag-y: 0px;
  will-change: transform;
  transition:
    transform .28s var(--motion-spring),
    box-shadow .25s ease,
    background .25s ease,
    color .25s ease;
}

.premium-magnetic.is-magnetized {
  transform:
    translate3d(var(--mag-x),var(--mag-y),0)
    translateY(-2px);
}

.btn.premium-magnetic.is-magnetized {
  transform:
    translate3d(var(--mag-x),var(--mag-y),0)
    translateY(-3px);
}

.nav nav a.nav-cta.premium-magnetic.is-magnetized {
  transform:
    translate3d(var(--mag-x),var(--mag-y),0)
    translateY(-2px);
}

/* ============================================================
   CLICK RIPPLE
   ============================================================ */

.btn,
.nav-cta,
.nav-toggle,
.to-top {
  isolation: isolate;
}

.premium-ripple {
  position: absolute;
  z-index: 0;
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255,255,255,.34);
  transform: translate(-50%,-50%) scale(0);
  animation: premiumRipple .68s ease-out forwards;
}

/* ============================================================
   REFINED HOVER DETAILS
   ============================================================ */

.program-card,
.achievement-card,
.stat-card,
.wave,
.vision-card,
.mission-card,
.news article,
.principal-note {
  transform-style: preserve-3d;
}

.program-card .program-icon {
  transition:
    transform .4s var(--motion-spring),
    box-shadow .3s ease;
}

.program-card:hover .program-icon {
  box-shadow: 0 9px 22px rgba(237,120,87,.16);
}

.achievement-card .achievement-medal {
  transition: transform .5s var(--motion-spring);
}

.achievement-card:hover .achievement-medal {
  transform: rotate(35deg) scale(1.12);
}

.news article .thumb img {
  transition:
    transform .8s var(--motion-ease),
    filter .5s ease;
}

.news article:hover .thumb img {
  transform: scale(1.07);
  filter: saturate(1.08);
}

.news article h3 a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .25s ease;
}

.news article h3 a:hover {
  color: var(--orange-dark);
}

.mission-list li {
  transition:
    background .25s ease,
    padding .25s ease,
    border-color .25s ease;
}

.mission-list li:hover {
  padding-inline: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.62);
}

.footer-column a,
.footer-top-link {
  transition:
    color .25s ease,
    transform .25s var(--motion-spring);
}

/* ============================================================
   DECORATIVE MICRO ANIMATIONS
   ============================================================ */

.status-dot {
  animation: premiumStatusPulse 2.1s ease-in-out infinite;
}

.hero-stamp {
  animation: premiumStamp 7s ease-in-out infinite;
}

.hero-scroll .scroll-line {
  transform-origin: top;
  animation: premiumScrollLine 1.9s ease-in-out infinite;
}

.footer-credit b {
  display: inline-block;
  animation: premiumHeartbeat 2.1s ease-in-out infinite;
}

.to-top.visible {
  animation: premiumTopButton .45s var(--motion-spring) both;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */

@keyframes premiumRipple {
  to {
    opacity: 0;
    transform: translate(-50%,-50%) scale(18);
  }
}

@keyframes premiumHeroFloat {
  0%,100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes premiumStatusPulse {
  0%,100% {
    box-shadow: 0 0 0 4px rgba(94,154,121,.14);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(94,154,121,0);
  }
}

@keyframes premiumStamp {
  0%,100% {
    transform: rotate(-7deg) translateY(0);
  }
  50% {
    transform: rotate(-4deg) translateY(-5px);
  }
}

@keyframes premiumScrollLine {
  0% {
    transform: scaleY(.35);
    opacity: .45;
  }
  55% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(.35);
    opacity: .45;
  }
}

@keyframes premiumHeartbeat {
  0%,45%,100% {
    transform: scale(1);
  }
  10%,25% {
    transform: scale(1.18);
  }
}

@keyframes premiumTopButton {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================================
   TABLET POINTER SETTINGS
   ============================================================ */

@media (max-width:900px) {

  .premium-cursor-dot,
  .premium-cursor-ring {
    display: none !important;
  }

  .premium-tilt {
    transform: none !important;
  }
}

/* ============================================================
   MOBILE MOTION SETTINGS
   ============================================================ */

@media (max-width:640px) {

  .js .hero-visual.in {
    animation: none;
  }

  .hero-stamp {
    animation: none;
  }

  .premium-magnetic.is-magnetized {
    transform: none;
  }

  .premium-tilt {
    will-change: auto;
  }
}

/* ============================================================
   ACCESSIBILITY — REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion:reduce) {

  html {
    scroll-behavior: auto !important;
  }

  .premium-cursor-dot,
  .premium-cursor-ring {
    display: none !important;
  }

  .js .premium-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .js .hero-copy .hero-kicker,
  .js .hero-copy .hero-overline,
  .js .hero-copy h1,
  .js .hero-copy .hero-lead,
  .js .hero-copy .hero-actions,
  .js .hero-copy .hero-proof {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .premium-tilt,
  .premium-magnetic {
    transform: none !important;
    transition: none !important;
  }

  .premium-ripple {
    display: none !important;
  }
}

/* ============================================================
   FINAL INTERACTIVE SURFACE FIX
   ============================================================ */

.nav nav a.nav-cta,
.nav-toggle,
.to-top {
  position: relative;
  overflow: hidden;
}


/* FIX BAGIAN PUTIH DI BAWAH FOOTER */

#kontak.footer {
    box-sizing: border-box;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    margin-bottom: -64px !important;
    background-color: #101f32 !important;
}

