/* The public site. Written for this agency rather than copied from any other: the reference site
   supplied the shape (dark top strip, white masthead, photo cards), not the markup.

   The palette is neutral on purpose — black, white and a scale of greys. With no colour left to
   carry meaning, rank is carried by weight, size and space, and a link in running text is
   underlined rather than tinted.

   Geist is served from this origin as two subset files (latin, latin-ext): the content security
   policy allows fonts only from here, and a phone in Manokwari downloads 29 KB once a year. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/static/fonts/geist-latin-wght-normal.woff2)
    format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/static/fonts/geist-latin-ext-wght-normal.woff2)
    format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #101114;
  --ink-soft: #5f646d;
  --line: #e3e4e8;
  --line-strong: #c7c9d0;
  --paper: #ffffff;
  --shade: #f5f5f7;
  --deep: #101114;
  --deep-soft: #b4b7bd;
  --deep-line: #2a2c31;
  --radius: 12px;
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family:
    "Geist", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ink);
}

/* A link inside running text has no colour of its own here, so it is underlined to stay findable. */
.prose a,
.card-text a,
.facts a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* Header ------------------------------------------------------------------ */

.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-text strong {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.brand-text small {
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.93rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover {
  border-bottom-color: var(--ink);
}

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

.hero {
  position: relative;
  background: var(--deep);
  color: var(--paper);
  overflow: hidden;
}

/* The photograph is desaturated and dimmed so the headline stays readable over any report's
   cover, whatever its own colours were. */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: grayscale(1);
}

.hero-inner {
  position: relative;
  padding: 4.5rem 0 4rem;
  max-width: 46rem;
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  margin: 0 0 0.6rem;
  opacity: 0.8;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 500;
  margin: 0 0 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero-text {
  font-size: 1.03rem;
  opacity: 0.9;
  margin: 0 0 1.8rem;
}

.btn-primary {
  display: inline-block;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 500;
}
.btn-primary:hover {
  background: var(--shade);
}

/* Sections ---------------------------------------------------------------- */

.section {
  padding: 3.5rem 0;
}
.section-alt {
  background: var(--shade);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}
.section-head h2 span {
  color: var(--ink-soft);
  font-weight: 400;
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.88rem;
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: var(--ink);
}

.pagehead {
  background: var(--shade);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}
.pagehead h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.pagehead h1 span {
  color: var(--ink-soft);
  font-weight: 400;
}
.pagehead p {
  margin: 0;
  color: var(--ink-soft);
}

.empty {
  color: var(--ink-soft);
  padding: 2rem 0;
}

/* Cards ------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.6rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--line-strong);
}

.card-media {
  display: block;
  aspect-ratio: 3 / 2;
  background: var(--shade);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-media-empty {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ececee, #dcdde0);
}

.card-body {
  padding: 1.1rem 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
/* Legacy titles run to several lines in capitals; clamping keeps a row of cards even. */
.card-body h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-body h3 a {
  color: var(--ink);
  text-decoration: none;
}
.card-body h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.card-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.card-where {
  margin: 0;
  font-size: 0.83rem;
  color: var(--ink-soft);
}

.tag {
  align-self: flex-start;
  margin: 0;
  background: var(--shade);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* Profile and services ---------------------------------------------------- */

.prose-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem;
}
.prose-grid h3,
.service h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 500;
}
.prose-grid p,
.service p {
  margin: 0;
  color: var(--ink-soft);
}

.service {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

/* Article ----------------------------------------------------------------- */

.article-head {
  padding: 2.5rem 0 1.5rem;
  max-width: 52rem;
}
.crumbs {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0 0 0.8rem;
}
.crumbs a {
  color: var(--ink-soft);
}
.article-head h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  font-weight: 500;
  margin: 0 0 0.8rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.article-meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.dot {
  color: var(--line-strong);
}

.article-body {
  max-width: 52rem;
  padding-bottom: 3.5rem;
}

.gallery {
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.6rem;
}
.gallery img {
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.4rem;
  margin: 0 0 1.8rem;
  padding: 1.2rem 1.4rem;
  background: var(--shade);
  border-radius: var(--radius);
}
.facts dt {
  font-weight: 500;
  font-size: 0.88rem;
}
.facts dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.prose p {
  margin: 0 0 1rem;
}
.points {
  padding-left: 1.3rem;
}
.points li {
  margin-bottom: 0.7rem;
}
.back {
  margin-top: 2.2rem;
}

/* Pager ------------------------------------------------------------------- */

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.pager-step {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.88rem;
}
.pager-step:hover {
  border-color: var(--ink);
}
.pager-now {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

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

.site-footer {
  background: var(--deep);
  color: var(--deep-soft);
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 3rem 0 2rem;
}
.site-footer h3 {
  color: var(--paper);
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 500;
}
.site-footer h4 {
  color: var(--paper);
  margin: 0 0 0.6rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-footer p {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
}
.site-footer a {
  color: var(--deep-soft);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-base {
  border-top: 1px solid var(--deep-line);
  padding: 1.1rem 0;
  font-size: 0.82rem;
}
.footer-base p {
  margin: 0;
}

/* Narrower than a laptop: the navigation drops below the brand and scrolls sideways rather than
   stacking into a column that pushes the page down. */
@media (max-width: 860px) {
  .masthead-inner {
    min-height: 0;
    padding: 0.8rem 0;
    gap: 0.8rem 1rem;
  }
  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 1.1rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav a {
    white-space: nowrap;
  }
  .hero-inner {
    padding: 3rem 0 2.5rem;
  }
  .section {
    padding: 2.5rem 0;
  }
  .facts {
    grid-template-columns: 1fr;
    gap: 0.2rem 0;
  }
  .facts dd {
    margin-bottom: 0.7rem;
  }
}

/* A small phone: the page keeps its margins but every grid becomes one column. */
@media (max-width: 480px) {
  .wrap {
    width: min(100% - 1.75rem, var(--wrap));
  }
  .cards,
  .prose-grid,
  .service-grid,
  .gallery,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .article-head {
    padding: 1.75rem 0 1rem;
  }
  .pager {
    gap: 0.6rem;
  }
  .pager-step,
  .pager-now {
    font-size: 0.82rem;
  }
}
