/* ==========================================================================
   PAR — Prakarsa Akses Ranjani
   Design system: Luxury Editorial (Alabaster & Obsidian + PAR Gold)
   ========================================================================== */

:root {
  --bg:            #FDFBF7;
  --fg:            #0A0D14;
  --gold:          #C9A227;
  --gold-soft:     #E3C464;
  --secondary:     #1A2235;
  --muted:         #F3EFEA;
  --muted-fg:      #6B7280;
  --border:        #E5E0D8;
  --card:          #FFFFFF;

  --radius:        1.25rem;
  --radius-lg:     1.75rem;
  --radius-pill:   999px;

  --shell:         min(1240px, 100% - 2.5rem);
  --shell-narrow:  min(940px, 100% - 2.5rem);

  --font-display:  'Sora', ui-sans-serif, system-ui, sans-serif;
  --font-body:     'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-mono:     'IBM Plex Mono', ui-monospace, monospace;

  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #fff; }

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 7.2vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.7rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; }

p { margin: 0 0 1.1rem; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------- layout helpers */

.shell        { width: var(--shell); margin-inline: auto; }
.shell-narrow { width: var(--shell-narrow); margin-inline: auto; }

.section         { padding-block: clamp(5rem, 11vw, 9.5rem); }
.section--tight  { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--dark   { background: var(--fg); color: var(--bg); }
.section--muted  { background: var(--muted); }

.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--bg); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

.lead {
  font-size: clamp(1.05rem, 1.55vw, 1.22rem);
  color: var(--muted-fg);
  line-height: 1.75;
}

.section--dark .lead { color: rgba(253, 251, 247, 0.66); }

.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.btn--primary {
  background: var(--gold);
  color: #16120a;
  border-color: var(--gold);
}
.btn--primary:hover {
  background: #b58f1c;
  border-color: #b58f1c;
  box-shadow: 0 10px 34px rgba(201, 162, 39, .28);
}

.btn--ghost { background: transparent; border-color: var(--border); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); background: rgba(10, 13, 20, .04); }

.section--dark .btn--ghost { border-color: rgba(253, 251, 247, .28); color: var(--bg); }
.section--dark .btn--ghost:hover { border-color: var(--bg); background: rgba(253, 251, 247, .08); }

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

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(253, 251, 247, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 224, 216, .8);
  padding-top: env(safe-area-inset-top, 0px);
}

.site-header__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.75rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 2.3rem; height: 2.3rem; object-fit: contain; border-radius: 0.5rem; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

.nav { display: flex; align-items: center; gap: 2rem; }

.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--fg);
  position: relative;
  padding-block: 0.35rem;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1.5px;
  width: 0;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.nav a:hover { color: var(--gold); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 0.9rem; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: #fff;
}
.lang-toggle button {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.42rem 0.78rem;
  border: 0;
  background: transparent;
  color: var(--muted-fg);
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.lang-toggle button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

.menu-btn {
  display: none;
  width: 2.6rem; height: 2.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: #fff;
  cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute; left: 50%; width: 1.05rem; height: 1.5px;
  background: var(--fg); transform: translateX(-50%);
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.menu-btn span:nth-child(1) { top: 0.95rem; }
.menu-btn span:nth-child(2) { top: 1.28rem; }
.menu-btn span:nth-child(3) { top: 1.61rem; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateX(-50%) translateY(.33rem) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateX(-50%) translateY(-.33rem) rotate(-45deg); }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  min-height: min(86vh, 780px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--fg);
  color: var(--bg);
  padding-block: clamp(6rem, 13vw, 9rem) clamp(3.5rem, 7vw, 5.5rem);
}

.hero__media {
  position: absolute;
  inset: -12% 0 0;
  background-size: cover;
  background-position: center 60%;
  opacity: .34;
  will-change: transform;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,13,20,.74) 0%, rgba(10,13,20,.46) 45%, rgba(10,13,20,.93) 100%);
}

.hero__inner { position: relative; z-index: 2; width: var(--shell); margin-inline: auto; }

.hero h1 { color: var(--bg); max-width: 15ch; }

.hero__line { display: block; overflow: hidden; }
.hero__line > span {
  display: block;
  transform: translateY(104%);
  animation: rise 1s var(--ease) forwards;
}
.hero__line:nth-child(1) > span { animation-delay: .1s; }
.hero__line:nth-child(2) > span { animation-delay: .25s; }
.hero__line:nth-child(3) > span { animation-delay: .4s; }

@keyframes rise { to { transform: translateY(0); } }

.hero__body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.hero__body p { color: rgba(253, 251, 247, .72); font-size: 1.08rem; }

.hero__meta {
  border-top: 1px solid rgba(253,251,247,.18);
  padding-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
.hero__meta div span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(253,251,247,.5);
  margin-bottom: .35rem;
}
.hero__meta div strong {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--gold-soft);
}

/* page hero (interior pages) */
.page-hero {
  padding-block: clamp(4.5rem, 10vw, 8rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

/* --------------------------------------------------------------- marquee */

.marquee {
  background: var(--muted);
  border-block: 1px solid var(--border);
  overflow: hidden;
  padding-block: 1.15rem;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 3.5rem;
  animation: drift 46s linear infinite;
}
.marquee__track span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-fg);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3.5rem;
}
.marquee__track span::after {
  content: '';
  width: .32rem; height: .32rem;
  border-radius: 50%;
  background: var(--gold);
}
@keyframes drift { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------- cards */

.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 2.6vw, 2.3rem);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { border-color: var(--gold); box-shadow: 0 14px 44px rgba(10,13,20,.06); }
.card h3 { margin-bottom: .7rem; }
.card p { color: var(--muted-fg); font-size: .96rem; }

.card--dark { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.card--dark h3 { color: var(--bg); }
.card--dark p { color: rgba(253,251,247,.65); }
.card--dark:hover { border-color: var(--gold); }

.card--wide { grid-column: span 2; }

.card__icon {
  width: 2.9rem; height: 2.9rem;
  border-radius: var(--radius-pill);
  background: rgba(201,162,39,.12);
  color: var(--gold);
  display: grid; place-items: center;
  margin-bottom: 1.4rem;
}
.card__icon svg { width: 1.35rem; height: 1.35rem; }

.chip {
  display: inline-grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: var(--radius-pill);
  background: var(--fg);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 1.4rem;
}
.card--dark .chip { background: var(--gold); color: var(--fg); }

.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; padding: 0; list-style: none; }
.tag-list li {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: .34rem .78rem;
  color: var(--muted-fg);
}
.card--dark .tag-list li { border-color: rgba(253,251,247,.2); color: rgba(253,251,247,.6); }

/* ------------------------------------------------------- split / editorial */

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.split--reverse { grid-template-columns: 7fr 5fr; }
.split__sticky { position: sticky; top: 7rem; }

.figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--muted);
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--wide { aspect-ratio: 16 / 9; }
.figure--mono img { filter: grayscale(1) contrast(1.04); }

/* --------------------------------------------------------------- numbers */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.stats > div {
  padding: clamp(1.8rem, 3vw, 2.6rem) 1.6rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.stats > div:last-child { border-right: 0; }
.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -.04em;
  color: var(--gold);
  margin-bottom: .45rem;
}
.stats span { font-size: .88rem; color: var(--muted-fg); }

.section--dark .stats { border-color: rgba(253,251,247,.16); }
.section--dark .stats > div { border-color: rgba(253,251,247,.16); }
.section--dark .stats span { color: rgba(253,251,247,.6); }

/* ------------------------------------------------------- manifesto / list */

.chapter {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(2rem, 4vw, 3.2rem);
  border-top: 1px solid var(--border);
}
.chapter__num {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .18em;
  color: var(--gold);
  padding-top: .5rem;
}
.chapter h3 { margin-bottom: .9rem; }
.chapter p { color: var(--muted-fg); }

.value-box {
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: clamp(1.7rem, 2.8vw, 2.4rem);
  border: 1px solid var(--fg);
  transition: border-color .3s var(--ease);
}
.value-box:hover { border-color: var(--gold); }
.value-box h3 { color: var(--bg); margin-bottom: .75rem; }
.value-box h3 b { color: var(--gold); font-weight: 700; }
.value-box p { color: rgba(253,251,247,.66); font-size: .95rem; }

/* ------------------------------------------------------------------ form */

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: .97rem;
  color: var(--fg);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .92rem 1.1rem;
  width: 100%;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,.16);
}

.form-note { font-size: .82rem; color: var(--muted-fg); margin-top: .2rem; }

.honeypot { position: absolute; left: -9999px; opacity: 0; }

/* ----------------------------------------------------------------- toast */

.toast-wrap {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  max-width: min(23rem, calc(100vw - 2.5rem));
}
.toast {
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--radius);
  border: 1px solid rgba(253,251,247,.14);
  padding: 1rem 1.2rem;
  font-size: .9rem;
  box-shadow: 0 18px 50px rgba(10,13,20,.28);
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  animation: toast-in .45s var(--ease);
}
.toast b { color: var(--gold); font-weight: 600; display: block; margin-bottom: .15rem; }
.toast--error b { color: #F08A7A; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--fg);
  color: var(--bg);
  padding-block: clamp(4rem, 9vw, 7.5rem) 2.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.footer-top h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 14ch; }
.footer-top p { color: rgba(253,251,247,.6); }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.2rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer-col a {
  text-decoration: none;
  color: rgba(253,251,247,.72);
  font-size: .94rem;
  transition: color .25s var(--ease);
}
.footer-col a:hover { color: var(--gold); }

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 15vw, 11rem);
  letter-spacing: -.06em;
  line-height: .85;
  color: rgba(253,251,247,.07);
  border-top: 1px solid rgba(253,251,247,.14);
  padding-top: 2.5rem;
  margin-top: 0;
  user-select: none;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(253,251,247,.42);
}

/* ---------------------------------------------------------------- reveal */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2n) { border-right: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 4.75rem 0 auto;
    top: calc(4.75rem + env(safe-area-inset-top, 0px));
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.6rem;
    transform: translateY(-120%);
    transition: transform .4s var(--ease);
    box-shadow: 0 24px 50px rgba(10,13,20,.08);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { width: 100%; padding-block: .85rem; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .menu-btn { display: block; }

  .hero__body,
  .page-hero__grid,
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split__sticky { position: static; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .chapter { grid-template-columns: 1fr; gap: .6rem; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-right: 0; }
}

@media (max-width: 520px) {
  :root { --shell: calc(100% - 2rem); --shell-narrow: calc(100% - 2rem); }
  .brand__sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__line > span { transform: none; }
  .reveal { opacity: 1; transform: none; }
}

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