/* ===== Token ===== */
:root {
  --navy: #0E2240;
  --navy-2: #16315A;
  --orange: #F26A21;
  --orange-d: #C9500F;
  --gold: #FFC21A;
  --paper: #FFFFFF;
  --tint: #EEF2F8;
  --ink: #15243B;
  --muted: #5A6B84;
  --line: #D7DEEA;
  --green: #0F3D2E;
  --brass: #D2A94A;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1120px;
  --r: 14px;
}

/* ===== Dasar ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--orange); color: #fff; }

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--gold); color: var(--navy); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; z-index: 100; }
.skip:focus { top: 1rem; }
.muted { color: var(--muted); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 34, 64, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(5, 14, 30, .35); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }
.brand img { width: 38px; height: 38px; object-fit: cover; border-radius: 10px; }

.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; background: none; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; color: #fff; cursor: pointer; }
#nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-top: 1px solid rgba(255,255,255,.12); display: none; }
#nav.open { display: block; }
#nav ul { display: flex; flex-direction: column; padding: .75rem 1.25rem 1.25rem; }
#nav a { display: block; padding: .8rem 0; text-decoration: none; font-weight: 500; color: rgba(255,255,255,.82); border-bottom: 1px solid rgba(255,255,255,.08); }
#nav a:hover, #nav a.active { color: var(--gold); }
#nav .nav-cta { margin-top: .9rem; text-align: center; background: var(--orange); color: #fff; border-radius: 999px; border: 0; font-weight: 700; }
#nav .nav-cta:hover { background: var(--orange-d); color: #fff; }

/* ===== Tombol ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #ff7f3a; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-accent { background: var(--gold); color: var(--navy); }
.btn-accent:hover { background: #ffd24d; }
.link { font-weight: 700; color: var(--orange-d); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link:hover { color: var(--navy); }

/* ===== Hero ===== */
.hero { background: radial-gradient(1200px 600px at 85% 10%, var(--navy-2), var(--navy) 60%); color: #fff; padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 8vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-name { font-weight: 600; color: var(--gold); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.25rem, 7vw, 4.25rem); font-weight: 800; max-width: 14ch; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: rgba(255,255,255,.82); max-width: 52ch; margin: 1.4rem 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.atom { position: relative; margin: 0 auto; width: min(78%, 300px); aspect-ratio: 1; order: -1; }
.shells { position: absolute; inset: 0; width: 100%; height: 100%; }
.shell { transform-origin: 200px 200px; animation: spin 40s linear infinite; }
.shell circle:first-child { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 1.2; }
.shell .e { fill: var(--orange); }
.shell .e.gold { fill: var(--gold); }
.s1 { animation-duration: 16s; }
.s2 { animation-duration: 26s; animation-direction: reverse; }
.s3 { animation-duration: 34s; }
.s4 { animation-duration: 44s; animation-direction: reverse; }
.s5 { animation-duration: 56s; }
@keyframes spin { to { transform: rotate(360deg); } }

.portrait { position: absolute; left: 50%; top: 50%; width: 44%; height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; object-fit: cover; border: 4px solid var(--gold); background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.4); }

.tile { position: absolute; left: -4%; bottom: -9%; width: max-content; min-width: 78px; padding: .45rem .6rem .5rem; background: var(--orange); color: #fff; border-radius: 8px; display: grid; line-height: 1.1; box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.tile-num { font-size: .78rem; font-weight: 600; }
.tile-sym { font-family: var(--serif); font-size: 2.1rem; font-weight: 800; line-height: 1; margin: .1rem 0; }
.tile-name { font-size: .72rem; font-weight: 600; letter-spacing: .01em; }
.tile-cfg { margin-top: .35rem; padding-top: .3rem; border-top: 1px solid rgba(255,255,255,.45); font-size: .66rem; font-weight: 600; white-space: nowrap; }
.tile-cfg sup { font-size: .75em; line-height: 0; }

/* Satu animasi masuk di hero */
.hero-text > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; }
.atom { animation: fade 1s .2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }

/* ===== Seksi umum ===== */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tint { background: var(--tint); }
.section h2 { font-size: clamp(1.75rem, 4.2vw, 2.75rem); font-weight: 700; color: var(--navy); }
.section-title { max-width: 24ch; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.split { display: grid; gap: 1.75rem; }
.prose { max-width: 62ch; }
.prose p:last-of-type { margin-bottom: 0; }

.facts { margin: 2rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: .1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .9rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--navy); }

/* ===== Peran ===== */
.roles { display: grid; gap: 0; border-top: 2px solid var(--navy); }
.roles li { display: grid; gap: .5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.roles h3 { font-size: 1.6rem; color: var(--navy); }
.roles p { margin: 0; color: var(--muted); max-width: 60ch; }

/* ===== Karya ===== */
.works { display: grid; gap: 1.25rem; }
.work { padding: 1.6rem; border-radius: var(--r); background: var(--tint); border: 1px solid var(--line); }
.work h3 { font-size: 1.45rem; color: var(--navy); margin-bottom: .6rem; }
.work p { color: var(--muted); }
.work .link { display: inline-block; margin-top: .25rem; }

.work-lab { background: var(--navy); border-color: var(--navy); color: #fff; padding: clamp(1.6rem, 4vw, 2.6rem); position: relative; overflow: hidden; }
.work-lab::after { content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; border: 2px solid rgba(255,194,26,.35); box-shadow: 0 0 0 28px rgba(255,194,26,.08); pointer-events: none; }
.work-lab h3 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.work-lab p { color: rgba(255,255,255,.82); max-width: 58ch; }
.work-body { position: relative; z-index: 1; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 1.6rem; }
.chips li { font-size: .92rem; font-weight: 500; padding: .3rem .8rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: #fff; }

/* ===== Mentoring ===== */
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2 { color: #fff; max-width: 18ch; }
.section-navy .prose p { color: rgba(255,255,255,.85); }
.comp { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.comp li { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--navy); background: var(--gold); padding: .35rem 1.1rem; border-radius: 10px; }
.comp li:nth-child(even) { background: var(--orange); color: #fff; }

/* ===== Aurum ===== */
.aurum { background: var(--green); color: #F3EBD3; }
.aurum h2 { color: var(--brass); font-size: clamp(2.2rem, 6vw, 3.75rem); }
.aurum-tag { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: #F3EBD3; margin-top: .6rem; }
.aurum .prose p { color: rgba(243,235,211,.88); }

/* ===== Kontak ===== */
.contact { display: grid; border-top: 2px solid var(--navy); max-width: 640px; }
.contact li { display: grid; grid-template-columns: 1fr auto; gap: .15rem .75rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.c-label { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); }
.contact a { font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact a:hover { color: var(--orange-d); }
.copy { font: inherit; font-size: .9rem; font-weight: 600; padding: .4rem .9rem; min-height: 40px; border-radius: 999px; border: 1.5px solid var(--navy); background: transparent; color: var(--navy); cursor: pointer; transition: background .2s, color .2s; }
.copy:hover { background: var(--navy); color: #fff; }

/* ===== Footer & toast ===== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); font-size: .95rem; padding: 1.75rem 0; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.foot p { margin: 0; }
.foot a { color: var(--gold); }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--navy); color: #fff; padding: .7rem 1.2rem; border-radius: 999px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.3); z-index: 80; animation: rise .25s ease both; }
.toast[hidden] { display: none; }

/* ===== Layar lebar ===== */
@media (min-width: 760px) {
  .menu-btn { display: none; }
  #nav { position: static; display: block; background: none; border: 0; }
  #nav ul { flex-direction: row; align-items: center; gap: 1.6rem; padding: 0; }
  #nav a { padding: .4rem 0; border: 0; font-size: .98rem; }
  #nav .nav-cta { margin: 0; padding: .5rem 1.2rem; }

  .split { grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
  .roles li { grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: baseline; }
  .facts div { grid-template-columns: 9rem 1fr; gap: 1rem; }

  .works { grid-template-columns: repeat(6, 1fr); }
  .work-lab { grid-column: 1 / -1; }
  .work-tryout, .work-tka { grid-column: span 3; }
  .work-modul { grid-column: 1 / -1; }

  .contact li { grid-template-columns: 8rem 1fr auto; }
  .c-label { grid-column: auto; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; }
  .atom { order: 0; width: min(100%, 440px); }
  .portrait { width: 46%; }
  .tile { min-width: 108px; left: -2%; bottom: 2%; }
  .tile-sym { font-size: 2.5rem; }
  .work-modul { grid-column: span 6; }
}

/* ===== Aksesibilitas gerak ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Latar belakang EdTech ===== */
.edtech { margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: clamp(1.75rem, 4vw, 2.5rem); border-top: 2px solid var(--navy); display: grid; gap: 1rem; }
.edtech h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--navy); }
.edtech-intro { max-width: 62ch; margin: 0; color: var(--muted); }
.edtech-list { display: grid; gap: .75rem; margin-top: .5rem; }
.edtech-list li { display: flex; flex-direction: column; gap: .15rem; padding: 1.1rem 1.25rem; background: var(--tint); border-left: 5px solid var(--orange); border-radius: 0 var(--r) var(--r) 0; }
.edtech-list li:nth-child(2) { border-left-color: var(--gold); }
.edtech-list li:nth-child(3) { border-left-color: var(--navy); }
.edtech-name { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--navy); line-height: 1.1; }
.edtech-role { color: var(--muted); font-size: .95rem; }
@media (min-width: 760px) {
  .edtech { grid-template-columns: 5fr 7fr; column-gap: clamp(2rem, 6vw, 5rem); align-items: start; }
  .edtech h3 { grid-column: 1; }
  .edtech-intro { grid-column: 2; }
  .edtech-list { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

.section h2 + .muted { margin-top: 1rem; }
