/* ==========================================================================
   FIELD REPORT: shared design system for etuya.id (option B)
   Light editorial theme, cool paper, one cobalt accent, sharp shapes,
   pill buttons only. See DESIGN.md for usage.
   z-index scale: page canvases -1 (isolated), photo layers 2 (isolated),
   hover follower 40, masthead 50, grain 60, skip link 100.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #F1F3EF;
  --paper-2: #E6EAE4;
  --rule: rgba(14, 23, 38, .14);
  --rule-strong: rgba(14, 23, 38, .28);
  --ink: #0E1726;
  --ink-2: #465261;          /* secondary text, AA on paper and paper-2 */
  --ink-3: #6C7785;          /* large text and graphics only (not AA for small text) */
  --cobalt: #1577BD;         /* the one accent: buttons, lines, dots, the cobalt field */
  --cobalt-deep: #0F5E98;    /* hover, pressed, and small cobalt TEXT (AA) */
  --on-cobalt: #FFFFFF;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --margin: clamp(20px, 5vw, 72px);
  --gutter: clamp(16px, 2vw, 32px);
  --nav-h: 72px;
  --section-y: clamp(96px, 14vh, 176px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Paper grain: fixed, non-interactive, barely there. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
::selection { background: var(--cobalt); color: var(--on-cobalt); }
:focus-visible { outline: 2px solid var(--cobalt-deep); outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Type scale ---------- */
.t-display, .t-h1, .t-h2, .t-h3, .t-lede, .t-num {
  font-family: var(--serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}
.t-display { font-weight: 380; font-size: clamp(3rem, 7vw, 7.25rem); line-height: 1.02; letter-spacing: -.02em; }
.t-h1      { font-weight: 380; font-size: clamp(2.8rem, 6.2vw, 6.25rem); line-height: 1.03; letter-spacing: -.022em; }
.t-h2      { font-weight: 380; font-size: clamp(2.4rem, 4.8vw, 4.9rem); line-height: 1.06; letter-spacing: -.022em; }
.t-h3      { font-weight: 400; font-size: clamp(1.75rem, 2.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.016em; font-variation-settings: "opsz" 48; }
.t-lede    { font-weight: 400; font-size: clamp(1.55rem, 2.45vw, 2.45rem); line-height: 1.2; letter-spacing: -.012em; font-variation-settings: "opsz" 40; }
.t-num     { font-weight: 300; font-size: clamp(6rem, 14vw, 14rem); line-height: .86; letter-spacing: -.045em; font-variant-numeric: tabular-nums lining-nums; text-wrap: nowrap; }
.t-display em, .t-h1 em, .t-h2 em, .t-h3 em, .t-lede em { font-style: italic; }
/* Italic words with descenders need more leading: add .has-descender to the heading. */
.has-descender { line-height: 1.12; padding-bottom: .04em; }
.t-label { font: italic 400 1.1rem/1.3 var(--serif); color: var(--ink-2); }
.t-body  { font-size: 18px; line-height: 1.6; max-width: 62ch; text-wrap: pretty; }
.t-muted { color: var(--ink-2); }
.t-small { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.measure { max-width: 62ch; }
.nowrap { white-space: nowrap; }

/* Eyebrow: small uppercase label above a heading. Budget: max 1 per 3 sections. */
.eyebrow {
  font: 600 13px/1.2 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 clamp(28px, 4vh, 44px);
}
.caption { padding-top: 16px; font: 400 14px/1.5 var(--sans); color: var(--ink-2); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1680px; margin-inline: auto; padding-inline: var(--margin); }
.section { padding-block: var(--section-y); }
.section--rule { border-top: 1px solid var(--rule); }
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 48px;
}
/* Place a child with inline custom props: <div class="col" style="--start:8;--span:5"> */
.col { grid-column: var(--start, auto) / span var(--span, 12); min-width: 0; }
.stack > * + * { margin-top: var(--stack, 24px); }
.hairline { border: 0; border-top: 1px solid var(--rule-strong); margin: 0; }

/* ---------- Buttons (the only rounded element) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: 0 1.45em;
  border: 0;
  border-radius: 999px;
  font: 600 16px/1 var(--sans);
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s var(--ease-out);
}
.btn--solid { background: var(--cobalt); color: var(--on-cobalt); }
.btn--solid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--cobalt-deep);
  opacity: 0;
  transition: opacity .3s ease;
}
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper-2);
  opacity: 0;
  transition: opacity .3s ease;
}
.btn--on-cobalt { background: var(--paper); color: var(--ink); }
.btn:focus-visible { outline-color: var(--ink); }
.btn i { font-size: 1.1em; transition: transform .45s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 60px; padding: 0 1.8em; font-size: 18px; }
@media (hover: hover) {
  .btn--solid:hover::before, .btn--ghost:hover::before { opacity: 1; }
  .btn:hover i.ph-arrow-right { transform: translateX(4px); }
  .btn:hover i.ph-arrow-up-right { transform: translate(2px, -2px); }
  .btn:hover i.ph-whatsapp-logo { transform: rotate(-8deg) scale(1.08); }
}

/* Text link with a cobalt underline that re-draws on hover (feedback). */
.link-u {
  position: relative;
  display: inline-block;
  padding-block: .5em;
  font: 600 16px/1.2 var(--sans);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.link-u::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: .3em;
  height: 1.5px;
  background: var(--cobalt);
  transform-origin: left center;
}
@media (hover: hover) {
  html.motion-ok .link-u:hover::after { animation: underline-redraw .8s var(--ease-out); }
  .link-u:hover { color: var(--cobalt-deep); }
}
@keyframes underline-redraw {
  0% { transform: scaleX(1); transform-origin: right center; }
  40% { transform: scaleX(0); transform-origin: right center; }
  41% { transform: scaleX(0); transform-origin: left center; }
  100% { transform: scaleX(1); transform-origin: left center; }
}
/* Arrow link: small cobalt-deep underlined link, e.g. "Read the case". */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 6px;
  font: 600 15px/1.2 var(--sans);
  color: var(--cobalt-deep);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.link-arrow i { transition: transform .4s var(--ease-out); }
@media (hover: hover) {
  .link-arrow:hover { color: var(--ink); }
  .link-arrow:hover i.ph-arrow-up-right { transform: translate(2px, -2px); }
  .link-arrow:hover i.ph-arrow-right { transform: translateX(3px); }
}

/* Chips: sharp hairline tags for real tech or practice terms. */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--rule-strong);
  font: 500 13px/1.2 var(--sans);
  color: var(--ink-2);
  white-space: nowrap;
}
.chips img { width: 14px; height: 14px; }

/* Figures: sharp, full-bleed or bold crops. Caption sits under, outside the image. */
.figure img { width: 100%; }
.figure--bleed { width: 100%; }
.figure--tint { background: var(--paper-2); }

/* ---------- Masthead (fixed, hides on scroll down, returns on scroll up) ---------- */
.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: transform .5s var(--ease-out);
}
.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(241, 243, 239, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .35s ease;
}
.masthead.is-solid::before, .masthead.is-open::before { opacity: 1; }
.masthead.is-hidden { transform: translate3d(0, -101%, 0); }
.masthead:focus-within { transform: none; }
.masthead__bar {
  position: relative;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
  border-bottom: 1px solid var(--rule);
}
.masthead__logo { flex: 0 0 auto; display: block; }
.masthead__logo img { width: 152px; height: auto; }
.masthead__nav { margin-left: auto; }
.masthead__nav ul { display: flex; gap: clamp(22px, 2.6vw, 40px); list-style: none; }
.masthead__nav a {
  position: relative;
  display: inline-block;
  padding-block: 10px;
  font: 500 15.5px/1 var(--sans);
  text-decoration: none;
  color: var(--ink);
}
.masthead__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 3px;
  height: 1.5px;
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .45s var(--ease-out);
}
.masthead__nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) {
  .masthead__nav a:hover::after { transform: scaleX(1); transform-origin: left center; }
}
.masthead__cta { min-height: 42px; padding: 0 1.2em; font-size: 15px; }

/* ---------- Language switcher (EN / ID). Pill shape like buttons; the current language carries a hairline ring. ---------- */
.lang { display: flex; align-items: center; gap: 2px; font: 600 13px/1 var(--sans); letter-spacing: .06em; }
.lang a {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.lang a:hover { color: var(--ink); background: var(--paper-2); }
.lang a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-strong, rgba(14, 23, 38, .28)); }
.lang--menu { gap: 8px; font-size: 15px; }
.lang--menu a { min-width: 48px; min-height: 44px; }
.lang--footer { margin-top: 12px; }
.masthead__toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px 0 14px;
  border: 0;
  background: none;
  font: 600 15px/1 var(--sans);
  cursor: pointer;
}
.masthead__toggle i { font-size: 24px; }

.menu {
  position: fixed;
  left: 0; right: 0;
  top: var(--nav-h);
  height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  background: var(--paper);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s var(--ease-out);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu[hidden] { display: none; }
.menu__inner { display: flex; flex-direction: column; gap: 36px; padding-block: 28px 96px; }
.menu__inner ul { list-style: none; display: grid; }
.menu__inner li + li { border-top: 1px solid var(--rule); }
.menu__inner ul a {
  display: block;
  padding-block: 14px;
  font: 400 2.4rem/1.1 var(--serif);
  letter-spacing: -.015em;
  text-decoration: none;
}
.menu__inner ul a[aria-current="page"] { font-style: italic; color: var(--cobalt-deep); }
.menu__inner .btn { align-self: flex-start; }
.menu__meta { color: var(--ink-2); font-size: 16px; line-height: 1.9; }
.menu__meta a { text-decoration: none; }

@media (max-width: 900px) {
  .masthead__nav, .masthead__cta { display: none; }
  .masthead__toggle { display: inline-flex; }
  .masthead__bar > .lang { margin-left: auto; }
  .masthead__bar > .lang ~ .masthead__toggle { margin-left: 0; }
}

/* ---------- Inner-page hero ---------- */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(40px, 8vh, 88px));
  padding-bottom: clamp(56px, 9vh, 104px);
}
.page-hero__title { max-width: 13em; }
.page-hero__lede { max-width: 30ch; margin-top: clamp(24px, 4vh, 40px); }
.page-hero__meta { margin-top: clamp(28px, 4vh, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; }
html.motion-ok:not(.no-gsap) [data-split-lines]:not(.is-ready) { visibility: hidden; }
[data-split-lines] .line-mask, [data-split-lines] .line { padding-block: .06em .12em; margin-block: -.06em -.12em; }
html.motion-ok .rise-in { animation: rise-in 1.1s var(--ease-out) both; animation-delay: var(--delay, .45s); }
@keyframes rise-in {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}

/* ---------- Logo wall (two labelled groups, logos only) ---------- */
.logos {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px var(--gutter);
}
.logos__group { grid-column: span 6; }
.logos__group--gov { grid-column: 1 / span 5; }
.logos__group--intl { grid-column: 7 / span 6; }
.logos__label {
  padding-top: 14px;
  margin-bottom: 26px;
  border-top: 1px solid var(--rule-strong);
  font: italic 400 1.1rem/1.3 var(--serif);
  color: var(--ink-2);
}
.logos__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 30px;
  min-height: 56px;
}
.logos__list img {
  width: auto;
  height: var(--h, 40px);
  filter: grayscale(1);
  mix-blend-mode: multiply;
  opacity: .8;
  transition: filter .4s ease, opacity .4s ease;
}
@media (hover: hover) { .logos__list img:hover { filter: none; opacity: 1; } }
.cobalt .logos__list img { filter: grayscale(1) invert(1); mix-blend-mode: screen; opacity: .75; }

/* ---------- Partner cards (logo walls): who the partner is, and a link to its site.
   Hover (fine pointers) and keyboard focus show the card; on touch the first tap opens it
   and the second follows the link (field.js). field.js nudges the card to stay on screen. ---------- */
.partner { position: relative; }
.partner__link { position: relative; display: block; }
.partner__card {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  z-index: 30;
  display: none;
  width: min(284px, calc(100vw - 32px));
  padding: 13px 16px 12px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 18px 36px -24px rgba(14, 23, 38, .45);
  text-align: left;
  white-space: normal;
  transform: translate(calc(-50% + var(--dx, 0px)), 0);
  transform-origin: calc(50% - var(--dx, 0px)) 100%;
  transition: opacity .15s var(--ease-out), transform .15s var(--ease-out);
}
.partner__card::after {
  content: "";
  position: absolute;
  top: 100%;
  left: calc(50% - var(--dx, 0px));
  width: 9px;
  height: 9px;
  margin: -4px 0 0 -5px;
  background: var(--paper);
  border-right: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  transform: rotate(45deg);
}
@media (hover: hover) and (pointer: fine) { .partner:hover .partner__card { display: block; } }
.partner__link:focus-visible .partner__card,
.partner.is-open .partner__card { display: block; }
@starting-style {
  .partner:hover .partner__card,
  .partner__link:focus-visible .partner__card,
  .partner.is-open .partner__card { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), 6px) scale(.97); }
}
.partner__name { display: block; font: 600 14px/1.35 var(--sans); color: var(--ink); }
.partner__about { display: block; margin-top: 4px; font: 400 13.5px/1.45 var(--sans); color: var(--ink-2); }
.partner__url { display: inline-flex; align-items: center; gap: 4px; margin-top: 9px; font: 600 12.5px/1.2 var(--sans); color: var(--cobalt-deep); }
.partner__link:focus-visible img, .partner.is-open img { filter: none; opacity: 1; }
html.is-reduced .partner__card { transition: none; }

/* ---------- Cobalt block: the page's one full-bleed colour field ---------- */
.cobalt { position: relative; background: var(--cobalt); color: var(--on-cobalt); }
.cobalt :focus-visible { outline-color: var(--on-cobalt); }
.cobalt .t-muted, .cobalt .t-small { color: rgba(255, 255, 255, .86); }
.cobalt__text {
  max-width: 24em;
  font: 380 clamp(1.85rem, 3.5vw, 3.55rem)/1.16 var(--serif);
  font-variation-settings: "opsz" 60;
  letter-spacing: -.016em;
  hanging-punctuation: first last;
  text-wrap: pretty;
}
.cobalt__sign { width: 128px; margin-top: clamp(32px, 5vh, 52px); }

/* ---------- Editorial rows (services list) with optional hover image ---------- */
.rows { list-style: none; }
.rows__item {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px var(--gutter);
  align-items: start;
  padding-block: clamp(36px, 6vh, 68px);
}
.rows__item:first-child { padding-top: 0; }
.rows__item + .rows__item { border-top: 1px solid var(--rule-strong); }
.rows__title {
  grid-column: 1 / span 7;
  font-family: var(--serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 72;
  font-weight: 380;
  font-size: clamp(2.2rem, 4.3vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.022em;
  text-wrap: balance;
  transition: transform .6s var(--ease-out), opacity .45s ease;
}
.rows__title a { text-decoration: none; }
.rows__body { grid-column: 8 / span 5; padding-top: .5em; }
.rows__body p { max-width: 44ch; margin-bottom: 22px; color: var(--ink-2); text-wrap: pretty; }
.rows__body .link-arrow { margin-top: 18px; }
.rows__media { grid-column: 8 / span 5; }
.rows__media img { width: 100%; background: var(--paper-2); }
/* With the follower active (fine pointer, motion allowed) the inline images hide. */
.rows.has-follower .rows__media { display: none; }
@media (hover: hover) and (pointer: fine) {
  .rows.has-follower:hover .rows__item:not(:hover) .rows__title { opacity: .32; }
  .rows.has-follower .rows__item:hover .rows__title { transform: translate3d(12px, 0, 0); }
}
.follower {
  position: fixed;
  left: 0; top: 0;
  z-index: 40;
  width: clamp(300px, 27vw, 420px);
  aspect-ratio: 858 / 606;
  background: var(--paper-2);
  pointer-events: none;
  overflow: hidden;
  clip-path: inset(50% 50% 50% 50%);
  transition: clip-path .55s var(--ease-out);
  will-change: transform;
}
.follower.is-visible { clip-path: inset(0 0 0 0); }
.follower img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease;
}
.follower img.is-on { opacity: 1; }

/* ---------- Horizontal pan of spreads (data-pan) ----------
   Default (no JS, reduced motion, < 768px): a vertical stack of spreads.
   field.js adds .is-pan on wide screens when motion is allowed. */
.pan { position: relative; }
.pan__stage { position: relative; padding-block: var(--section-y); }
.pan__track {
  display: grid;
  gap: clamp(72px, 11vh, 132px);
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: var(--margin);
}
.pan__intro p { max-width: 34ch; margin-top: 22px; font-size: 19px; color: var(--ink-2); text-wrap: pretty; }
.pan__intro .link-arrow { margin-top: 28px; align-self: flex-start; }
.pan__progress { display: none; }
.pan.is-pan .pan__stage {
  height: 100vh;
  height: 100svh;
  padding: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.pan.is-pan .pan__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  width: max-content;
  max-width: none;
  margin: 0;
  padding-inline: var(--margin) 10vw;
  will-change: transform;
}
.pan.is-pan .pan__intro {
  flex: 0 0 auto;
  width: clamp(360px, 31vw, 560px);
  margin-right: 7vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pan.is-pan .spread {
  flex: 0 0 auto;
  width: min(84vw, 1360px);
  height: min(70vh, 700px);
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: 0;
  margin-right: 6vw;
  align-items: stretch;
}
.pan.is-pan .spread:last-child { margin-right: 0; }
.pan.is-pan .spread__visual {
  grid-column: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: clamp(28px, 3.5vw, 64px);
  border-right: 1px solid var(--rule-strong);
}
.pan.is-pan .spread__visual img { width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.pan.is-pan .spread__visual--framed { padding: clamp(28px, 3.5vw, 64px); border-right: 0; }
.pan.is-pan .spread__visual--framed img { width: min(100%, 580px); max-height: none; }
.pan.is-pan .spread--type .spread__visual { min-height: 0; padding: clamp(28px, 3.4vw, 56px); border-right: 0; align-items: stretch; }
.pan.is-pan .spread__text {
  grid-column: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(28px, 3.4vw, 60px);
}
.pan.is-pan .pan__progress {
  display: block;
  position: absolute;
  left: var(--margin);
  right: var(--margin);
  bottom: max(28px, 5vh);
  height: 1px;
  background: var(--rule);
}
.pan__progress span {
  position: absolute;
  left: 0; right: 0; top: -.5px;
  height: 2px;
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- Spread: magazine page pair (visual left, text right) ---------- */
.spread {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px var(--gutter);
  align-items: center;
}
.spread__visual { grid-column: 1 / span 7; position: relative; }
.spread__visual img { width: 100%; }
.spread__visual--framed {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 64px);
  background: var(--paper-2);
}
.spread__visual--framed img { width: min(100%, 580px); outline: 1px solid var(--rule); }
.spread__text { grid-column: 9 / span 4; }
.spread__title {
  margin-bottom: 10px;
  font: 400 clamp(2rem, 3.1vw, 3.3rem)/1.04 var(--serif);
  font-variation-settings: "opsz" 60;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.spread__sub { margin-bottom: 20px; font: italic 400 1.15rem/1.35 var(--serif); color: var(--ink-2); }
.spread__partner {
  margin-bottom: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-strong);
  font: 600 14.5px/1.4 var(--sans);
}
.spread__text > p:not([class]) {
  max-width: 44ch;
  margin-bottom: 22px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.spread__text .link-arrow { margin-top: 24px; align-self: flex-start; }

/* Typographic spread: for projects without screenshots. Never fake UI. */
.spread--type .spread__visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(28px, 5vh, 56px);
  min-height: clamp(360px, 56vh, 560px);
  padding: clamp(28px, 3.6vw, 60px);
  background: var(--paper-2);
}
.type__statement {
  max-width: 11em;
  font-family: var(--serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 72;
  font-weight: 360;
  font-size: clamp(2.4rem, 4.3vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -.024em;
  text-wrap: balance;
}
.type__ministry { font: 600 14px/1.3 var(--sans); color: var(--ink-2); }
.type__tree, .type__merge { display: grid; align-items: center; font: italic 400 clamp(1.2rem, 1.6vw, 1.55rem)/1.2 var(--serif); }
.type__tree { grid-template-columns: auto auto; justify-content: start; }
.type__root, .type__sources span { font: 600 14.5px/1.2 var(--sans); }
.type__root { position: relative; padding-right: 30px; }
.type__root::after { content: ""; position: absolute; right: 0; top: 50%; width: 22px; height: 1px; background: var(--ink); }
.type__branches, .type__sources, .type__targets { position: relative; display: grid; gap: 12px; }
.type__branches::before, .type__targets::before, .type__sources::after {
  content: "";
  position: absolute;
  top: .6em; bottom: .6em;
  width: 1px;
  background: var(--ink);
}
.type__branches::before, .type__targets::before { left: 0; }
.type__sources::after { right: 0; }
.type__branches span, .type__targets span { position: relative; padding-left: 34px; }
.type__branches span::before, .type__targets span::before {
  content: "";
  position: absolute;
  left: 0; top: 55%;
  width: 24px; height: 1.5px;
  background: var(--cobalt);
}
.type__merge { grid-template-columns: auto 44px auto; justify-content: start; }
.type__merge::before { content: ""; grid-column: 2; grid-row: 1; height: 1px; background: var(--ink); }
.type__sources { grid-column: 1; grid-row: 1; }
.type__targets { grid-column: 3; grid-row: 1; }
.type__sources span { position: relative; padding-right: 30px; }
.type__sources span::after { content: ""; position: absolute; right: 0; top: 50%; width: 22px; height: 1px; background: var(--ink); }
.type__loop { position: relative; width: min(100%, 400px); aspect-ratio: 1.7; }
.type__ring { position: absolute; inset: 12% 21%; border: 1px solid var(--ink); border-radius: 50%; }
.type__ring::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--cobalt);
  border-right-color: var(--cobalt);
  transform: rotate(-20deg);
}
.type__node {
  position: absolute;
  padding: 2px 8px;
  background: var(--paper-2);
  font: italic 400 clamp(1.05rem, 1.35vw, 1.3rem)/1.1 var(--serif);
  white-space: nowrap;
}
.type__node--n { left: 50%; top: 12%; transform: translate(-50%, -50%); }
.type__node--e { right: 21%; top: 50%; transform: translate(50%, -50%); }
.type__node--s { left: 50%; bottom: 12%; transform: translate(-50%, 50%); }
.type__node--w { left: 21%; top: 50%; transform: translate(-50%, -50%); }

/* ---------- Numbers: oversized serif numerals, asymmetric (4 items) ---------- */
.nums {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(56px, 8vh, 96px);
}
.num { padding-top: 18px; border-top: 1px solid var(--rule-strong); }
.num:nth-child(4n+1) { grid-column: 1 / span 6; }
.num:nth-child(4n+2) { grid-column: 8 / span 4; margin-top: clamp(64px, 10vh, 132px); }
.num:nth-child(4n+3) { grid-column: 3 / span 4; }
.num:nth-child(4n+4) { grid-column: 9 / span 4; margin-top: clamp(40px, 6vh, 80px); }
.num__fig { display: block; margin-left: -.04em; }
.num:nth-child(4n+1) .num__fig { font-size: clamp(7.5rem, 18vw, 18rem); }
.num__plus { color: var(--cobalt); }
.num p { max-width: 26ch; margin-top: 18px; font-size: 17px; color: var(--ink-2); }

/* ---------- Rail: sticky title left, steps right, cobalt line draws down ---------- */
.rail {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px var(--gutter);
}
.rail__aside { grid-column: 1 / span 5; align-self: start; position: sticky; top: 18vh; }
.rail__aside .t-h2 { max-width: 10em; }
.rail__aside p { max-width: 32ch; margin-top: 24px; color: var(--ink-2); }
.rail__track {
  grid-column: 7 / span 6;
  position: relative;
  padding-left: clamp(32px, 3.4vw, 56px);
  view-timeline: --rail block;
}
.rail__line { position: absolute; left: 0; top: .5em; bottom: 0; width: 1px; background: var(--rule); }
.rail__line::after {
  content: "";
  position: absolute;
  left: -.5px; top: 0; bottom: 0;
  width: 2px;
  background: var(--cobalt);
  transform-origin: top center;
}
.rail__steps { list-style: none; }
.rail__step { position: relative; padding-bottom: clamp(72px, 12vh, 150px); }
.rail__step:last-child { padding-bottom: 0; }
.rail__step::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(32px, 3.4vw, 56px));
  top: .82em;
  width: 18px;
  height: 1px;
  background: var(--ink);
}
.rail__step .t-h3 { margin-bottom: 14px; }
.rail__step p { max-width: 46ch; color: var(--ink-2); text-wrap: pretty; }

/* ---------- Band: full-bleed landscape photo that settles on scroll ---------- */
.band__frame { position: relative; height: clamp(340px, 66vh, 720px); overflow: hidden; }
.band__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

/* ---------- Closing: huge type + email + contact pill ---------- */
.closing { padding-block: var(--section-y) clamp(64px, 10vh, 112px); }
.closing__title {
  max-width: 9em;
  margin-bottom: clamp(44px, 7vh, 84px);
  font-family: var(--serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 72;
  font-weight: 360;
  font-size: clamp(3.4rem, 10vw, 10.25rem);
  line-height: .98;
  letter-spacing: -.034em;
  text-wrap: balance;
}
.closing__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.closing__email {
  font: 380 clamp(2.1rem, 5.4vw, 5.4rem)/1.1 var(--serif);
  font-variation-settings: "opsz" 72;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--cobalt);
  text-decoration-thickness: .045em;
  text-underline-offset: .12em;
  overflow-wrap: anywhere;
}
@media (hover: hover) { .closing__email:hover { color: var(--cobalt-deep); } }

/* ---------- Footer ---------- */
.footer { padding-bottom: 104px; }
.footer__contact, .footer__base {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px var(--gutter);
  border-top: 1px solid var(--rule-strong);
}
.footer__contact { padding-block: 36px 64px; }
.footer__col:nth-child(1) { grid-column: 1 / span 5; }
.footer__col:nth-child(2) { grid-column: 7 / span 3; }
.footer__col:nth-child(3) { grid-column: 10 / span 3; }
.footer__h { margin-bottom: 12px; font: 600 14px/1.3 var(--sans); color: var(--ink-2); }
.footer__contact p, .footer__contact address { font-size: 17px; line-height: 1.65; }
.footer__contact a { text-decoration-color: var(--rule-strong); text-underline-offset: 4px; }
.footer__contact .link-arrow { margin-top: 10px; text-decoration-color: currentColor; }
@media (hover: hover) { .footer__contact p a:hover { color: var(--cobalt-deep); text-decoration-color: currentColor; } }
.footer__base { padding-top: 32px; align-items: start; }
.footer__logo { grid-column: 1 / span 3; }
.footer__logo img { width: 150px; }
.footer__nav { grid-column: 4 / span 4; }
.footer__nav li { white-space: nowrap; }
.footer__nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer__nav a { font-weight: 500; font-size: 15px; text-decoration: none; }
@media (hover: hover) { .footer__nav a:hover { color: var(--cobalt-deep); text-decoration: underline; } }
.footer__credits, .footer__copy { grid-column: 8 / span 5; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.footer__credits a { color: var(--ink-2); }
.footer__copy { margin-top: -12px; }

/* ---------- Scroll-driven reveals (CSS where supported, JS batch otherwise) ---------- */
@supports (animation-timeline: view()) {
  html.motion-ok [data-reveal], html.motion-ok .reveal {
    animation: rise-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
  html.motion-ok .rail__line::after {
    animation: draw-down linear both;
    animation-timeline: --rail;
    animation-range: cover 38vh cover calc(100% - 55vh);
  }
  html.motion-ok .band__frame img {
    animation: settle linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
}
/* data-reveal="clip": images unveil upward as they enter (storytelling, not decoration). */
@supports (animation-timeline: view()) {
  html.motion-ok [data-reveal="clip"] {
    animation-name: clip-up;
    animation-range: entry 0% cover 35%;
  }
}
@keyframes clip-up {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
html.reveal-js [data-reveal], html.reveal-js .reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
html.reveal-js [data-reveal].is-in, html.reveal-js .reveal.is-in { opacity: 1; transform: none; }
html.reveal-js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-out); }
html.reveal-js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
@keyframes draw-down { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- Tag stamps: climate budget tags (Try it page, home teaser) ----------
   mitigation = solid cobalt, adaptation = cobalt outline, co-benefit = half solid,
   half outline (it is both). Sharp, slightly rotated like a rubber stamp; .stamp--flat
   removes the tilt, .stamp--sm is the compact size. ---------- */
.stamp {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--cobalt);
  background: var(--paper);
  color: var(--cobalt-deep);
  font: 700 12.5px/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-4deg);
}
.stamp__icon { display: grid; place-items: center; padding: 5px 7px; font-size: 15px; }
.stamp__label { display: flex; align-items: center; padding: 6px 9px 5px; }
.stamp--m .stamp__icon, .stamp--m .stamp__label, .stamp--c .stamp__icon { background: var(--cobalt); color: var(--on-cobalt); }
.stamp--c .stamp__icon { border-right: 1.5px solid var(--cobalt); }
.stamp--flat { transform: none; }
.stamp--sm { font-size: 11px; }
.stamp--sm .stamp__icon { padding: 4px 5px; font-size: 13px; }
.stamp--sm .stamp__label { padding: 5px 7px 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .logos__group--gov, .logos__group--intl { grid-column: 1 / -1; }
  .logos__list { justify-content: flex-start; gap: 28px 44px; }
}
@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  body { font-size: 17px; }
  .masthead__logo img { width: 132px; }
  .grid, .rail, .logos, .rows__item, .spread, .footer__contact, .footer__base { grid-template-columns: minmax(0, 1fr); }
  .col, .rail__aside, .rail__track, .rows__title, .rows__body, .rows__media,
  .spread__visual, .spread__text, .footer__col:nth-child(n), .footer__logo,
  .footer__nav, .footer__credits, .footer__copy { grid-column: 1 / -1; }
  .logos__list { gap: 24px 30px; }
  .logos__list img { height: calc(var(--h, 40px) * .82); }
  .cobalt__text { font-size: clamp(1.55rem, 6.6vw, 2rem); line-height: 1.2; }
  .rows__body { padding-top: 0; }
  .spread { gap: 24px; }
  .spread--type .spread__visual { min-height: 0; }
  .type__loop { width: 100%; }
  .nums { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .num:nth-child(n) { grid-column: auto; margin-top: 0; }
  .num:nth-child(4n+1), .num:nth-child(4n+4) { grid-column: 1 / -1; }
  .t-num { font-size: clamp(5rem, 26vw, 7rem); }
  .num:nth-child(4n+1) .num__fig { font-size: clamp(7rem, 42vw, 10rem); }
  .num p { font-size: 16px; }
  .rail__aside { position: static; }
  .rail__track { padding-left: 28px; }
  .rail__step::before { left: -28px; width: 14px; }
  .band__frame { height: 56vh; }
  .closing__actions { flex-direction: column; align-items: flex-start; }
  .footer__copy { margin-top: 0; }
}
/* Small phones: logo + EN/ID switcher + menu button must fit in 360px without overflow. */
@media (max-width: 400px) {
  .masthead__bar { gap: 10px; }
  .masthead__logo img { width: 116px; }
  .masthead__bar > .lang { gap: 0; }
  .masthead__bar > .lang a { min-width: 32px; padding: 0 5px; }
  .masthead__toggle { gap: 6px; padding-left: 6px; }
}

/* ---------- Reduced motion: everything visible, nothing moves ---------- */
html.is-reduced *, html.is-reduced *::before, html.is-reduced *::after {
  animation: none !important;
  transition-duration: .01ms !important;
  scroll-behavior: auto !important;
}
@media print {
  body::after, .masthead, .follower { display: none !important; }
}
