/* =========================================================
   mastedigital: School Branding landing page
   Layout: bold block headline beside a medallion photo card,
   navy stats band, hard-shadow cards on a white dotted ground.
   Edit colors and fonts in :root only.
   ========================================================= */
:root {
  --navy: #0C1F7A;
  --navy-deep: #08134A;     /* borders, hard shadows, footer */
  --navy-bright: #2A3FD1;   /* script accent and small labels */
  --yellow: #FFE21A;
  --yellow-soft: #FFF7BF;
  --paper: #FFFFFF;
  --mist: #F5F6FB;
  --line: #DCE0EE;
  --ink: #0B1233;
  --muted: #4D5573;
  --dot: rgba(12, 31, 122, .09);

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --max: 1180px;
  --radius: 18px;
  --border: 2px solid var(--navy-deep);
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Type ---------- */
h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -.03em; color: var(--ink);
}
h3 { font-size: 1.15rem; font-weight: 800; line-height: 1.35; letter-spacing: -.01em; color: var(--ink); }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.18rem); color: var(--muted); max-width: 58ch; }

.pill {
  justify-self: start; display: inline-block; width: fit-content;
  padding: .45rem 1rem; border-radius: 999px;
  background: var(--navy); color: #fff;
  font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4;
  box-shadow: 0 3px 0 var(--navy-deep);
}
.pill--yellow { background: var(--yellow); color: var(--navy-deep); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }

.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 46rem; }
.section-head--center { justify-items: center; text-align: center; margin-inline: auto; }
.section-head--center .pill { justify-self: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 54px; padding: .8rem 1.5rem;
  border: var(--border); border-radius: 14px;
  font: 800 1rem/1.25 var(--font); text-decoration: none; text-align: center;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--navy-deep);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--navy-deep); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--navy-deep); }
.btn--yellow { background: var(--yellow); color: var(--navy-deep); }
.btn--yellow:hover { background: #FFE94D; }
.btn--ghost { background: var(--paper); color: var(--navy-deep); }
.btn--outline { background: var(--paper); color: var(--navy); }
.btn--outline:hover { background: var(--yellow-soft); }
.btn--sm { min-height: 44px; padding: .5rem 1rem; font-size: .9rem; border-radius: 12px; box-shadow: 0 4px 0 var(--navy-deep); }
.btn--lg { min-height: 60px; padding: 1rem 1.8rem; font-size: 1.06rem; }
.btn--block { width: 100%; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.logo__mark {
  width: 36px; height: 36px; display: grid; place-items: center; flex: none;
  background: var(--navy); color: var(--yellow); border-radius: 10px;
  font-weight: 800; font-size: 1.25rem; line-height: 1; padding-bottom: 3px;
  box-shadow: 3px 3px 0 var(--yellow);
}
.logo__text { font-weight: 400; font-size: 1.2rem; letter-spacing: -.02em; }
.logo__text b { font-weight: 800; color: var(--navy); }
.logo--light { color: #fff; }
.logo--light .logo__text b { color: var(--yellow); }
.logo--light .logo__mark { background: var(--yellow); color: var(--navy-deep); box-shadow: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
@media (max-width: 520px) {
  .nav .logo__text { font-size: 1.05rem; }
  .nav .btn--sm { padding-inline: .75rem; font-size: .8rem; }
}
@media (max-width: 380px) {
  .nav .btn--sm span { display: none; }
  .nav .btn--sm::after { content: "Kerjasama"; }
}

/* ---------- Hero ---------- */
.hero {
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.hero__copy { display: grid; gap: 1.4rem; min-width: 0; }
.brandline {
  display: inline-flex; align-items: center; gap: .7rem;
  font-weight: 800; font-size: .85rem; color: var(--navy-bright);
  letter-spacing: .2em; text-transform: uppercase;
}
.brandline::before { content: ""; width: 30px; height: 3px; border-radius: 2px; background: var(--navy-bright); }
.hero__title {
  font-size: clamp(2.3rem, 1.3rem + 3.6vw, 3.9rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -.035em; color: var(--navy);
}
/* Fixed three-line break on every screen size */
.hero__line { display: block; white-space: nowrap; }
@media (max-width: 600px) {
  .hero__title { font-size: min(8.4vw, 2.6rem); line-height: 1.2; }
}
.script {
  font-family: "Courgette", "Brush Script MT", cursive;
  font-weight: 400; letter-spacing: 0; font-size: 1.08em;
  color: var(--navy-bright);
}
.marker {
  color: inherit; padding: 0 .12em;
  background: linear-gradient(transparent 52%, var(--yellow) 52%, var(--yellow) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--muted); max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .3rem; }

.photo-card { position: relative; margin: 0; width: 100%; max-width: 440px; justify-self: center; padding-bottom: 28px; }
.photo-card__frame {
  position: relative; aspect-ratio: 1 / 1.08; max-width: 100%;
  border: var(--border); border-radius: 24px;
  background-color: var(--yellow);
  background-image: radial-gradient(rgba(8, 19, 74, .14) 1.2px, transparent 1.3px);
  background-size: 18px 18px;
  box-shadow: 12px 12px 0 var(--navy);
  display: grid; place-items: center;
}
.photo-card__circle {
  position: relative; z-index: 2;
  width: 80%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: #fff; border: var(--border);
}
.photo-card__circle img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; transform: scale(1.04); }
.photo-card__ring {
  position: absolute; z-index: 1; width: 92%; aspect-ratio: 1; border-radius: 50%;
  border: 12px solid var(--navy);
  border-right-color: transparent; border-bottom-color: transparent;
  transform: rotate(-20deg);
}
.photo-card__dot {
  position: absolute; z-index: 3; right: 9%; bottom: 20%;
  width: 26px; height: 26px; border-radius: 50%; background: var(--navy); border: 3px solid #fff;
}
.photo-card__tag {
  position: absolute; z-index: 4; left: 50%; bottom: 0; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 0; white-space: nowrap;
  padding: .6rem 1.3rem; border-radius: 14px;
  background: var(--navy); color: #fff; border: var(--border);
  box-shadow: 0 4px 0 var(--navy-deep);
  line-height: 1.3;
}
.photo-card__tag strong { font-size: 1.05rem; font-weight: 800; }
.photo-card__tag span { font-size: .78rem; color: #C9D1F2; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .photo-card { max-width: 360px; }
}
@media (max-width: 480px) {
  .hero__copy .pill { font-size: .6rem; letter-spacing: .05em; padding-inline: .8rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .photo-card__frame { box-shadow: 8px 8px 0 var(--navy); }
}

/* Hero load sequence (content is visible at rest; this only plays once) */
@media (prefers-reduced-motion: no-preference) {
  .load-1, .load-2, .load-3, .load-4 { animation: rise .7s var(--ease) both; }
  .load-2 { animation-delay: .08s; }
  .load-3 { animation-delay: .16s; }
  .load-4 { animation-delay: .24s; }
  .load-photo { animation: pop-in .8s var(--ease) .15s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) rotate(-2deg); } to { opacity: 1; transform: none; } }

/* ---------- Decorative ornaments ---------- */
.deco { position: absolute; pointer-events: none; }
.deco--spark path { fill: var(--yellow); stroke: var(--navy-deep); stroke-width: 1.2; stroke-linejoin: round; }

.photo-card .deco { z-index: 0; }
.deco--arrow {
  width: 64px; top: -26px; left: -40px;
  fill: none; stroke: var(--navy-bright); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round;
}
.deco--spark-lg { width: 46px; top: 34%; left: -46px; }
.deco--spark-sm { width: 24px; top: calc(34% + 52px); left: -18px; }
.deco--spark-sm path { fill: var(--navy-bright); stroke: none; }
.deco--arc {
  width: 130px; aspect-ratio: 1; right: -52px; bottom: 70px; border-radius: 50%;
  border: 16px solid var(--yellow); border-left-color: transparent; border-top-color: transparent;
  transform: rotate(-30deg);
}
@media (max-width: 480px) {
  .deco--arrow { width: 44px; top: -18px; left: -14px; }
  .deco--spark-lg { width: 34px; left: -16px; }
  .deco--spark-sm { left: -10px; }
  .deco--arc { width: 96px; right: -22px; border-width: 12px; }
}

.band--deco { position: relative; overflow: hidden; }
.band--deco > .wrap { position: relative; z-index: 1; }
.deco--sec-spark { width: 54px; top: 64px; right: max(24px, calc(50% - 560px)); }
.deco--sec-spark-sm { width: 26px; top: 128px; right: max(86px, calc(50% - 500px)); }
.deco--sec-spark-sm path { fill: var(--navy-bright); stroke: none; }
@media (max-width: 720px) {
  .deco--sec-spark { width: 38px; top: 40px; }
  .deco--sec-spark-sm { display: none; }
}

/* ---------- Stats band ---------- */
.stats { background: var(--navy); color: #fff; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.stats__chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stats__chips li {
  display: grid; gap: .1rem; padding: .9rem 1.1rem;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px;
  line-height: 1.4;
}
.stats__chips strong { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; }
.stats__chips strong::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); flex: none; }
.stats__chips span { font-size: .85rem; color: #C9D1F2; }
@media (max-width: 860px) { .stats__chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .stats__chips { grid-template-columns: 1fr; } }

/* ---------- Bands ---------- */
.band { padding-block: clamp(4rem, 8vw, 6.5rem); }
.band--mist {
  background-color: var(--mist);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__copy { display: grid; gap: 1.2rem; min-width: 0; }
.focus { display: grid; gap: 1rem; min-width: 0; }
.focus__item {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 1rem; align-items: center;
  padding: 1.1rem 1.25rem; background: var(--paper);
  border: var(--border); border-radius: 16px; box-shadow: 6px 6px 0 var(--yellow);
}
.focus__item:nth-child(2) { margin-left: clamp(0rem, 2vw, 1.5rem); }
.focus__item:nth-child(3) { margin-left: clamp(0rem, 4vw, 3rem); }
.focus__item p { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.focus__icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--navy); color: var(--yellow); border-radius: 14px;
}
.focus__icon svg, .program__icon svg, .contact__icon svg {
  width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .focus__item:nth-child(n) { margin-left: 0; }
}

/* ---------- Programs ---------- */
.programs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; align-items: stretch; }
.program {
  display: flex; flex-direction: column; gap: .8rem;
  padding: 1.6rem; background: var(--paper);
  border: var(--border); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--navy);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.program:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--navy); }
.program p { color: var(--muted); font-size: .98rem; flex: 1; margin-bottom: .6rem; }
.program__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .4rem; }
.program__icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--yellow-soft); color: var(--navy); border: var(--border); border-radius: 14px;
}
/* Not yet available: looks the same as an active card, the button is inert */
.program[data-available="false"] .btn { cursor: default; pointer-events: none; }
.program--feature { background: var(--navy); box-shadow: 8px 8px 0 var(--yellow); }
.program--feature:hover { box-shadow: 10px 10px 0 var(--yellow); }
.program--feature h3 { color: #fff; }
.program--feature p { color: #C9D1F2; }
.program--feature .program__icon { background: var(--yellow); color: var(--navy-deep); }
.program--feature .btn { box-shadow: 0 5px 0 rgba(0, 0, 0, .45); }
@media (max-width: 920px) {
  .programs { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

/* ---------- Consultation ---------- */
.consult {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding: clamp(1.8rem, 5vw, 3.5rem);
  background-color: var(--navy);
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  color: #fff; border: var(--border); border-radius: 26px;
  box-shadow: 12px 12px 0 var(--yellow);
}
.consult__copy { display: grid; gap: 1.2rem; justify-items: start; min-width: 0; }
.consult h2 { color: #fff; }
.consult .lead { color: #D3D9F5; }
.consult .btn { box-shadow: 0 5px 0 rgba(0, 0, 0, .45); margin-top: .4rem; }
.consult__topics {
  display: grid; gap: .9rem; padding: 1.4rem;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px;
  min-width: 0;
}
.consult__topics-title { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.consult__topics ul { display: grid; gap: .6rem; }
.consult__topics li {
  position: relative; padding: .7rem .9rem .7rem 2.6rem;
  background: var(--paper); color: var(--ink); border-radius: 12px;
  font-weight: 700; font-size: .95rem; line-height: 1.4;
}
.consult__topics li::before {
  content: ""; position: absolute; left: .8rem; top: 50%; transform: translateY(-50%);
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308134A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 62% no-repeat;
}
@media (max-width: 860px) {
  .consult { grid-template-columns: 1fr; box-shadow: 8px 8px 0 var(--yellow); }
  .consult .btn { width: 100%; }
}

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; max-width: 860px; margin-inline: auto; }
.contact {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  padding: 1.4rem 1.5rem; text-decoration: none;
  background: var(--paper); border: var(--border); border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--navy);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.contact:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--navy); }
.contact:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--navy); }
.contact__icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--navy); color: var(--yellow); border-radius: 16px;
}
.contact__body { display: grid; gap: .1rem; min-width: 0; line-height: 1.35; }
.contact__label { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact__body strong { font-size: 1.12rem; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.contact__arrow { font-size: 1.4rem; font-weight: 800; color: var(--navy); transition: transform .2s var(--ease); }
.contact:hover .contact__arrow { transform: translateX(4px); }
.contact--yellow { background: var(--yellow); }
.contact--yellow .contact__label { color: var(--navy); }
@media (max-width: 720px) { .contacts { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep); color: #fff;
  padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
}
.footer__inner { display: grid; justify-items: center; gap: .7rem; text-align: center; }
.footer__tag { font-weight: 700; color: var(--yellow); font-size: .95rem; }
.footer__copy { font-size: .88rem; color: #A9B2D9; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
