/* ============================================================
   Roichan Aryshaputra — poster hero
   Palet: #EE203E / #273A75 / #FBC526 (dari palet rujukan siswa)
   Hero mengikuti reference: wordmark raksasa yang ditarik tinggi,
   mobil memotong hurufnya, panel poster tetap terang di dua tema.
   ============================================================ */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #ee203e;
  --navy: #273a75;
  --yellow: #fbc526;

  --bg: #f7f8f8;
  --ink: #101a3c;
  --muted: #5a6484;
  --line: #e0e3ea;
  --line-strong: #c7ccd9;

  /* panel hero: poster terang di tema terang */
  --font: "Geist", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html[data-theme="dark"] {
  --bg: #0d1430;
  --ink: #eef1fa;
  --muted: #a6b0d0;
  --line: #24305c;
  --line-strong: #35437a;

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s var(--ease), color .35s var(--ease);
  overflow-x: hidden;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a { color: inherit; }

h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.05; font-weight: 600; }

p { margin: 0; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  color: var(--navy);
  padding: .6rem 1rem;
  border-radius: 4px;
  z-index: 20;
}
.skip:focus { top: 1rem; }

/* ---------- Bar atas ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .8rem clamp(1.25rem, 4vw, 3.5rem);
  background: var(--navy);
  color: #fff;
  transition: background-color .35s var(--ease);
}

.bar-name {
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.bar-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-size: .9rem;
  color: #c3cae4;
}

.bar-nav a {
  text-decoration: none;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.bar-nav a:hover,
.bar-nav a.is-active { color: #fff; border-color: var(--red); }

.theme {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.theme:hover { border-color: var(--red); color: #fff; background: var(--red); }
.theme svg { width: 1.05rem; height: 1.05rem; }
.theme .i-sun { display: none; }
html[data-theme="dark"] .theme .i-sun { display: block; }
html[data-theme="dark"] .theme .i-moon { display: none; }

/* ---------- Kerangka ---------- */

main > section {
  padding-inline: clamp(1.25rem, 5vw, 4rem);
  scroll-margin-top: 4.5rem;
}

.panel { scroll-margin-top: 4.5rem; }

.panel h2,
.tentang-copy h2 {
  display: grid;
  gap: .3rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* label kecil beraksen di atas judul besar, seperti panel rujukan */
.kicker {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
}

.h2-text {
  font-size: clamp(1.55rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.04;
  text-transform: uppercase;
}

.panel h2::after,
.tentang-copy h2::after {
  content: "";
  height: 1px;
  background: var(--line);
  margin-top: .9rem;
}

/* ---------- Hero ---------- */

.hero {
  padding-inline: 0;
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: 0;
  /* panel poster: putih di tema terang, navy pekat di tema gelap */
  background: #fff;
  color: #101a3c;
  overflow-x: clip;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

html[data-theme="dark"] .hero {
  background: #080e26;
  color: #eef1fa;
}

html[data-theme="dark"] .hero-meta {
  color: #98a3c6;
  border-bottom-color: #222d55;
}
html[data-theme="dark"] .hero-lead { color: #98a3c6; }
html[data-theme="dark"] .wordmark { color: #22305e; }
html[data-theme="dark"] .btn-ghost {
  color: #eef1fa;
  border-color: #35437a;
}

.hero-meta,
.hero-foot {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

/* panggung poster melepas margin: huruf dan mobil menyentuh tepi layar */
.hero-stage {
  max-width: none;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  font-size: .88rem;
  color: #5a6484;
  border-bottom: 1px solid #e0e3ea;
  padding-bottom: .9rem;
}

.hero-stage {
  position: relative;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  height: clamp(18rem, 30vw, 42rem);
  overflow: hidden;
}

.wordmark {
  position: absolute;
  left: 2.5%;
  right: 2.5%;
  bottom: 0;
  z-index: 0;
  height: 100%;
  margin: 0;
  line-height: 0;
  color: #273a75;
}

.wordmark svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: none;
  overflow: visible;
}

/* huruf ditarik tinggi: viewBox dipetakan non-proporsional seperti poster */
.wordmark text {
  font-family: var(--font);
  font-size: 397px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.hero-car {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  display: block;
  width: 84%;
  max-width: none;
  height: auto;
  translate: -50% 0;
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem) clamp(2rem, 4vw, 3rem);
}

.hero-lead {
  max-width: 46ch;
  color: #5a6484;
  font-size: clamp(1rem, 1.5vw, 1.08rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 4px;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: var(--red); border-color: var(--red); }

.btn-ghost {
  background: transparent;
  color: #101a3c;
  border-color: #c7ccd9;
}
.btn-ghost:hover { background: transparent; color: var(--red); border-color: var(--red); }

/* ---------- Tentang ---------- */

.tentang {
  max-width: 80rem;
  margin-inline: auto;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

/* dua kolom dipisah garis rambut, seperti blok skills/education di rujukan */
.duo {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 4vw, 3.5rem);
}

.panel { min-width: 0; }

.panel + .panel {
  padding-left: clamp(2rem, 4vw, 3.5rem);
  border-left: 1px solid var(--line);
}

.panel h2 { margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem); }
.panel h2::after { display: none; }

.tentang-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.tentang-copy p { color: var(--muted); max-width: 62ch; }
.tentang-copy p + p { margin-top: 1rem; }
.tentang-copy .lede {
  font-size: clamp(1.02rem, 1.5vw, 1.12rem);
  line-height: 1.65;
  color: var(--ink);
}

.profile {
  margin: 0;
  width: 100%;
  max-width: 24rem;
}

.profile img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 22%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.facts {
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}
.facts div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }

/* ---------- Kemampuan ---------- */

.spec {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  align-content: start;
  flex: 1;
}

.spec li {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  gap: .85rem;
  align-items: start;
  padding: .7rem 0;
}

.spec svg {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .3rem;
  color: var(--red);
}

.spec h3 {
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: .1rem;
}
.spec p { color: var(--muted); font-size: .88rem; line-height: 1.5; }

/* ---------- Proyek ---------- */

.proj h3 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -.04em;
  line-height: 1.02;
}

.proj .tag {
  display: inline-block;
  margin: .6rem 0 .9rem;
  padding: .3rem .65rem;
  border-radius: 3px;
  background: var(--yellow);
  color: #1a2340;
  font-size: .76rem;
  font-weight: 600;
}

.proj > p { color: var(--muted); font-size: .92rem; }

.proj-facts {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
}
.proj-facts div { display: grid; gap: .1rem; }
.proj-facts dt {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.proj-facts dd { margin: 0; font-weight: 600; font-size: .9rem; }

/* ---------- Riwayat (garis waktu bergaya rujukan) ---------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.6rem;
  position: relative;
  display: grid;
  gap: 1.35rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .55rem;
  bottom: .55rem;
  width: 1px;
  background: var(--line-strong);
}

.timeline li { position: relative; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: .45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  transition: opacity .3s var(--ease);
}
.timeline li.dim::before { opacity: .38; }

.tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .15rem 1rem;
  margin-bottom: .2rem;
}

.tl-time {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}

.timeline h3 { font-size: .98rem; letter-spacing: -.01em; }
.timeline p { color: var(--muted); font-size: .88rem; line-height: 1.5; }

/* ---------- Kontak ---------- */

.kontak-lead {
  margin-bottom: 1.5rem;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--muted);
}

.contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  align-content: start;
  gap: 0;
}

.contact a {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 0;
  text-decoration: none;
  font-size: .95rem;
  overflow-wrap: anywhere;
  transition: color .2s var(--ease);
}
.contact a:hover { color: var(--red); }
.contact svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--red);
  flex-shrink: 0;
}

/* ---------- Footer ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.6rem clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--muted);
}

.foot .motto { flex: 1 1 22rem; text-align: center; max-width: 46ch; margin-inline: auto; }

.to-top {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.to-top:hover { color: var(--red); border-color: currentColor; }

/* ---------- Satu gerakan masuk untuk hero ---------- */

.js .wordmark {
  opacity: 0;
  animation: fade .7s var(--ease) .05s forwards;
}
.js .hero-car {
  opacity: 0;
  translate: -50% 18px;
  animation: rise-car .8s var(--ease) .12s forwards;
}

@keyframes fade { to { opacity: 1; } }
@keyframes rise-car { to { opacity: 1; translate: -50% 0; } }

@media (prefers-reduced-motion: reduce) {
  .js .wordmark, .js .hero-car { opacity: 1; animation: none; }
  .js .hero-car { translate: -50% 0; }
  .timeline li::before { transition: none; }
}

/* ---------- Responsif ---------- */

@media (max-width: 62rem) {
  .bar-nav { gap: 1.1rem; font-size: .85rem; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .panel + .panel {
    padding-left: 0;
    border-left: 0;
  }
  .panel + .panel::before {
    content: "";
    display: block;
    height: 1px;
    background: var(--line);
    margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  }
}

@media (max-width: 52rem) {
  .bar { gap: 1rem; }
  .bar-name { display: none; }
  .bar-nav {
    margin-left: 0;
    gap: .75rem;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    font-size: .8rem;
    letter-spacing: -.01em;
  }
  .bar-nav::-webkit-scrollbar { display: none; }
  .bar-nav a { white-space: nowrap; padding-block: .55rem; }
  .theme { width: 2.5rem; height: 2.5rem; }

  /* di layar sempit mobil mengisi lebar panggung, huruf tetap terbaca di atasnya */
  .hero-stage { height: clamp(12rem, 42vw, 17rem); }
  .hero-car { width: 100%; }

  .tentang-grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .profile { max-width: 12rem; }
  .facts div { grid-template-columns: 7rem minmax(0, 1fr); }


  .foot .motto { text-align: left; margin-inline: 0; }
}

@media (max-width: 34rem) {
  .hero-meta { font-size: .82rem; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .tl-head { flex-direction: column; }
  .tl-head .tl-time { order: -1; }
}
