/* ==========================================================================
   Royal Indonesia Creative — stylesheet tunggal
   Filosofi: tipografi & spasi sebagai hierarki, satu aksen (emas), tanpa
   dependensi. Semua nilai visual ada di token :root di bawah.
   ========================================================================== */

:root {
  /* Warna */
  --ink: #101215;
  --ink-2: #2b2f35;
  --muted: #66686b;
  --surface: #fbfaf7;
  --surface-2: #f3f0ea;
  --line: #e4dfd6;
  --line-strong: #cfc7b8;
  --gold: #b08a3e;
  --gold-soft: #dcc48c;
  --gold-ink: #77571c;
  --dark: #0d0f12;
  --dark-2: #15181c;
  --on-dark: #edeae3;
  --on-dark-muted: #9ba0a6;

  /* Bentuk */
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgb(16 18 21 / 4%), 0 10px 30px -14px rgb(16 18 21 / 22%);

  /* Ruang */
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);

  /* Tipografi — dipilih, bukan default: Plus Jakarta Sans (tokotype, ID)
     untuk teks, Instrument Serif untuk aksen display. */
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.25rem, 1.6vw, 1.5rem);
  --step-3: clamp(1.6rem, 2.6vw, 2.15rem);
  --display: clamp(2.5rem, 6vw, 4.35rem);
  --display-sm: clamp(2rem, 4.4vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: pretty;
}

p { margin: 0; text-wrap: pretty; }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

::selection { background: var(--gold-soft); color: var(--ink); }

/* ------------------------------------------------------------ utilities --- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--surface { background: var(--surface-2); }
.section--dark,
.cta-band { color: var(--on-dark); }
.section--dark { background: var(--dark); }
.section--dark .lead,
.cta-band .lead { color: var(--on-dark-muted); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  background: var(--dark);
  color: var(--on-dark);
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  font-weight: 600;
}
.kicker::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold);
}
.section--dark .kicker,
.cta-band .kicker { color: var(--gold-soft); }

.lead {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 62ch;
}

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
.mono { font-family: var(--mono); font-size: var(--step--1); letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.hairline { border: 0; border-top: 1px solid var(--line); margin: 0; }
.section--dark .hairline { border-color: #23272c; }

/* -------------------------------------------------------------- tombol --- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--surface);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 500;
  font-size: var(--step-0);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); background: #000; }

.btn--gold { --btn-bg: var(--gold); --btn-fg: #16120a; }
.btn--gold:hover { background: #96742f; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--surface-2); }

.section--dark .btn--ghost,
.cta-band .btn--ghost { --btn-fg: var(--on-dark); border-color: #33383e; }
.section--dark .btn--ghost:hover,
.cta-band .btn--ghost:hover { background: var(--dark-2); color: #fff; }

.btn--sm { min-height: 40px; padding: 0.45rem 0.9rem; font-size: var(--step--1); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.link-underline {
  color: var(--gold-ink);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--gold) 45%, transparent);
  padding-bottom: 1px;
}
.link-underline:hover { border-bottom-color: var(--gold); color: var(--ink); }
.section--dark .link-underline,
.cta-band .link-underline { color: var(--gold-soft); border-bottom-color: #4a4327; }
.section--dark .link-underline:hover,
.cta-band .link-underline:hover { color: #fff; }

/* --------------------------------------------------------------- header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--dark);
  color: var(--gold-soft);
  border-radius: 3px;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1;
  padding-bottom: 3px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-text span {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a {
  text-decoration: none;
  font-size: var(--step-0);
  color: var(--ink-2);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.nav a.btn { border-bottom-color: transparent; color: var(--surface); }

.nav-toggle {
  display: none;
  min-height: 40px;
  padding: 0.4rem 0.8rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
  font-size: var(--step--1);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; min-height: 44px; }
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav a.btn { margin-top: 0.75rem; justify-content: center; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}

/* ----------------------------------------------------------------- hero --- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 7vw, 6.5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}
.hero h1 {
  font-size: var(--display);
  margin-block: 1.25rem 1.25rem;
  max-width: 20ch;
}
.hero h1 .serif { color: var(--gold-ink); }
.hero .lead { margin-bottom: 2rem; }
.hero-note {
  margin-top: 1.5rem;
  font-size: var(--step--1);
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero h1 { max-width: 24ch; }
}

/* Panel komposisi di sisi kanan hero — pengganti gambar palsu. */
.focus-panel {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
}
.focus-panel .panel-label {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.focus-list { margin-top: 1.25rem; }
.focus-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
  border-top: 1px solid #23272c;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}
.focus-list li:last-child { border-bottom: 1px solid #23272c; }
.focus-list span {
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--on-dark-muted);
  letter-spacing: 0.02em;
  text-align: right;
}

/* Slot media: tempat menaruh foto/showreel asli. */
.media-slot {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
}
.media-slot .slot {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 10px,
      color-mix(in oklab, var(--line) 60%, transparent) 10px 11px
    );
  color: var(--muted);
  font-size: var(--step--1);
  text-align: center;
  padding: 1rem;
}
.media-slot figcaption {
  margin-top: 0.6rem;
  font-size: var(--step--1);
  color: var(--muted);
}

/* ------------------------------------------------------ strip platform --- */
.platform-strip {
  border-block: 1px solid var(--line);
  background: var(--surface-2);
}
.platform-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  padding-block: 1.1rem;
}
.platform-strip .strip-label {
  font-size: var(--step--1);
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.platform-strip ul { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.platform-strip li {
  font-weight: 500;
  color: var(--ink-2);
  font-size: var(--step-0);
}

/* ---------------------------------------------------------- baris kerja --- */
.work-list { margin-top: clamp(2rem, 4vw, 3rem); }
.work-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
}
.work-row:last-child { border-bottom: 1px solid var(--line); }
.work-num {
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--gold-ink);
  padding-top: 0.35rem;
}
.work-row h3 { font-size: var(--step-2); }
.work-row p { color: var(--muted); }
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin-top: 0.9rem;
}
.tag {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}
.section--dark .tag { background: var(--dark-2); border-color: #2a2f35; color: var(--on-dark-muted); }

@media (max-width: 780px) {
  .work-row { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .work-row .work-body { grid-column: 2 / -1; }
  .work-row p { margin-top: 0.6rem; }
}

/* ---------------------------------------------------------------- grid --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.card h3 { font-size: var(--step-2); margin-bottom: 0.6rem; }
.card p { color: var(--muted); }
.section--surface .card { background: var(--surface); }
.section--dark .card { background: var(--dark-2); border-color: #262b31; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

/* ---------------------------------------------------------------- stepper --- */
.steps { counter-reset: step; margin-top: clamp(2rem, 4vw, 3rem); }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
  padding-block: 1.35rem;
  border-top: 1px solid #23272c;
}
.steps li:last-child { border-bottom: 1px solid #23272c; }
.steps li::before {
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: var(--step--1);
  color: var(--gold-soft);
  padding-top: 0.3rem;
}
.steps h3 { font-size: var(--step-2); margin-bottom: 0.35rem; }
.steps p { color: var(--on-dark-muted); }

/* ------------------------------------------------------- daftar talenta --- */
.talent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.talent-grid li {
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1rem, 2vw, 1.5rem)
    clamp(1.25rem, 2.5vw, 1.75rem) 0;
  border-bottom: 1px solid var(--line);
}
.talent-grid h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.talent-grid p { font-size: var(--step--1); color: var(--muted); }

@media (max-width: 900px) {
  .talent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .talent-grid li { padding-inline: 0 clamp(1rem, 2vw, 1.5rem); }
  .talent-grid li:nth-child(2n) { padding-right: 0; }
}
@media (max-width: 560px) {
  .talent-grid { grid-template-columns: 1fr; }
  .talent-grid li { padding-right: 0; }
}

/* --------------------------------------------------------------- founder --- */
.founder {
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
}
.founder .role {
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.founder h3 { font-size: var(--step-2); margin-block: 0.5rem 0.6rem; }
.founder p { color: var(--muted); }

/* ------------------------------------------------------------- cta band --- */
.cta-band {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.cta-band h2 { font-size: var(--display-sm); }
.cta-band p { color: var(--on-dark-muted); margin-top: 0.75rem; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- footer --- */
.site-footer {
  background: var(--dark);
  color: var(--on-dark-muted);
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  font-size: var(--step--1);
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.85fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid #23272c;
}
.site-footer h2,
.site-footer h3 {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 0.9rem;
}
.site-footer ul { display: grid; gap: 0.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; }
.site-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.25rem;
}
/* `.muted` bawaan ditujukan untuk latar terang — di footer yang gelap pakai
   varian on-dark supaya tetap lolos kontras AA. */
.site-footer .muted,
.section--dark .muted,
.cta-band .muted,
.focus-panel .muted { color: var(--on-dark-muted); }
@media (max-width: 780px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------- seo/isi --- */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.prose h3 { font-size: var(--step-2); margin: 2rem 0 0.6rem; }
.prose p + p { margin-top: 1rem; }
.prose ul { margin-top: 1rem; display: grid; gap: 0.6rem; }
.prose ul li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--ink-2);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

.page-head {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: var(--display-sm); margin-top: 1rem; max-width: 24ch; }
.page-head .lead { margin-top: 1rem; }

/* Tabel info (data legal, dsb.) */
.info-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.info-table th,
.info-table td {
  text-align: left;
  padding: 0.85rem 0.5rem 0.85rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.info-table th {
  width: 34%;
  font-weight: 500;
  color: var(--muted);
}
.info-table td { color: var(--ink); }

/* Brief checklist */
.checklist { margin-top: 1.5rem; display: grid; gap: 0; }
.checklist li {
  padding: 0.9rem 0 0.9rem 2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--ink-2);
}
.checklist li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold-ink);
}
.section--dark .checklist li { border-color: #23272c; color: var(--on-dark-muted); }
.section--dark .checklist li::before { color: var(--gold-soft); }

/* -------------------------------------------------------------- 404 --- */
.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.error-page .code {
  font-family: var(--serif);
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 1;
  color: var(--gold-ink);
}

/* ------------------------------------------------------------- motion --- */
.reveal { opacity: 1; }

/* Animasi hanya aktif kalau JS jalan — tanpa JS, konten tetap terlihat. */
.has-js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.has-js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .has-js .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}

/* --------------------------------------------------------------- util --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.75rem; }
.mt-4 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 1rem; }
.stack-lg > * + * { margin-top: clamp(1.25rem, 3vw, 2rem); }
