/* ==========================================================================
   MIKOTO ACADEMY — components.css
   Buttons, cards, placeholders, steps, testimonials, FAQ, forms, gallery
   ========================================================================== */

/* ==========================================================================
   1. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  cursor: pointer;
  text-align: center;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}

.btn svg { flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 26px var(--accent-soft);
}
.btn--primary:hover { background: var(--accent-strong); box-shadow: 0 14px 32px var(--accent-soft); }

.btn--solid {
  background: var(--brand-strong);
  color: var(--c-ivory-50);
}
.btn--solid:hover { background: var(--accent); color: #fff; }

.btn--ghost {
  border-color: var(--border-on-deep);
  color: var(--text-on-deep);
  background: rgba(255, 255, 255, 0.05);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }

.btn--outline {
  border-color: var(--border);
  color: var(--text);
  background: var(--bg-card);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--wa {
  background: #22C55E;
  color: #06280F;
}
.btn--wa:hover { background: #16A34A; color: #fff; }

.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.82rem; }
.btn--lg { padding: 1rem 1.85rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* Inline arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.link-arrow:hover { border-bottom-color: currentColor; gap: 0.7rem; }

/* ==========================================================================
   2. IMAGE PLACEHOLDERS  (clearly labelled edit slots)
   ========================================================================== */
.placeholder {
  position: relative;
  display: grid;
  place-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1.25rem;
  background:
    repeating-linear-gradient(-45deg,
      color-mix(in srgb, var(--accent) 7%, transparent) 0 12px,
      transparent 12px 24px),
    var(--bg-tint);
  border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--text-muted);
  min-height: 150px;
  overflow: hidden;
}

.placeholder__tag {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.placeholder__label {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  max-width: 34ch;
}

.placeholder__meta {
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 40ch;
}

.placeholder__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  opacity: 0.95;
}

.placeholder--deep {
  background:
    repeating-linear-gradient(-45deg,
      rgba(255, 255, 255, 0.05) 0 12px,
      transparent 12px 24px),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.32);
}
.placeholder--deep .placeholder__label { color: var(--text-on-deep); }
.placeholder--deep .placeholder__meta { color: var(--text-on-deep-muted); }
.placeholder--deep .placeholder__code { color: var(--accent-strong); }

.placeholder--tall { min-height: 300px; }
.placeholder--avatar {
  width: 50px; height: 50px;
  min-height: 0;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
}
.placeholder--avatar .placeholder__label { font-size: 0.5rem; letter-spacing: 0.04em; max-width: 100%; }
.placeholder--avatar .placeholder__tag,
.placeholder--avatar .placeholder__meta,
.placeholder--avatar .placeholder__code { display: none; }
.placeholder--short { min-height: 108px; }
.placeholder--round { border-radius: var(--radius-lg); }

/* Media frame that holds either a real image or a placeholder */
.figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-tint);
  border: 1px solid var(--border);
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure figcaption {
  padding: 0.7rem 0.95rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  line-height: 1.55;
}

/* A figure that holds a LOGO rather than a photo: show the whole mark centred
   on white instead of cropping it, and cap the height so it doesn't dominate. */
.figure--logo { display: grid; }
.figure--logo img {
  width: 100%;
  height: auto;
  max-height: 190px;
  object-fit: contain;
  padding: clamp(1.5rem, 5vw, 2.75rem);
  background: #fff;
}

/* Brand logo block used inline in editorial sections (light surfaces).
   White plate removed with multiply; navy/blue/red ink survives. */
.brand-logo-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  flex-wrap: wrap;
}
.brand-logo-block--left { justify-content: flex-start; }
/* Brand logo blocks for editorial sections — real transparent PNGs, so they
   sit directly on the page background with no plate or border. */
.brand-logo-block__mark,
.brand-logo-block__stacked { height: auto; }
.brand-logo-block__mark { width: clamp(88px, 13vw, 120px); }
.brand-logo-block__stacked { width: clamp(150px, 21vw, 205px); }

/* ==========================================================================
   3b. POLICY WATCH CARD (育成就労 update)
   ========================================================================== */
.card--policy {
  margin-top: clamp(1.75rem, 4vw, 3rem);
  border-left: 4px solid var(--accent);
}
.card--policy__head {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.15rem);
  margin-bottom: 0.9rem;
}
.card--policy__head .kanji-accent {
  color: var(--accent);
  flex-shrink: 0;
}
.card__block {
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
}
.card__subtitle {
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}
@media (max-width: 640px) {
  .card--policy__head { flex-direction: column; align-items: flex-start; }
}


.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 2.4vw, 2rem);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
}

.card__index {
  font-family: var(--font-serif);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: var(--ls-kanji);
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
}

.card__title {
  font-size: var(--fs-h4);
  margin-bottom: 0.6rem;
}

.card__text { font-size: 0.93rem; line-height: 1.8; color: var(--text-muted); }

.card__list { margin-top: 0.9rem; display: grid; gap: 0.5rem; font-size: 0.9rem; }

.card__list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  line-height: 1.65;
}

.card__list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px; height: 6px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

.card--deep {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--border-on-deep);
  backdrop-filter: blur(4px);
}
html[data-theme="c"] .card--deep { background: rgba(255, 255, 255, 0.05); }
.card--deep .card__title { color: var(--text-on-deep); }
.card--deep .card__text { color: var(--text-on-deep-muted); }
.card--deep .card__list { color: var(--text-on-deep-muted); }

.card--accent { border-top: 3px solid var(--accent); }

.card--feature .card__title { font-size: var(--fs-h3); }

.card--quote {
  display: grid;
  gap: 1rem;
  align-content: start;
}

/* ==========================================================================
   4. STATS / BADGES / NOTE BANNERS
   ========================================================================== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.stat {
  background: var(--bg-card);
  padding: clamp(1rem, 2vw, 1.5rem);
}
html[data-theme="c"] .stat { background: rgba(255, 255, 255, 0.04); }

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: var(--display-weight);
  line-height: 1.05;
  color: var(--text);
}
.stat b em { font-style: normal; color: var(--accent); }
.stat small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  line-height: 1.55;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.badge--neutral {
  background: var(--bg-tint);
  color: var(--text-muted);
  border-color: var(--border);
}

.badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Callout / disclaimer banners ------------------------------------------- */
.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border-radius: var(--radius-md);
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  background: var(--accent-soft);
  font-size: 0.86rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.callout b { display: block; margin-bottom: 0.2rem; }
.callout svg { color: var(--accent); flex-shrink: 0; margin-top: 0.15rem; }

.callout--info {
  border-color: var(--border);
  background: var(--bg-tint);
}
.callout--info svg { color: var(--brand); }

.section--deep .callout {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text-on-deep-muted);
}
.section--deep .callout svg { color: var(--accent-strong); }

/* ==========================================================================
   5. STEP FLOW (Alur Pendaftaran)
   ========================================================================== */
.steps {
  display: grid;
  gap: 0;
  position: relative;
  z-index: 1;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: clamp(0.9rem, 2.4vw, 1.9rem);
  padding-block: clamp(1.25rem, 2.6vw, 1.9rem);
  border-top: 1px solid var(--border);
  position: relative;
  align-items: start;
}

.step:last-child { border-bottom: 1px solid var(--border); }

.step__num {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--bg-card);
  flex-shrink: 0;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.step:hover .step__num { background: var(--accent); color: #fff; }

.step__body { display: grid; gap: 0.55rem; }

.step__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem;
}

.step__title { font-size: var(--fs-h4); }

.step__time {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.16rem 0.6rem;
}

.step__text { font-size: 0.93rem; line-height: 1.8; color: var(--text-muted); }

.step__docs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

/* Compact horizontal variant used on Home */
.steps--compact .step { grid-template-columns: 54px 1fr; padding-block: 1.1rem; }
.steps--compact .step__num { width: 44px; height: 44px; font-size: 1.05rem; }

/* ==========================================================================
   6. TESTIMONIALS
   ========================================================================== */
.quote {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: clamp(1.3rem, 2.4vw, 1.85rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
}

.quote__mark {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.4;
}

.quote__text {
  font-family: var(--font-serif);
  font-size: clamp(0.98rem, 1.25vw, 1.1rem);
  line-height: 1.85;
  color: var(--text);
}

.quote__meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Avatar beside a testimonial quote — circular, as originally designed.
   The only addition is object-fit: cover, which stops the portrait source
   photos being stretched into the square box (faces look squashed without it).
   No size, shape or crop changes otherwise. */
.quote__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  object-fit: cover;
  display: block;
}

.quote__who { display: grid; line-height: 1.35; }
.quote__who b { font-size: 0.92rem; }
.quote__who small { font-size: 0.76rem; color: var(--text-muted); }

/* ==========================================================================
   7. FAQ ACCORDION
   ========================================================================== */
.faq { display: grid; gap: 0.7rem; position: relative; z-index: 1; }

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.faq__item[open] { border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--shadow-sm); }

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.95rem, 2vw, 1.2rem) clamp(1rem, 2.2vw, 1.4rem);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  font-weight: 600;
  line-height: 1.5;
  list-style: none;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
  content: "";
  flex-shrink: 0;
  width: 12px; height: 12px;
  margin-top: 0.4rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.faq__item[open] .faq__q::after { transform: rotate(-135deg); }

.faq__a {
  padding: 0 clamp(1rem, 2.2vw, 1.4rem) clamp(1rem, 2.2vw, 1.35rem);
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-muted);
  display: grid;
  gap: 0.7rem;
}

/* ==========================================================================
   8. FORMS
   ========================================================================== */
.form {
  display: grid;
  gap: clamp(1rem, 2vw, 1.35rem);
  position: relative;
  z-index: 1;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(0.85rem, 2vw, 1.2rem);
}

.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }

.field > label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.field > label .req { color: var(--accent); margin-left: 0.15rem; }

.field__hint { font-size: 0.74rem; color: var(--text-muted); line-height: 1.55; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  font-size: 0.92rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field textarea { min-height: 116px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--accent); }

.field__error {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
}

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.check input { margin-top: 0.25rem; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--accent); }

.form__status {
  padding: 0.9rem 1.05rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.65;
  border: 1px solid var(--border);
}
.form__status--ok { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.45); }
.form__status--err { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* ==========================================================================
   9. GALLERY
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(0.75rem, 1.8vw, 1.25rem);
  position: relative;
  z-index: 1;
}

.gallery__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 210px;
  display: grid;
}

.gallery__item--wide { grid-column: span 2; min-height: 280px; }
.gallery__item--tall { grid-row: span 2; }

.gallery .placeholder,
.gallery .figure { height: 100%; min-height: inherit; }

/* A gallery cell holding a REAL photo plus its caption. */
.gallery__item--photo {
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.gallery__item--photo > img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--bg-tint);
}
.gallery__item--photo figcaption {
  padding: 0.68rem 0.9rem;
  font-size: 0.73rem;
  line-height: 1.5;
  color: var(--text-muted);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   10. CONTACT / MAP / INFO LIST
   ========================================================================== */
.info-list { display: grid; gap: 1.15rem; position: relative; z-index: 1; }

.info-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.info-list__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.info-list b { display: block; font-size: 0.79rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.info-list span, .info-list a { font-size: 0.95rem; line-height: 1.7; }
.info-list a:hover { color: var(--accent); }

.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-tint);
  min-height: 320px;
  position: relative;
}

.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

/* Simple data table (used on Fasilitas page) */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 460px; }
table.data th, table.data td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
table.data th { font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); background: var(--bg-tint); }
table.data tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   11. PAGE HERO (inner pages)
   ========================================================================== */
.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--bg-deep);
  color: var(--hero-text);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}

.page-hero__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin-top: 0.75rem;
  text-wrap: balance;
}

.page-hero p {
  margin-top: 1rem;
  max-width: 62ch;
  color: var(--text-on-deep-muted);
  line-height: 1.85;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--text-on-deep-muted);
}
.breadcrumb a:hover { color: var(--accent-strong); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 0.45rem; opacity: 0.5; }
.breadcrumb { list-style: none; }
.breadcrumb li { display: inline-flex; }

/* --- Theme B (Ivory Editorial): inner-page heroes become LIGHT editorial
       mastheads. Without this, every inner page opens with a navy band while
       the home hero is ivory, so the variation does not read as one design.
       Deep accent sections (.section--deep, .cta-band) and the navy footer are
       kept on purpose for hierarchy. --- */
html[data-theme="b"] .page-hero {
  background: var(--bg-alt);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
html[data-theme="b"] .page-hero h1 { color: var(--text); }
html[data-theme="b"] .page-hero p { color: var(--text-muted); }
html[data-theme="b"] .page-hero .breadcrumb { color: var(--text-muted); }
html[data-theme="b"] .page-hero .breadcrumb a:hover { color: var(--accent); }
html[data-theme="b"] .page-hero .kanji-watermark { color: var(--text); opacity: 0.055; }
html[data-theme="b"] .page-hero .badge { background: var(--accent-soft); }
html[data-theme="b"] .page-hero .btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--bg-card);
}
html[data-theme="b"] .page-hero .btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   12. CTA BAND
   ========================================================================== */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(760px 460px at 82% 12%, var(--accent-soft), transparent 70%),
    var(--bg-deep);
  color: var(--text-on-deep);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  text-align: center;
}

.cta-band__inner {
  max-width: 780px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.cta-band h2 { font-size: var(--fs-h2); text-wrap: balance; }
.cta-band p { margin-top: 1rem; color: var(--text-on-deep-muted); line-height: 1.85; }
.cta-band .btn-row { margin-top: 1.75rem; justify-content: center; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ==========================================================================
   13. ACCORDION-FREE CONTENT HELPERS
   ========================================================================== */
.prose { display: grid; gap: 1rem; max-width: 68ch; font-size: 0.96rem; line-height: 1.9; color: var(--text-muted); }
.prose strong { color: var(--text); }
.prose h3 { margin-top: 0.6rem; color: var(--text); }

.bullet-list { display: grid; gap: 0.7rem; font-size: 0.94rem; line-height: 1.8; color: var(--text-muted); }
.bullet-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.bullet-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  margin-top: 0.3rem;
}

.num-list { display: grid; gap: 0.7rem; font-size: 0.94rem; line-height: 1.8; color: var(--text-muted); counter-reset: n; }
.num-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.num-list li::before {
  counter-increment: n;
  content: counter(n);
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 0.25rem;
}

/* Person / team card */
.person {
  text-align: center;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}
.person .placeholder { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); min-height: 0; }

/* Real team portrait — portrait 3:4 crop, rounded, subtle ring.
   NOTE: `height` must be stated explicitly here. Without it the width/height
   attributes on the <img> act as an UNOPPOSED presentational hint, so the box
   grows to the photo's full pixel height (359x1128!) instead of following
   aspect-ratio. CSS aspect-ratio already reserves the space for CLS, so those
   attributes were removed from the markup as well — belt and braces. */
.person__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 30%;      /* keeps headroom; never crops the top of the head */
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-tint);
  display: block;
}
.person b { font-family: var(--font-display); font-size: 1.02rem; }
.person small { font-size: 0.78rem; color: var(--accent); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }

/* Timeline (used on Tentang) */
.timeline { display: grid; gap: 0; position: relative; z-index: 1; }
.timeline__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: clamp(0.9rem, 2.4vw, 1.75rem);
  padding-block: 1.15rem;
  border-top: 1px solid var(--border);
}
.timeline__row:last-child { border-bottom: 1px solid var(--border); }
.timeline__year {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
}
.timeline__body { display: grid; gap: 0.35rem; }
.timeline__body b { font-size: 0.98rem; }
.timeline__body p { font-size: 0.9rem; line-height: 1.75; color: var(--text-muted); }

@media (max-width: 640px) {
  .timeline__row { grid-template-columns: 1fr; gap: 0.35rem; }
  .step { grid-template-columns: 58px 1fr; }
  .gallery__item--wide { grid-column: span 1; }
}
