/* ============================================================
   CERITA NYATA
   Colours are sampled from the Cerita Nyata trifold design:
   teal sky, warm cream clouds, dark ink lines.
   ============================================================ */
:root {
  color-scheme: light;

  /* ---- Colour ---- */
  --ink: #132a2e;               /* lines and body text */
  --ink-soft: #2c4448;          /* secondary text */
  --teal-deep: #1d3f43;         /* headings on panels */
  --teal: #2d5a5e;              /* labels and accents on panels */
  --sky: #46737a;               /* fallback while the photo loads (the trifold's sky cyan) */
  --cream: #f4e7cd;             /* text on the sky */
  --cream-dim: rgba(244, 231, 205, 0.78);

  --panel: rgba(246, 238, 222, 0.86);       /* frosted cream panels */
  --panel-solid: #efe6d3;
  --glass-dark: rgba(20, 44, 48, 0.84);     /* nav, menu, footer */
  --line: rgba(19, 42, 46, 0.88);
  --line-soft: rgba(19, 42, 46, 0.2);

  /* ---- Type ---- */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* ---- Layout ---- */
  --nav-h: 64px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --pad: clamp(22px, 4.5vw, 64px);
  --cut: 18px;                  /* size of the cut corners on frames */

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.75, 0, 0.25, 1);
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p {
  margin: 0;
  font-weight: inherit;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

::selection {
  background: var(--teal-deep);
  color: var(--cream);
}

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

[tabindex="-1"]:focus {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Language: every text is written twice; only the chosen one shows (html data-lang="en" or "id") */
html:not([data-lang="id"]) body [lang="id"],
html[data-lang="id"] body [lang="en"] {
  display: none !important;
}


.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Smooth scrolling library (Lenis) */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

/* ============================================================
   BACKGROUND
   The sky is taller than the screen and slowly pans down as you
   scroll (script.js), so you drift from open sky into the clouds.
   ============================================================ */
.sky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: -2;
  height: 140vh;
  height: 140lvh;
  background: var(--sky) url("images/sky.jpg?v=11") 50% 0% / cover no-repeat;
  background-image: image-set(url("images/sky.webp?v=11") type("image/webp"), url("images/sky.jpg?v=11") type("image/jpeg"));
  transform-origin: 50% 30%;
  will-change: transform;
}

/* 3D layer: small clouds in front of the page. They move faster than the page
   scrolls (each at its own data-speed), which is what makes them look closer.
   Newer browsers move them in step with scrolling (scroll-driven animations);
   on older browsers script.js moves them. */
.fore {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden; /* shown once script.js has placed the clouds */
}

.fore.is-ready {
  visibility: visible;
}

.wisp {
  position: absolute;
  top: 0;
  left: calc(var(--x, 50vw) - var(--size, 20vw) / 2);
  width: var(--size, 20vw);
  max-width: none;
  height: auto;
  opacity: var(--o, 0.85);
  will-change: transform, translate;
}

.wisp--flip {
  scale: -1 1;
}

/* phones: drawn a bit bigger so they still read on a small screen */
@media (max-width: 700px) {
  .wisp {
    left: calc(var(--x, 50vw) - var(--size, 20vw) * 0.8);
    width: calc(var(--size, 20vw) * 1.6);
    opacity: max(0.62, var(--o, 0.85));
  }
}

/* scroll-driven: the browser moves the sky and clouds itself, perfectly in step */
.sd .sky {
  animation: sky-pan linear both;
  animation-timeline: scroll(root);
}

.sd .wisp {
  animation: wisp-rise linear both;
  animation-timeline: scroll(root);
}

@keyframes sky-pan {
  from {
    translate: 0 0;
    scale: 1.04;
  }
  to {
    translate: 0 calc(var(--pan, 0px) * -1);
    scale: 1.09;
  }
}

@keyframes wisp-rise {
  from {
    translate: 0 var(--from, 0px);
  }
  to {
    translate: 0 var(--to, 0px);
  }
}

/* ============================================================
   SHARED: labels, headings, text
   ============================================================ */
.label {
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}

.label__num {
  color: var(--teal-deep);
  margin-right: 0.9em;
}

.label__num::before {
  content: counter(section, decimal-leading-zero) " /";
}

.heading {
  font-size: clamp(1.9rem, 3.6vw, 3.25rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--teal-deep);
  max-width: 22ch;
  margin-bottom: clamp(16px, 2.4vw, 28px);
  text-wrap: balance;
}

.heading--xl {
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  max-width: 16ch;
}

.subheading {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--teal-deep);
  margin-bottom: 12px;
}

.lead {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  line-height: 1.75;
  letter-spacing: 0.03em;
}

.intro {
  max-width: 60ch;
  color: var(--ink-soft);
}

/* ============================================================
   FRAMES: panels with cut corners. The outline is an SVG that
   script.js adds and draws in when the frame scrolls into view.
   ============================================================ */
[data-frame] {
  position: relative;
  z-index: 0;
}

.frame {
  padding: var(--pad);
}

.frame::before,
.card::before,
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(
    var(--cut) 0, calc(100% - var(--cut)) 0,
    100% var(--cut), 100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%, var(--cut) 100%,
    0 calc(100% - var(--cut)), 0 var(--cut)
  );
}

.frame::before {
  background: var(--panel);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
  backdrop-filter: blur(16px) saturate(1.05);
}

.frame__line {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.frame__line path {
  fill: none;
  stroke: var(--stroke, var(--line));
  stroke-width: 1;
}

.frame__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.frame__head .label {
  flex-shrink: 0;
}

.frame__head .rule {
  flex: 1;
}

.frame--center {
  text-align: center;
}

.frame--center .heading,
.frame--center .intro {
  margin-inline: auto;
}

/* Hairlines. Vertical or horizontal, sized by their parent. */
.rule {
  display: block;
  background: var(--line);
}

.rule--h {
  height: 1px;
  width: 100%;
}

.rule--v {
  width: 1px;
  align-self: stretch;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--teal-deep);
  background: none;
  border: 0;
  transition: color 0.5s var(--ease-out), opacity 0.3s;
  --cut: 10px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.btn::before {
  background: var(--teal-deep);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease-out), background 0.5s var(--ease-out);
}

.btn:hover,
.btn:focus-visible {
  color: var(--cream);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: none;
}

.btn--light {
  color: var(--cream);
  --stroke: rgba(244, 231, 205, 0.75);
  --focus: var(--cream);
}

.btn--light::before {
  transform: none;
  background: rgba(20, 44, 48, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn--light:hover::before,
.btn--light:focus-visible::before {
  background: rgba(20, 44, 48, 0.85);
}

.actions,
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.actions {
  margin-top: clamp(28px, 4vw, 44px);
}

/* One button that spans the whole box (Contact) */
.actions--wide .btn {
  flex: 1 1 100%;
  min-height: 64px;
  font-size: 0.8rem;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  color: var(--cream);
  --focus: var(--cream);
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--glass-dark);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.is-scrolled .nav::before {
  opacity: 1;
}

.nav__rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(244, 231, 205, 0.3);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s var(--ease-out);
}

.is-scrolled .nav__rule {
  clip-path: inset(0);
}

.nav__brand {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav__links ul {
  display: flex;
  gap: clamp(18px, 2.4vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  position: relative;
  display: block;
  padding: 6px 0;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.78;
  transition: opacity 0.4s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.6s var(--ease-out);
}

.nav__links a:hover,
.nav__links a[aria-current] {
  opacity: 1;
}

.nav__links a:hover::after,
.nav__links a[aria-current]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Right-hand end of the bar: Instagram, then Menu on phones */
.nav__links {
  margin-left: auto;
}

.nav__end {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: -12px; /* line the icon up with the page edge */
}

/* EN / ID switch */
.lang {
  display: flex;
  align-items: center;
  margin-right: 4px;
}

.lang__btn {
  min-width: 34px;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  opacity: 0.5;
  transition: opacity 0.4s;
}

.lang__btn:hover,
.lang__btn[aria-pressed="true"] {
  opacity: 1;
}

.lang__btn[aria-pressed="true"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.lang__sep {
  font-size: 0.72rem;
  opacity: 0.4;
}

.nav__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  opacity: 0.78;
  transition: opacity 0.4s, transform 0.6s var(--ease-out);
}

.nav__social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.nav__social-dot {
  fill: currentColor;
  stroke: none;
}

.nav__social:hover,
.nav__social:focus-visible {
  opacity: 1;
  transform: rotate(-8deg) scale(1.08);
}

.nav__toggle {
  display: none;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav__toggle-close,
.menu-open .nav__toggle-open {
  display: none;
}

.menu-open .nav__toggle-close {
  display: inline;
}

/* ---- Mobile menu ---- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: none;
  align-items: center;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  background: var(--glass-dark);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: var(--cream);
  --focus: var(--cream);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out), visibility 0s linear 0.5s;
}

.menu-open .menu {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s var(--ease-out);
}

.menu nav {
  width: 100%;
}

.menu__list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu__list li {
  position: relative;
}

.menu__list li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(244, 231, 205, 0.3);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s var(--ease-out) calc(0.1s + var(--i) * 70ms);
}

.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  font-weight: 300;
  line-height: 1.2;
  text-decoration: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out) calc(0.1s + var(--i) * 70ms),
    transform 0.9s var(--ease-out) calc(0.1s + var(--i) * 70ms);
}

.menu__num {
  min-width: 2.4em;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  opacity: 0.6;
}

.menu-open .menu__list li::after {
  clip-path: inset(0);
}

.menu-open .menu__list a {
  opacity: 1;
  transform: none;
}

@media (max-width: 899px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
    align-items: center;
  }

  .nav__end {
    margin-right: 0;
  }

  .nav {
    gap: 12px;
  }

  .menu {
    display: flex;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 4vh) var(--gutter) 20vh;
  text-align: center;
  color: var(--cream);
  --d: 0.1s;
  --focus: var(--cream);
}

.hero__frame {
  position: absolute;
  inset: calc(var(--nav-h) + 4px) clamp(10px, 2vw, 24px) clamp(10px, 2vw, 24px);
  --stroke: rgba(19, 42, 46, 0.5);
  --draw: 2.4s;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2.2vh, 22px);
  text-shadow: 0 1px 22px rgba(12, 32, 36, 0.35);
}

.hero__label {
  color: var(--cream-dim);
  letter-spacing: 0.28em;
  text-wrap: balance;
}

.hero__title {
  font-size: clamp(3.2rem, 7.4vw, 8.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* optical centring: letter-spacing adds space after the last letter */
  margin-right: -0.08em;
}

.hero__meaning {
  font-size: 0.88rem;
  color: var(--cream-dim);
}

.hero__meaning em {
  font-weight: 300;
}

.hero__tagline {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 300;
  letter-spacing: 0.06em;
}

.hero__actions {
  margin-top: clamp(6px, 2vh, 18px);
}

.scroll-cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(26px, 4vh, 44px);
  width: max-content;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  --focus: var(--ink);
}

.scroll-cue__line {
  position: relative;
  width: 1px;
  height: 56px;
  overflow: hidden;
  background: rgba(19, 42, 46, 0.2);
}

.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  animation: cue 2.6s var(--ease-in-out) infinite;
}

@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 700px) {
  .hero__title {
    font-size: clamp(3rem, 17vw, 5.5rem);
    line-height: 0.95;
  }

  .hero__word {
    display: block;
  }
}

@media (max-width: 420px) {
  .hero__actions {
    gap: 10px;
  }

  .hero__actions .btn {
    padding: 0 16px;
    letter-spacing: 0.14em;
  }
}

/* ============================================================
   SECTIONS
   ============================================================ */
main {
  counter-reset: section;
}

.section {
  counter-increment: section;
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

/* The line that joins one section to the next, drawn as you scroll */
.connector {
  display: flex;
  justify-content: center;
  height: clamp(56px, 12vh, 128px);
}

.connector span {
  width: 1px;
  height: 100%;
  background: var(--line);
  transform-origin: top center;
  transform: scaleY(var(--p, 1));
}

/* ---- Split (About) ---- */
.split {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
}

.split__col .heading {
  margin-bottom: 18px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr auto 1fr;
  }

  .split__col--end {
    text-align: right;
  }

  .split__col--end .heading {
    margin-left: auto;
  }
}

@media (max-width: 899px) {
  .split__rule {
    width: 100%;
    height: 1px;
  }
}

/* ---- Columns (Values) ---- */
.columns {
  display: grid;
  margin-top: clamp(28px, 4vw, 48px);
}

.columns__item {
  position: relative;
  padding: 26px 0;
}

.columns__rule {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
}

.columns__num {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--teal);
  margin-bottom: clamp(12px, 3vw, 40px);
}

@media (min-width: 900px) {
  .columns {
    grid-template-columns: repeat(3, 1fr);
  }

  .columns__item {
    padding: 8px clamp(20px, 3vw, 44px) 8px;
  }

  .columns__item:first-child {
    padding-left: 0;
  }

  .columns__item:last-child {
    padding-right: 0;
  }

  .columns__rule {
    width: 1px;
    height: auto;
    bottom: 0;
  }

  .columns__item:first-child .columns__rule {
    display: none;
  }
}

/* ---- Journey (CAS stages) ---- */
.journey {
  position: relative;
  margin-top: clamp(32px, 5vw, 56px);
}

.journey__track {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--line-soft);
  pointer-events: none;
}

.journey__fill {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: 0 0;
  transform: scaleY(var(--p, 1));
}

.journey.is-horizontal .journey__fill {
  transform: scaleX(var(--p, 1));
}

.journey__list {
  display: grid;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey__stage {
  position: relative;
  padding-left: 38px;
  font-size: 0.95rem;
  transition: opacity 0.6s var(--ease-out);
}

.journey__node {
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 11px;
  height: 11px;
  border: 1px solid var(--ink);
  background: var(--panel-solid);
  transform: rotate(45deg);
  transition: background 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}

.journey__stage.is-active .journey__node {
  background: var(--teal-deep);
  transform: rotate(45deg) scale(1.3);
}

.journey__step {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}

.journey__name {
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--teal-deep);
  margin: 4px 0 8px;
}

@media (min-width: 900px) {
  .journey__list {
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
  }

  .journey__stage {
    padding: 40px 26px 0 0;
  }

  .journey__node {
    top: 0;
  }
}

/* ---- Outcomes (CAS learning outcomes) ---- */
.outcomes {
  margin: clamp(20px, 3vw, 36px) 0 0;
  padding: 0;
  list-style: none;
}

.outcome {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 6px 18px;
  padding: 22px 0;
}

.outcome > .rule {
  position: absolute;
  top: 0;
  left: 0;
}

.outcome__code {
  grid-row: span 2;
  padding-top: 0.15em;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--teal);
}

.outcome__name {
  font-weight: 500;
  line-height: 1.5;
  color: var(--teal-deep);
}

.outcome__how {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (min-width: 900px) {
  .outcome {
    grid-template-columns: 80px 1fr 1fr;
    gap: 40px;
    padding: 26px 0;
  }

  .outcome__code {
    grid-row: auto;
  }
}

/* ---- Cards (Stories) ---- */
.cards {
  display: grid;
  gap: 18px;
  margin-top: clamp(28px, 4vw, 44px);
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: clamp(22px, 3vw, 34px);
  text-decoration: none;
  --cut: 14px;
}

.card::before {
  background: rgba(45, 90, 94, 0.08);
}

.card__kind {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}

.card__title {
  margin: auto 0 8px;
  padding-top: 36px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 300;
  color: var(--teal-deep);
}

@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- "Send a message" pop-up ---- */
.message {
  width: min(620px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  overscroll-behavior: contain;
}

/* dims the page slightly behind the pop-up */
.message::backdrop {
  background: rgba(10, 26, 29, 0.38);
}

/* it only ever shows as a pop-up, never on the page itself (also in old browsers) */
.message:not([open]) {
  display: none;
}

/* Pop-up without a real <dialog>: very old browsers (script.js adds .is-fallback),
   and visitors without JavaScript (the #message link opens it) */
.message.is-fallback[open],
html:not(.js) .message:target {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: block;
  height: -webkit-fit-content;
  height: fit-content;
  box-shadow: 0 0 0 100vmax rgba(10, 26, 29, 0.38);
}

.message[open] {
  animation: message-in 0.7s var(--ease-out);
}

.message[open]::backdrop {
  animation: message-fade 0.5s ease;
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.98);
  }
}

@keyframes message-fade {
  from {
    opacity: 0;
  }
}

.message__panel {
  --panel: rgba(246, 238, 222, 0.97);
  --pad: clamp(24px, 5vw, 48px);
  --cut: 16px;
}

/* the panel appears straight away; its outline still draws in */
.js .message .frame::before {
  transition-duration: 0.4s;
  transition-delay: 0s;
}

.message__close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}

.message__close:hover {
  color: var(--teal-deep);
}

.message__title {
  margin: 10px 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--teal-deep);
}

.message .intro {
  margin-inline: 0;
}

.message__actions {
  display: flex;
  margin-top: 6px;
}

html.message-open {
  overflow: hidden;
}

/* Without JavaScript the Close button can't work (the browser's Back button closes it) */
html:not(.js) .message__close {
  display: none;
}

/* ---- Contact form (sent by Web3Forms) ---- */
.contact-form {
  margin-top: clamp(20px, 3vw, 28px);
}

.contact-form__row {
  display: grid;
  gap: 0 28px;
}

@media (min-width: 600px) {
  .contact-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form__trap {
  display: none;
}

.field {
  display: block;
  margin-bottom: 22px;
}

.field__label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}

.field__input {
  display: block;
  width: 100%;
  padding: 10px 0;
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

textarea.field__input {
  min-height: 132px;
  resize: vertical;
}

.field__input:focus {
  outline: none;
  border-bottom-color: var(--teal-deep);
  box-shadow: 0 1px 0 var(--teal-deep);
}

.contact-form__status {
  min-height: 1.7em;
  margin-top: 18px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.contact-form__status[data-state="success"] {
  color: var(--teal-deep);
  font-weight: 500;
}

.contact-form__status[data-state="error"] {
  color: #8a2a1f;
}

/* ---- Team: tall colour panels, one per person ----
   script.js builds the artwork inside each .member. */
.team {
  display: flex;
  gap: 12px;
  height: clamp(440px, 70vh, 640px);
  margin-top: clamp(28px, 4vw, 44px);
}

.member {
  flex: 1 1 0;
  min-width: 0;
  color: #fff;
  --cut: 12px;
  --stroke: rgba(19, 42, 46, 0.55);
  transition: flex-grow 0.9s var(--ease-out);
}

.member__art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: polygon(
    var(--cut) 0, calc(100% - var(--cut)) 0,
    100% var(--cut), 100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%, var(--cut) 100%,
    0 calc(100% - var(--cut)), 0 var(--cut)
  );
}

.member__scene {
  will-change: transform; /* slides in as one layer instead of being redrawn */
}

.member__scene,
.member__bg,
.member__photo,
.member__streaks,
.member__fx,
.member__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.member__bg {
  background:
    radial-gradient(130% 55% at 25% 18%, var(--c2) 0%, transparent 62%),
    linear-gradient(168deg, var(--c2) -12%, var(--c1) 42%, var(--c3) 100%);
}

/* soft diagonal band of light */
.member__bg::after {
  content: "";
  position: absolute;
  left: -50%;
  right: -50%;
  top: 38%;
  height: 26%;
  background: linear-gradient(90deg, transparent, var(--c2), transparent);
  opacity: 0.45;
  filter: blur(14px);
  transform: rotate(-28deg);
}

.member__photo {
  object-fit: cover;
  object-position: 50% 20%;
}

.member--photo .member__bg {
  mix-blend-mode: soft-light;
  opacity: 0.85;
}

.member__initial {
  position: absolute;
  left: 12px;
  top: 44%;
  transform: translateY(-50%);
  transform-origin: left center;
  font-size: clamp(5rem, 7.2vw, 7.8rem);
  font-weight: 300;
  line-height: 1;
  text-shadow: 0 0 40px var(--c1), 0 2px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.9s var(--ease-out);
}

.member__big {
  position: absolute;
  top: 16px;
  right: 10px;
  writing-mode: vertical-rl;
  font-size: clamp(2.2rem, 3.4vw, 3.3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6);
}

.member__streaks {
  overflow: visible;
}

.member__streaks path {
  fill: none;
  stroke-linecap: round;
}

.streak--wide {
  stroke: var(--c2);
  stroke-width: 26;
  opacity: 0.2;
}

.streak--mid {
  stroke: var(--c2);
  stroke-width: 8;
  opacity: 0.4;
}

.streak--thin {
  stroke: #fff;
  stroke-width: 1.4;
  opacity: 0.75;
}

.flow {
  stroke: #fff;
  stroke-width: 3;
  stroke-dasharray: 0.07 0.93;
  opacity: 0;
  transition: opacity 1s var(--ease-out) 2s;
}

.member.is-in .flow {
  opacity: 0.85;
}

.member__shade {
  top: 45%;
  height: 55%;
  background: linear-gradient(to top, var(--c3) 5%, transparent);
  opacity: 0.9;
}

.member__num {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

.member__info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 2;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.member__name {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.member__role {
  margin-top: 4px;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Blank placeholder panel */
.member--empty .member__art {
  background: rgba(45, 90, 94, 0.08);
}

.member--empty .member__num,
.member--empty .member__info {
  color: var(--teal);
  text-shadow: none;
}

/* Particles */
.member__fx {
  pointer-events: none;
}

.member__fx span {
  position: absolute;
  top: 0;
  left: var(--x);
  width: var(--s);
  height: 100%;
  animation: fx-rise var(--dur) linear var(--delay) infinite;
  animation-play-state: paused;
}

.member__fx span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--s);
  height: var(--s);
  animation: fx-sway calc(var(--dur) / 2) ease-in-out var(--delay) infinite alternate;
  animation-play-state: paused;
}

.team.is-playing .member.is-settled .member__fx span,
.team.is-playing .member.is-settled .member__fx span::before {
  animation-play-state: running;
}

[data-kind="embers"] span::before {
  border-radius: 50%;
  background: var(--c2);
  box-shadow: 0 0 10px var(--c2), 0 0 3px #fff;
}

[data-kind="bubbles"] span::before {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), transparent 60%);
}

[data-kind="petals"] span,
[data-kind="leaves"] span {
  animation-name: fx-fall;
}

[data-kind="petals"] span::before {
  height: calc(var(--s) * 0.65);
  border-radius: 100% 0 100% 0;
  background: var(--c2);
  opacity: 0.9;
}

[data-kind="leaves"] span::before {
  height: calc(var(--s) * 0.55);
  border-radius: 0 100% 0 100%;
  background: linear-gradient(135deg, var(--c2), var(--c1));
}

/* Echoes: sound-wave rings pulsing out from the initial, plus a few ripples */
[data-kind="echoes"] span {
  top: var(--y);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  animation: none;
}

[data-kind="echoes"] span::before {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid var(--c2);
  box-shadow: 0 0 14px var(--c2), inset 0 0 10px var(--c2);
  animation: fx-echo var(--dur) cubic-bezier(0.2, 0.6, 0.35, 1) var(--delay) infinite;
  animation-play-state: paused;
}

[data-kind="sparks"] span {
  top: var(--y);
  height: var(--s);
  animation-name: fx-twinkle;
}

[data-kind="sparks"] span::before {
  background: #fff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  box-shadow: 0 0 8px #fff;
  animation: none;
}

@keyframes fx-rise {
  0% { transform: translate3d(0, 102%, 0); opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 0.9; }
  100% { transform: translate3d(0, -4%, 0); opacity: 0; }
}

@keyframes fx-fall {
  0% { transform: translate3d(0, -4%, 0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 0.9; }
  100% { transform: translate3d(0, 102%, 0); opacity: 0; }
}

@keyframes fx-sway {
  from { transform: translateX(0) rotate(var(--r)); }
  to { transform: translateX(var(--dx)) rotate(calc(var(--r) + 160deg)); }
}

@keyframes fx-echo {
  0% { transform: scale(0.06); opacity: 0; }
  12% { opacity: 0.95; }
  100% { transform: scale(1); opacity: 0; }
}

@keyframes fx-twinkle {
  0%, 100% { transform: scale(0.2); opacity: 0; }
  50% { transform: scale(1); opacity: 1; }
}

@keyframes flow {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

.team.is-playing .member.is-settled .flow {
  animation: flow 3.4s linear infinite;
  animation-delay: calc(var(--k) * -0.8s);
}

/* The panel you point at widens */
@media (hover: hover) and (min-width: 900px) {
  .member:hover {
    flex-grow: 2.3;
  }

  .member:hover .member__initial {
    transform: translateY(-50%) scale(1.08);
  }
}

/* Touch devices: a lighter team strip so it arrives smoothly on older phones.
   Half the particles, no glow halos, and no flowing light along the swooshes
   (the swooshes also fade in instead of drawing, see SCROLL ANIMATIONS). */
@media (pointer: coarse) {
  .member__fx span:nth-child(n + 7) {
    display: none;
  }

  [data-kind="embers"] span::before,
  [data-kind="echoes"] span::before,
  [data-kind="sparks"] span::before {
    box-shadow: none;
  }

  .flow {
    display: none;
  }
}

/* Tablets: all six at once, 3 across. Phones: 2 across. */
@media (max-width: 899px) {
  .team {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    height: auto;
  }

  .member {
    aspect-ratio: 3 / 5;
  }

  .member__big {
    top: 12px;
    right: 8px;
    font-size: 1.7rem;
  }

  .member__initial {
    font-size: clamp(3.6rem, 12vw, 5.5rem);
  }
}

@media (max-width: 599px) {
  .team {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  margin-top: clamp(64px, 14vh, 140px);
  padding: clamp(44px, 8vw, 96px) var(--gutter) 26px;
  overflow: hidden;
  background: rgba(18, 40, 44, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: var(--cream);
  --focus: var(--cream);
}

.footer__mark {
  font-size: clamp(2.2rem, 11.6vw, 13rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  margin-right: -0.06em;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid rgba(244, 231, 205, 0.25);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--cream-dim);
}

.footer__row a {
  text-decoration: none;
}

.footer__row a:hover {
  color: var(--cream);
}

.footer__credit {
  margin-top: 18px;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--cream-dim);
}

/* ============================================================
   SCROLL ANIMATIONS
   Only apply once script.js is running (html.js). script.js adds
   .is-in to each element as it scrolls into view.
   ============================================================ */

/* Used by script.js to snap something back to hidden while it's off screen */
.is-reset,
.is-reset *,
.is-reset::before,
.is-reset::after,
.is-reset *::before,
.is-reset *::after {
  transition: none !important;
}

/* Frames: outline draws, then the frosted panel fades in */
.js [data-frame] > .frame__line path {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset var(--draw, 1.8s) var(--ease-draw) var(--stagger, 0s);
}

.js [data-frame].is-in > .frame__line path {
  stroke-dashoffset: 0;
}

.js .frame::before {
  opacity: 0;
  transition: opacity 1.2s var(--ease-out) calc(0.35s + var(--stagger, 0s));
}

.js .frame.is-in::before {
  opacity: 1;
}

/* Content inside a frame waits for its outline to start drawing */
.frame {
  --d: 0.3s;
}

.js .frame__head .label {
  opacity: 0;
  transition: opacity 1s var(--ease-out) calc(0.3s + var(--stagger, 0s));
}

.js .frame.is-in .frame__head .label {
  opacity: 1;
}

/* Hairlines slice in */
.js .rule {
  clip-path: inset(0 100% 100% 0);
  transition: clip-path 1.3s var(--ease-out) calc(var(--d, 0s) + var(--stagger, 0s));
}

.js .rule.is-in {
  clip-path: inset(0);
}

/* Fade up */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0s) + var(--stagger, 0s));
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Split text: headings letter by letter, paragraphs word by word */
.w {
  display: inline-block;
  white-space: nowrap;
}

.ch {
  display: inline-block;
}

.js [data-split="chars"] .w {
  perspective: 800px;
}

.js [data-split="chars"] .ch {
  opacity: 0;
  transform: translate3d(0, 0.4em, 0) rotateY(75deg);
  transition: opacity 0.8s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0s) + var(--stagger, 0s) + var(--i, 0) * 24ms);
}

.js [data-split="chars"].is-in .ch {
  opacity: 1;
  transform: none;
}

.js [data-split="words"] .w {
  overflow: hidden;
  vertical-align: top;
  padding: 0.12em 0 0.14em;
  margin: -0.12em 0 -0.14em;
}

.js [data-split="words"] .w > span {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0s) + var(--stagger, 0s) + var(--i, 0) * 9ms);
}

.js [data-split="words"].is-in .w > span {
  transform: none;
}

/* Team panels wipe up, then their swooshes draw and the names fade in */
.js .member__scene {
  transform: translate3d(0, 101%, 0);
  transition: transform 1.3s var(--ease-out) calc(0.15s + var(--stagger, 0s) + var(--mi, 0) * 0.07s);
}

.js .member.is-in .member__scene {
  transform: none;
}

.js .streak {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s var(--ease-draw)
    calc(0.6s + var(--stagger, 0s) + var(--mi, 0) * 0.07s + var(--k, 0) * 0.1s);
}

.js .member.is-in .streak {
  stroke-dashoffset: 0;
}

/* touch devices: swooshes fade in (cheap) instead of drawing (redrawn every frame) */
@media (pointer: coarse) {
  .js .streak {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    transition: opacity 0.8s var(--ease-out) calc(0.6s + var(--stagger, 0s) + var(--mi, 0) * 0.07s);
  }

  .js .member:not(.is-in) .streak {
    opacity: 0;
  }
}

.js .member__info,
.js .member__num {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(0.8s + var(--stagger, 0s) + var(--mi, 0) * 0.07s);
}

.js .member.is-in .member__info {
  opacity: 1;
  transform: none;
}

.js .member.is-in .member__num {
  opacity: 0.8;
  transform: none;
}

/* Scroll-linked lines start empty and fill as you scroll */
.js .connector span {
  transform: scaleY(var(--p, 0));
}

.js .journey__fill {
  transform: scaleY(var(--p, 0));
}

.js .journey.is-horizontal .journey__fill {
  transform: scaleX(var(--p, 0));
}

.js .journey__stage {
  opacity: 0.45;
}

.js .journey__stage.is-active {
  opacity: 1;
}

/* ============================================================
   REDUCED MOTION: show everything, no movement
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-frame] > .frame__line path {
    stroke-dashoffset: 0;
    transition: none;
  }

  .js .frame::before,
  .js .frame__head .label,
  .js [data-reveal],
  .js [data-split] .ch,
  .js [data-split] .w > span,
  .js .journey__stage {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .rule {
    clip-path: none;
    transition: none;
  }

  .js .connector span,
  .js .journey__fill,
  .js .journey.is-horizontal .journey__fill {
    transform: none;
  }

  .scroll-cue__line::after {
    animation: none;
  }

  .fore {
    display: none;
  }

  .js .member__scene,
  .js .member__info,
  .js .member__num {
    transform: none;
    opacity: 1;
    transition: none;
  }

  .js .streak {
    stroke-dashoffset: 0;
    transition: none;
  }

  .member__fx,
  .flow {
    display: none;
  }

  .member,
  .member__initial {
    transition: none;
  }

  .btn::before,
  .menu,
  .menu__list a,
  .menu__list li::after {
    transition: none;
  }
}

/* Narrow phones: tighten the nav bar so brand, EN / ID, Instagram and Menu fit */
@media (max-width: 400px) {
  .nav__brand {
    letter-spacing: 0.22em;
  }

  .lang__btn {
    min-width: 28px;
    padding: 0 3px;
    letter-spacing: 0.1em;
  }

  .nav__social {
    width: 40px;
  }
}

@media (max-width: 350px) {
  .nav__brand {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
  }
}

/* ============================================================
   PHONES: bigger small print (labels, stage numbers, form labels)
   ============================================================ */
@media (max-width: 700px) {
  .label,
  .journey__step,
  .card__kind,
  .field__label,
  .message__close,
  .member__num {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
  }

  .member__role {
    font-size: 0.74rem;
  }

  .scroll-cue {
    font-size: 0.74rem;
  }

  /* long labels wrap instead of pushing past the edge */
  .frame__head .label {
    flex-shrink: 1;
    min-width: 0;
  }

  .frame__head .rule {
    min-width: 24px;
  }
}
