/* v32: Jakarta opens the hero, then dissolves into the authored product film. */
:root {
  /* Ravi v38 app: --v30-green, its hover shade and its pale fill are already
     shared by the landing's closing section. Extend that palette to v32. */
  --v32-film-rgb: 20 24 23;
  --v32-film-ground: rgb(var(--v32-film-rgb));
  --v32-night-rgb: 19 45 40;
  --v32-on-night: #f5f9f6;
  --v32-mint: #8fd3c4;
  --v32-accent-line: #cfe0dd;
  --v30-ink: #192e28;
  --v30-muted: #4d6158;
  --v30-paper: #f9f9f7;
  --v30-soft: var(--v30-green-soft);
  --v30-soft-2: #e3ede8;
  --v30-stage: #d7e7e0;
  --v30-night: rgb(var(--v32-night-rgb));
  --v30-night-2: #23443b;
  --v30-night-muted: #cadbd4;
  --v30-flash-1: #5d9a8e;
  --v30-flash-2: var(--v32-mint);
  --v30-flash-3: #c9e8de;
  --v30-flash-4: #6aa799;
  --ic-ink: var(--v30-ink);
  --ic-muted: var(--v30-muted);
  --ic-soft: var(--v30-soft);
  --ic-line: var(--v32-accent-line);
  --brand-selected: var(--v30-soft);
  --brand-selected-line: var(--v32-accent-line);
}

#ic-intro.ic-intro {
  background: var(--v30-soft);
  color: var(--v30-green-hover);
}

.hero.hero-hebbia {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: calc(100svh - var(--vbar-h, 0px));
  min-height: 600px;
  margin: 0;
  padding: 140px var(--ic-edge) clamp(40px, 5.5vh, 64px);
  overflow: hidden;
  background: var(--v32-film-ground);
  color: var(--v32-on-night);
  text-align: center;
}

.hero-hebbia .hero-film,
.hero-hebbia .hero-film-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-hebbia .hero-film {
  z-index: -2;
  overflow: hidden;
  background: var(--v32-film-ground) url('assets/jakarta-cityscape-poster.jpg') center / cover no-repeat;
}
.hero-hebbia .hero-film video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.hero-hebbia #hero-motion {
  opacity: 0;
  transition: opacity .8s cubic-bezier(.4, 0, .2, 1);
}
.hero-hebbia[data-film-phase="motion"] #hero-motion { opacity: 1; }
.hero-hebbia[data-city-only] #hero-motion { display: none; }
.hero-hebbia video::-webkit-media-controls { display: none !important; }
.hero-hebbia .hero-film-shade {
  z-index: -1;
  background: linear-gradient(
    180deg,
    #080d0c94 0%,
    #080d0c12 25%,
    #080d0c8c 42%,
    #080d0cbf 58%,
    rgb(var(--v32-film-rgb) / .79) 69%,
    rgb(var(--v32-film-rgb) / .89) 80%,
    rgb(var(--v32-film-rgb) / .965) 90%,
    rgb(var(--v32-film-rgb) / .992) 96%,
    var(--v32-film-ground) 100%
  );
}

.hero-hebbia .hero-film-copy {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  animation: hero-film-enter .8s cubic-bezier(.22, 1, .36, 1) both;
}
.hero.hero-hebbia h1 {
  max-width: 1000px;
  margin: 0 auto;
  color: var(--v32-on-night);
  font: 400 clamp(32px, 3.15vw, 48px) / 1.1 var(--ic-serif);
  letter-spacing: -.035em;
  text-transform: none;
  text-wrap: initial;
}
.hero.hero-hebbia .hero-film-subtitle {
  max-width: 900px;
  margin: 18px auto 0;
  color: var(--v30-night-muted);
  font: 400 clamp(16px, 1.3vw, 18px) / 1.45 var(--ic-sans);
  letter-spacing: -.015em;
  text-wrap: balance;
}
.hero.hero-hebbia .hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.hero.hero-hebbia .hero-app-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 12px 22px;
  border: 1px solid #75a79a;
  border-radius: 4px;
  background: var(--v30-green);
  color: #fff;
  font: 400 15px / 20px var(--ic-sans);
  text-decoration: none;
  transition: background-color .2s, transform .2s;
}
.hero.hero-hebbia .hero-app-cta:hover { background: var(--v30-green-hover); transform: translateY(-2px); }
.hero.hero-hebbia .hero-app-cta--secondary { border-color: #9bbdb38c; background: transparent; color: var(--v32-on-night); }
.hero.hero-hebbia .hero-app-cta--secondary:hover { background: #8fd3c41c; }
.hero.hero-hebbia .hero-app-cta:active { transform: translateY(0); }
.hero.hero-hebbia .hero-app-cta:focus-visible { outline: 2px solid var(--v32-mint); outline-offset: 5px; }

/* The existing navigation keeps its menus, and floats over the opening film. */
#nav-shell.ic-site-nav {
  --ic-nav-bg: var(--v30-night);
  --ic-nav-paper: var(--v32-on-night);
}
#nav-shell.ic-site-nav .nav-cta .nav-app-link { background: var(--v30-green); color: #fff; }
#nav-shell.ic-site-nav .nav-cta .nav-app-link:hover { background: var(--v30-green-hover); }
#nav-shell.ic-site-nav.over-film:not(.expanded):not(:has(details[open])) {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@keyframes hero-film-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1000px) {
  .hero.hero-hebbia { padding-inline: 36px; }
  .hero.hero-hebbia h1 { max-width: 720px; font-size: clamp(32px, 4.7vw, 42px); }
}
@media (min-width: 1001px) {
  #nav-shell.ic-site-nav .nav-sections > details.drop-mega[open] > .nav-dropdown.nav-mega { background: var(--v30-paper); }
  #nav-shell.ic-site-nav .nav-mega-fields a { background: var(--v30-soft); }
  #nav-shell.ic-site-nav .nav-mega-fields a:hover { background: var(--v30-soft-2); }
}
/* Portrait screens keep the whole authored 16:9 composition above the copy. */
@media (max-width: 1000px) and (orientation: portrait) {
  .hero.hero-hebbia {
    height: auto;
    min-height: 100svh;
    padding-top: calc(88px + 56.25vw + 32px);
  }
  .hero-hebbia .hero-film { background: var(--v32-film-ground); }
  .hero-hebbia .hero-film video {
    position: absolute;
    inset: auto;
    top: 88px;
    left: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
  }
  .hero-hebbia .hero-film-shade {
    /* End the fade at the actual bottom of the inset 16:9 film. */
    background: linear-gradient(
      180deg,
      #080d0c55 0,
      transparent 88px,
      transparent calc(88px + 32vw),
      rgb(var(--v32-film-rgb) / .12) calc(88px + 38vw),
      rgb(var(--v32-film-rgb) / .43) calc(88px + 44vw),
      rgb(var(--v32-film-rgb) / .82) calc(88px + 50vw),
      rgb(var(--v32-film-rgb) / .98) calc(88px + 54vw),
      var(--v32-film-ground) calc(88px + 56.25vw)
    );
  }
}
@media (max-width: 600px) {
  .hero.hero-hebbia {
    min-height: 100svh;
    padding: calc(88px + 56.25vw + 32px) 24px max(32px, env(safe-area-inset-bottom));
  }
  .hero.hero-hebbia h1 { max-width: 400px; min-height: 3.36em; font-size: clamp(26px, 8.2vw, 36px); line-height: 1.12; }
  .hero-hebbia .hero-title-tail { display: block; }
  .hero.hero-hebbia .hero-film-subtitle { max-width: 38ch; margin-top: 16px; font-size: 16px; line-height: 1.5; }
  .hero.hero-hebbia .hero-actions { margin-top: 24px; }
  .hero.hero-hebbia .hero-app-cta { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-hebbia .hero-film-copy { animation: none; }
  .hero-hebbia #hero-motion { transition: none; }
  .hero.hero-hebbia .hero-app-cta { transition: none; }
}

/* Carry the film ground through the workspace before reaching the paper sections. */
.hero.hero-monochrome.v32-workspace {
  padding: 0;
  background: var(--v32-film-ground);
}
.hero.hero-specializations.v32-workspace > .ic-unveil-hero {
  --hero-fade-length: clamp(220px, 28vw, 360px);
  background: linear-gradient(
    180deg,
    var(--v32-film-ground) 0,
    color-mix(in srgb, var(--v32-film-ground), var(--v30-paper) 5%) calc(var(--hero-fade-length) * .15),
    color-mix(in srgb, var(--v32-film-ground), var(--v30-paper) 22%) calc(var(--hero-fade-length) * .31),
    color-mix(in srgb, var(--v32-film-ground), var(--v30-paper) 52%) calc(var(--hero-fade-length) * .5),
    color-mix(in srgb, var(--v32-film-ground), var(--v30-paper) 79%) calc(var(--hero-fade-length) * .69),
    color-mix(in srgb, var(--v32-film-ground), var(--v30-paper) 94%) calc(var(--hero-fade-length) * .85),
    var(--v30-paper) var(--hero-fade-length)
  );
}

/* Background tones and active states follow the same palette below the hero. */
.legal-pillars { background: var(--v30-paper); }
.legal-pillars .lp-pillar { filter: none; }
.legal-pillars .lp-pillar-telaah { background: var(--v30-night); }
.legal-pillars .lp-pillar-riset { background: var(--v30-soft-2); }
.legal-pillars .lp-pillar-susun { background: var(--v30-night-2); }

.v30-folder-tab { color: var(--v30-muted); }
.v30-folder-tab:hover { background: var(--v32-accent-line); }
.v30-folder-tab[aria-selected="true"] { color: var(--v30-green-hover); }
.v30-folder-text > p { color: var(--v30-ink); }
.v30-doc-sources { background: var(--v30-paper); }
.v30-ref,
.v30-doc-sources span { background: var(--v30-soft); color: var(--v30-green-hover); }
.v30-ref.is-lit,
.v30-doc-sources span.is-lit,
.v30-chip-card li.is-lit b,
.v30-ui-ref,
.v30-ui-rank li.is-lit { background: var(--v30-green); color: #fff; }
.v30-doc-table tr.is-lit { background: var(--v30-soft); }

.v30-fields-tab[aria-current="true"] { background: var(--v30-green); color: #fff; }
.v30-field::before {
  background: linear-gradient(
    90deg,
    rgb(var(--v32-night-rgb) / .92) 0%,
    rgb(var(--v32-night-rgb) / .76) 34%,
    rgb(var(--v32-night-rgb) / .25) 62%,
    transparent 100%
  );
}
@media (max-width: 1000px) {
  .v30-field::before {
    background: linear-gradient(
      180deg,
      rgb(var(--v32-night-rgb) / .94) 0%,
      rgb(var(--v32-night-rgb) / .84) 44%,
      rgb(var(--v32-night-rgb) / .31) 74%,
      rgb(var(--v32-night-rgb) / .12) 100%
    );
  }
}
.v30-station.is-active h3 button::before,
.v30-faq-q[aria-expanded="true"]::before { background: var(--v30-green); }
.v30-faq-q:hover { background: var(--v30-soft-2); }
.v30-composer textarea { background: var(--v30-paper); border-color: var(--v32-accent-line); }
.v30-composer-files span,
.v30-seg { background: var(--v30-soft); }
body > footer.ic-site-footer { background: var(--v30-paper); }
.ic-site-footer .ic-footer-app { background: var(--v30-green); border-color: var(--v30-green); }
.ic-site-footer .ic-footer-app:hover { background: var(--v30-green-hover); border-color: var(--v30-green-hover); }

.v32-photo-credits {
  margin-top: 8px;
  color: var(--ic-muted);
  font-size: 14px;
}
.v32-photo-credits summary { cursor: pointer; }
.v32-photo-credits ul { padding-inline-start: 20px; }
.v32-photo-credits a { color: inherit; }
.v32-home .v30-station[id] { scroll-margin-top: 96px; }
