/* Aksara Systems - asitech.id
   Brand: docs/brand/BRAND.md. Layout units: --px is one pixel of the 2752px-wide approved comp. */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/brand/unbounded-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  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: "Unbounded";
  src: url("../fonts/brand/unbounded-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/brand/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  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: "Manrope";
  src: url("../fonts/brand/manrope-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  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 {
  /* Brand palette (Graphic Standard Manual 2026) */
  --navy: #102063;
  --azure: #2690ff;
  --sky: #67bcff;
  --purple: #9357e8;
  --coral: #ff5f5a;
  /* Grounds sampled from the approved comp */
  --ink: #02000a;
  --hall: #080c15;
  --bar: #0e1438;
  --ground: #0a0f2b;
  --paper: #f7f7f8;
  --mist: #c9d3ea;

  --display: "Unbounded", "Manrope", sans-serif;
  --text: "Manrope", system-ui, sans-serif;

  /* One comp pixel */
  --px: calc(100vw / 2752);
  /* The opening never grows taller than the screen (so its foot and the hint stay in view), but keeps
     enough height for the hero underneath, whose lowest piece ends at 1078 comp pixels */
  --frame-h: min(calc(var(--px) * 1536), max(100svh, calc(var(--px) * 1120)));
  /* The title card always fits the screen, even where the frame keeps extra room for the hero */
  --card-h: min(calc(var(--px) * 1536), 100svh);
  /* One title-card pixel: the comp scaled to that card */
  --cpx: calc(var(--card-h) / 1536);

  /* Motion curves: every transition and animation draws from these */
  --ease-out: cubic-bezier(.16, 1, .3, 1);     /* arrivals, glides, UI responses */
  --ease-soft: cubic-bezier(.2, .7, .2, 1);    /* gentle state changes: dimming, lighting */
  --ease-fade: cubic-bezier(.4, 0, .2, 1);     /* slow fades of media and the sign */
  --ease-seam: cubic-bezier(.7, 0, .2, 1);     /* images opening from a centre seam */
  --ease-peek: cubic-bezier(.65, 0, .35, 1);   /* the card cracking open and shut */

  color-scheme: dark;
}

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

html { background: var(--ground); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--paper);
  font-family: var(--text);
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

::selection { background: var(--azure); color: #fff; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--azure); color: var(--ink); font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* ---------- Icons ---------- */
.icon { width: 1em; height: 1em; flex: none; background: currentColor; }
.icon--wa { -webkit-mask: url("../assets/icons/whatsapp.svg") center / contain no-repeat; mask: url("../assets/icons/whatsapp.svg") center / contain no-repeat; }

/* ---------- First viewport: the hall, the screen, the seam ---------- */

.frame {
  position: relative;
  width: 100%;
  height: var(--frame-h);
  overflow: hidden;
  background: var(--ground);
}

/* Header: three floating objects on the dark hall: logo chip, section pill, language chip.
   Each wears the screens' bezel ring so it reads as part of the same world. */
.bar {
  --nav-h: clamp(42px, calc(var(--px) * 88), 54px);
  position: fixed;
  inset: 0 0 auto 0;
  height: max(calc(var(--px) * 158), 76px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(var(--px) * 360);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }

.bar__logo,
.bar__nav,
.bar__lang {
  --glass: .8;
  height: var(--nav-h);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 6px 14px -4px rgba(2, 0, 10, .45), 0 24px 60px -12px rgba(2, 0, 10, .75);
}
/* One dark purple-to-navy sweep across the header: the logo chip holds the purple end,
   the pill passes through, the language chip holds brand navy */
.bar__logo { background: rgba(40, 20, 88, var(--glass)); }
.bar__nav { background: linear-gradient(90deg, rgba(40, 20, 88, var(--glass)), rgba(26, 24, 92, var(--glass)) 50%, rgba(16, 32, 99, var(--glass))); }
.bar__lang { background: rgba(16, 32, 99, var(--glass)); }
/* A thin brand purple-to-azure edge on each piece. Hidden for now: it pulled the eye; remove display: none to bring it back */
.bar__logo, .bar__lang { position: relative; }
.bar__logo::after,
.bar__nav::before,
.bar__lang::after {
  display: none;
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--azure));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
/* Frosted glass only where the blur exists; otherwise (and for people who ask for less transparency) stay solid */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bar__logo, .bar__nav, .bar__lang { --glass: .94; }
}
@media (prefers-reduced-transparency: reduce) {
  .bar__logo, .bar__nav, .bar__lang { --glass: .94; }
}

.bar__logo { display: flex; align-items: center; padding: 0 calc(var(--nav-h) * .42); }
.bar__logo img { width: auto; height: 62%; }

.bar__nav {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
}
.bar__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 100%;
  padding: 0 clamp(14px, calc(var(--px) * 36), 22px) 0 clamp(12px, calc(var(--px) * 30), 18px);
  border-radius: 999px;
  color: var(--mist);
  font-size: clamp(13px, calc(var(--px) * 28), 16px);
  font-weight: 500;
  line-height: 1;
  transition: color .25s ease-out;
}
/* The tag-pill's sky triangle marks the section on screen; it always holds its slot so widths never shift */
.bar__link::before {
  content: "";
  width: 7px;
  height: 9px;
  background: var(--sky);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  opacity: 0;
  scale: .3;
  transition: opacity .3s ease-out, scale .45s var(--ease-out);
}
.bar__link:hover { color: var(--paper); }
.bar__link.is-current { color: var(--paper); }
.bar__link.is-current::before { opacity: 1; scale: 1; }
.bar__icon { display: none; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Highlight that glides to the current section */
.bar__indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: var(--w, 0);
  translate: var(--x, 0) 0;
  border-radius: 999px;
  background: rgba(103, 188, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(103, 188, 255, .22);
  opacity: var(--on, 0);
  transition: translate .55s var(--ease-out), width .55s var(--ease-out), opacity .3s ease-out;
}
/* Page progress fills along the pill's lower edge, like the timeline */
.bar__nav::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sky), var(--azure));
  transform: scaleX(var(--page, 0));
  transform-origin: left;
}

.bar__whatsapp {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  margin-left: 6px;
  padding: 0 clamp(16px, calc(var(--px) * 40), 24px);
  border-radius: 999px;
  background: var(--azure);
  color: var(--ink);
  font-size: clamp(13px, calc(var(--px) * 28), 16px);
  font-weight: 700;
  line-height: 1;
  transition: background-color .2s ease-out, scale .16s var(--ease-out);
}
.bar__whatsapp:hover { background: var(--sky); }
.bar__whatsapp .icon { font-size: 1.15em; }

.bar__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 calc(var(--nav-h) * .4);
  border: 0;
  font: inherit;
  font-size: clamp(13px, calc(var(--px) * 28), 16px);
  font-weight: 600;
  line-height: 1;
  color: var(--mist);
  cursor: pointer;
}
.bar__lang [data-lang] { transition: color .2s ease-out; }
.bar__lang [aria-current="true"] { color: var(--sky); }
.bar__lang-sep { opacity: .5; }
/* The current language's mark: Indonesia's flag, or a neutral globe for English (no country claims English) */
.bar__flag { width: 18px; height: 18px; flex: none; margin-right: 4px; color: var(--sky); }
.bar__flag--en { display: none; }
html:lang(en) .bar__flag--id { display: none; }
html:lang(en) .bar__flag--en { display: block; }

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--px) * 14);
  border: calc(var(--px) * 3) solid rgba(247, 247, 248, .92);
  border-radius: 999px;
  color: var(--paper);
  font-weight: 500;
  line-height: 1;
  transition: background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out, scale .16s var(--ease-out);
}
.pill-link:hover { background: var(--paper); color: var(--navy); }

/* The stage: hall, screen, audience as one plate */
.stage {
  position: absolute;
  left: 0;
  top: calc(var(--px) * 158);
  width: 100%;
  height: calc(var(--px) * 1250);
  overflow: hidden;
}
.stage__plate {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Everything presented on the screen, in comp coordinates */
.screen-logo {
  position: absolute;
  left: calc(var(--px) * 1241);
  top: calc(var(--px) * 225);
  width: calc(var(--px) * 270);
  height: calc(var(--px) * 91);
  object-fit: contain;
}

.headline {
  position: absolute;
  left: calc(var(--px) * 370);
  top: calc(var(--px) * 372);
  font-family: var(--display);
  font-weight: 500;
  font-size: calc(var(--px) * 115);
  line-height: 1.09;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--paper);
}
.headline span { display: block; }

.subline {
  position: absolute;
  left: calc(var(--px) * 370);
  top: calc(var(--px) * 766);
  font-weight: 300;
  font-size: calc(var(--px) * 47);
  line-height: 1;
  color: var(--paper);
  white-space: nowrap;
}

.cta {
  position: absolute;
  left: calc(var(--px) * 372);
  top: calc(var(--px) * 868);
  width: calc(var(--px) * 408);
  height: calc(var(--px) * 96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--px) * 16);
  border-radius: 999px;
  background: var(--azure);
  color: var(--ink);
  font-weight: 600;
  font-size: calc(var(--px) * 32);
  line-height: 1;
  box-shadow: 0 calc(var(--px) * 8) calc(var(--px) * 24) rgba(2, 0, 10, .45);
  transition: background-color .2s ease-out, scale .16s var(--ease-out);
}
.cta .icon { font-size: calc(var(--px) * 38); }
.cta:hover { background: var(--sky); }

.tags {
  position: absolute;
  left: calc(var(--px) * 376);
  top: calc(var(--px) * 1010);
  display: flex;
  gap: calc(var(--px) * 24);
}
.tags li {
  display: inline-flex;
  align-items: center;
  height: calc(var(--px) * 68);
  padding: 0 calc(var(--px) * 34);
  border: calc(var(--px) * 3) solid rgba(247, 247, 248, .92);
  border-radius: 999px;
  font-size: calc(var(--px) * 30);
  font-weight: 500;
  line-height: 1;
}

/* The seam where the title card splits */
.seam {
  position: absolute;
  left: calc(var(--px) * 212);
  top: calc(var(--cpx) * 674);
  width: calc(var(--px) * 2328);
  height: calc(var(--px) * 4);
  background: var(--ink);
}

/* ---------- The opening: the title card splits at the seam ---------- */

.opening { position: relative; }

.curtain {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  pointer-events: none;
}
.curtain__half {
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
  will-change: transform;
}
/* The card runs up under the floating header; the split stays at the comp's seam (158 + 516) */
.curtain__half--top {
  top: 0;
  height: calc(var(--cpx) * 674);
  transform: translateY(calc(var(--open, 0) * -100%));
}
.curtain__half--bottom {
  top: calc(var(--cpx) * 674);
  bottom: 0;
  transform: translateY(calc(var(--open, 0) * 100%));
}
.curtain__card {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--card-h);
  display: grid;
  align-content: center;
  justify-content: start;
  padding: calc(var(--cpx) * 158) 0 0 calc(var(--px) * 372);
  color: var(--navy);
  background:
    url("../assets/brand/tri-fade-sky.webp") right -6% bottom -14% / 62% auto no-repeat,
    linear-gradient(180deg, #f4f7fc 0%, #e6eef9 100%);
}
.curtain__half--bottom .curtain__card { top: calc(var(--cpx) * -674); }

.curtain__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: calc(var(--cpx) * 236);
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.curtain__title span { display: block; }
.curtain__title span:nth-child(2) { padding-left: calc(var(--cpx) * 420); }
.curtain__sign {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: calc(var(--cpx) * 36);
  margin-top: calc(var(--cpx) * 44);
  font-size: calc(var(--cpx) * 30);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.curtain__sign img {
  width: calc(var(--cpx) * 260);
  height: auto;
}
/* The way in: a solid azure pill with a moving gesture icon, worded for the device in hand */
.curtain__hint {
  position: absolute;
  left: 0;
  right: 0;
  /* At the card's foot; the frame can run past the card (and the fold) on very wide, short windows */
  bottom: calc(var(--frame-h) - var(--card-h) + var(--cpx) * 64);
  width: max-content;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 16px;
  border-radius: 999px;
  background: var(--azure);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 28px -8px rgba(38, 144, 255, .6), 0 4px 10px -4px rgba(2, 0, 10, .35);
  opacity: clamp(0, 1 - var(--open, 0) * 2.2, 1);
}
/* The pulse ring: scaled and faded, never a box-shadow animation, so it never repaints */
.curtain__hint::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 2px rgba(38, 144, 255, .55);
  opacity: 0;
  pointer-events: none;
}
/* A mouse with its wheel turning; on touch screens it becomes a finger swiping up */
.curtain__hint-icon {
  position: relative;
  flex: none;
  width: 18px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 9px;
}
.curtain__hint-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 4px;
  height: 6px;
  margin-left: -2px;
  border-radius: 2px;
  background: currentColor;
}
.curtain__hint-text--touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .curtain__hint-text--mouse { display: none; }
  .curtain__hint-text--touch { display: inline; }
  .curtain__hint-icon { border-radius: 4px; }
  .curtain__hint-icon::after { top: auto; bottom: 3px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; }
}

@media (prefers-reduced-motion: no-preference) {
  html.js .opening { height: calc(var(--frame-h) + 112.5vh); }
  html.js .opening > .frame { position: sticky; top: 0; }
  html.js .curtain { display: block; }
  html.js .is-opened .curtain { display: none; }
}

/* ---------- Shared section voice ---------- */

:root {
  --gutter: calc(var(--px) * 372);
  --mist-dim: rgba(201, 211, 234, .72);
  --line: rgba(201, 211, 234, .16);
}

.display {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--paper);
}
.section-lead {
  margin-top: 24px;
  max-width: 56ch;
  font-size: clamp(1.0625rem, 1.2vw, 1.3125rem);
  line-height: 1.6;
  color: var(--mist);
}

.pill-link {
  padding: 0 calc(var(--px) * 34);
}
.pill-link--solid {
  border-color: var(--azure);
  background: var(--azure);
  color: var(--ink);
  font-weight: 600;
}
.pill-link--solid:hover { background: var(--sky); border-color: var(--sky); color: var(--ink); }

.cta-inline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--azure);
  color: var(--ink);
  font-weight: 600;
  font-size: 1.0625rem;
  transition: background-color .2s ease-out, scale .16s var(--ease-out);
}
.cta-inline .icon { font-size: 1.25rem; }
.cta-inline:hover { background: var(--sky); }

/* Press feedback: every button gives a little the instant it is pressed. It uses scale, not transform,
   so it stacks on the header's entrance and the opening's scroll-driven arrival instead of fighting them */
.bar__lang { transition: scale .16s var(--ease-out); }
.bar__whatsapp:active,
.bar__lang:active,
.cta:active,
.cta-inline:active,
.pill-link:active { scale: .97; }
.bar__whatsapp, .bar__lang, .cta, .cta-inline, .pill-link { -webkit-tap-highlight-color: transparent; }

/* ---------- Work: the project timeline ---------- */

.work {
  position: relative;
  margin-top: calc(var(--px) * -182);
  padding: 0 var(--gutter) clamp(120px, 12vw, 220px);
}

.work__title {
  font-size: calc(var(--px) * 29);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--paper);
}

.timeline {
  position: relative;
  margin-top: calc(var(--px) * 59);
}
.timeline__track {
  position: absolute;
  left: calc(var(--px) * 4);
  top: calc(var(--px) * -23);
  bottom: 0;
  width: calc(var(--px) * 12);
  border-radius: calc(var(--px) * 6);
  background: rgba(201, 211, 234, .1);
  overflow: hidden;
}
.timeline__fill {
  width: 100%;
  height: max(calc(var(--px) * 140), calc(var(--progress, 0) * 100%));
  border-radius: inherit;
  background: linear-gradient(180deg, #63a8ea 0%, var(--azure) 55%, var(--purple) 100%);
}

.projects { display: grid; gap: clamp(112px, 16vh, 200px); }

.project {
  position: relative;
  padding-left: calc(var(--px) * 46);
  transition: opacity .6s var(--ease-soft);
}
html.js .project:not(.is-active) .project__name,
html.js .project:not(.is-active) .project__text { opacity: .55; }
html.js .project:not(.is-active) .project__media { opacity: .4; }
.project__name, .project__text, .project__media { transition: opacity .6s var(--ease-soft); }

.project__name {
  font-size: calc(var(--px) * 58);
  line-height: 1.2;
  font-weight: 700;
  color: var(--paper);
}
.project__kind { font-weight: 300; color: var(--azure); }

.project__body {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
  margin-top: clamp(24px, 2.4vw, 40px);
}
.project__text p {
  max-width: 38ch;
  font-size: clamp(1.0625rem, 1.25vw, 1.375rem);
  line-height: 1.55;
  color: var(--paper);
}
.project__text .project__note {
  margin-top: 16px;
  font-size: clamp(.9375rem, 1vw, 1.0625rem);
  color: var(--mist-dim);
}
.project__media {
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #04060c;
  border: 1px solid var(--line);
  box-shadow: 0 28px 56px -12px rgba(2, 0, 10, .6);
}
.project__media video,
.project__media img { width: 100%; height: 100%; object-fit: cover; }

.work__turn {
  margin-top: clamp(120px, 16vh, 200px);
  padding-left: calc(var(--px) * 46);
}
.work__turn-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 4.25rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.work__turn-text {
  margin: 20px 0 32px;
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.25vw, 1.375rem);
  line-height: 1.55;
  color: var(--mist);
}
.work__turn .pill-link { height: 56px; padding: 0 28px; font-size: 1.0625rem; gap: 12px; border-width: 2px; }
.work__turn .pill-link .icon { font-size: 1.25rem; }

/* ---------- Services: the list drives the screen ---------- */

.services {
  padding: clamp(120px, 12vw, 220px) var(--gutter);
  border-top: 1px solid var(--line);
}
.services__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 112px);
  margin-top: clamp(56px, 6vw, 96px);
}
.service {
  padding: clamp(32px, 3vw, 48px) 0;
  border-top: 1px solid var(--line);
  transition: opacity .5s ease-out;
}
.service:last-child { border-bottom: 1px solid var(--line); }
html.js .service:not(.is-active) { opacity: .62; }
.service__name {
  font-size: clamp(1.5rem, 2.1vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.01em;
}
.service__text {
  margin-top: 14px;
  max-width: 44ch;
  font-size: clamp(1rem, 1.1vw, 1.1875rem);
  line-height: 1.6;
  color: var(--mist);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li {
  padding: 7px 14px;
  border: 1px solid rgba(201, 211, 234, .32);
  border-radius: 999px;
  font-size: .875rem;
  line-height: 1.2;
  color: var(--paper);
}
.service__inline { display: none; }

.services__screen { position: relative; }
.screen {
  position: sticky;
  top: calc(50vh - min(19vw, 30vh));
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #04060c;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -20px rgba(2, 0, 10, .7);
}
.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  /* A slight blur on the slide coming and going hides the moment both show at once */
  filter: blur(2px);
  transition: opacity .7s var(--ease-soft), transform 1.2s var(--ease-soft), filter .7s var(--ease-soft);
}
.screen img.is-active { opacity: 1; transform: none; filter: none; }
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top right, rgba(11, 18, 29, 0.4), transparent);
  pointer-events: none;
}

/* ---------- Why Aksara ---------- */

.why {
  padding: clamp(120px, 12vw, 220px) var(--gutter);
  border-top: 1px solid var(--line);
}
.why__statement { max-width: 20ch; font-size: clamp(2.25rem, 4.4vw, 5.5rem); }

.point {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
  margin-top: clamp(80px, 9vw, 160px);
}
.point--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.point--flip .point__image { order: 2; }
.point__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.point__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.2vw, 2.75rem);
  line-height: 1.1;
  text-transform: uppercase;
}
.point__text p {
  margin-top: 18px;
  max-width: 40ch;
  font-size: clamp(1.0625rem, 1.25vw, 1.375rem);
  line-height: 1.6;
  color: var(--mist);
}

.mission { margin-top: clamp(96px, 10vw, 180px); }
.mission__title {
  font-size: clamp(1.25rem, 1.5vw, 1.625rem);
  font-weight: 700;
}
.mission__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(24px, 2.4vw, 40px);
  margin-top: 32px;
}
.mission__list p {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--mist);
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 14px;
  border: 1.5px solid rgba(247, 247, 248, .85);
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
}
.tag-pill::before {
  content: "";
  width: 8px;
  height: 10px;
  background: var(--sky);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ---------- Clients: the mosaic assembles, logos land ---------- */

.clients {
  position: relative;
  overflow: hidden;
  padding: clamp(120px, 12vw, 220px) var(--gutter);
  background: #070b22;
}
/* Three depth layers of the field. Each is overscanned by the largest parallax travel
   (set from JS as --overscan) so its edges never show while it drifts. */
.clients__mosaic {
  position: absolute;
  left: 0;
  top: calc(var(--overscan, 0px) / -2);
  width: 100%;
  height: calc(100% + var(--overscan, 0px));
  will-change: transform;
}
.clients__mosaic--far { opacity: .55; }
.clients__mosaic--mid { opacity: .8; }
.clients__mosaic polygon {
  --lp: clamp(0, calc((var(--p, 1) - var(--d, 0)) / .55), 1);
  opacity: calc(var(--lp) * .9);
  transform: translate(calc(var(--dx, 0px) * (1 - var(--lp))), calc(var(--dy, 0px) * (1 - var(--lp))));
}
@media (prefers-reduced-motion: reduce) {
  .clients { --p: 1 !important; }
  html.js .clients__grid li { opacity: 1; transform: none; }
}
.clients__inner { position: relative; z-index: 1; }
.clients__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(56px, 6vw, 96px);
  background: var(--line);
  border: 1px solid var(--line);
}
.clients__grid li {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  padding: 0 12%;
  background: rgba(7, 11, 34, .86);
  transition: opacity .6s var(--ease-soft), transform .6s var(--ease-soft);
}
@media (prefers-reduced-motion: no-preference) {
  html.js .clients__grid li { opacity: 0; transform: scale(1.06); }
  html.js .clients__grid li.is-in { opacity: 1; transform: none; }
}
.clients__grid img {
  width: auto;
  max-width: 100%;
  max-height: clamp(36px, 3.6vw, 64px);
  object-fit: contain;
  opacity: .92;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 112px);
  padding: clamp(120px, 12vw, 220px) var(--gutter);
}
.faq .display { font-size: clamp(1.75rem, 2.6vw, 3.25rem); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 28px 56px 28px 0;
  list-style: none;
  cursor: pointer;
  font-size: clamp(1.125rem, 1.35vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--sky);
  transition: transform .3s var(--ease-soft);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--sky); }
.faq details p {
  padding: 0 56px 32px 0;
  max-width: 65ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--mist);
}

/* ---------- Closing ---------- */

.closing {
  position: relative;
  overflow: hidden;
  padding: clamp(140px, 14vw, 260px) var(--gutter);
  background: linear-gradient(180deg, var(--ground) 0%, #0c1238 100%);
}
.closing__art {
  position: absolute;
  right: -6%;
  top: 50%;
  width: min(62vw, 1100px);
  transform: translateY(-50%);
  opacity: .9;
  pointer-events: none;
}
.closing__inner { position: relative; max-width: 760px; }
.closing__title { font-size: clamp(2.25rem, 4.4vw, 5.5rem); max-width: 14ch; }
.closing__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.closing__actions .pill-link { height: 56px; padding: 0 28px; font-size: 1.0625rem; border-width: 2px; }

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

/* Footer: the brand's end card. The K's gradient right-triangles (Triangular Gradient, the
   manual's own stops) march in from the right edge, a Triangular Fade rises from the floor,
   and the timeline's gradient draws the top edge. */
.footer {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(48px, 6vw, 88px);
  padding: clamp(88px, 9vw, 140px) var(--gutter) 40px;
  background: linear-gradient(180deg, var(--hall) 0%, #0a0e24 100%);
}
/* Triangular Fade rising from the floor, kept faint so the logo and links stay clean */
.footer::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(760px, 70%);
  aspect-ratio: 1200 / 721;
  background: url("../assets/brand/tri-fade-navy.webp") left bottom / 100% auto no-repeat;
  opacity: .4;
  transform: translateY(38%);
  pointer-events: none;
}
.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--azure) 50%, var(--purple));
}
.footer > * { position: relative; z-index: 1; }

.footer__mark {
  position: absolute;
  z-index: 0;
  right: max(-3vw, -60px);
  top: clamp(36px, 4vw, 64px);
  width: min(36vw, 520px);
  height: auto;
  pointer-events: none;
}
.footer__k--2 { opacity: .55; }
.footer__k--3 { opacity: .28; }

.footer__statement {
  max-width: 14ch;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.6vw, 3.5rem);
  line-height: 1.06;
  text-transform: uppercase;
  color: var(--paper);
}
.footer__statement span { display: block; }

.footer__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.footer__brand img { display: block; width: 150px; height: auto; }
.footer__nav { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.footer__nav a,
.footer__contact a { color: var(--mist); transition: color .2s ease-out; }
.footer__nav a:hover,
.footer__contact a:hover { color: var(--sky); }
.footer__contact { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 24px; }
.footer__contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer__contact .icon { font-size: 1.05em; color: var(--sky); }
.footer__legal {
  margin-top: calc(clamp(48px, 6vw, 88px) * -.5);
  font-size: .875rem;
  color: var(--mist-dim);
}
/* Narrow desktop widths: pull the chips out to the edges so the centred pill fits between them */
@media (max-width: 1000px) and (min-width: 821px) {
  .bar { padding: 0 20px; }
}
@media (max-width: 1100px) and (min-width: 821px) {
  .footer__bar { grid-template-columns: auto minmax(0, 1fr); }
  .footer__nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
}

/* ---------- Browser surfaces ---------- */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--px) * 158 + 24px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar__indicator, .bar__link::before { transition: none; }
}
body { scrollbar-color: #2a3a78 var(--ground); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline-color: var(--sky); }

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .mission__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clients__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- Phone: the stage becomes a portrait screen ---------- */

@media (max-width: 820px) {
  :root { --gutter: 20px; --frame-h: max(100svh, 640px); }

  /* Phone: logo and language ride at the top of the page; the sections become a bottom tab bar */
  .bar { --nav-h: 44px; position: absolute; height: auto; padding: 14px 16px; }
  .bar__logo { padding: 0 16px; }
  .bar__lang { padding: 0 16px; font-size: .875rem; }
  .bar__nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    translate: none;
    height: 64px;
    gap: 0;
  }
  .bar__link, .bar__whatsapp {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0;
    font-size: .6875rem;
    font-weight: 600;
  }
  .bar__link::before { display: none; }
  .bar__icon { display: block; }
  .bar__whatsapp { margin-left: 4px; }
  .bar__whatsapp .icon { font-size: 21px; }
  .bar__nav::after { left: 18px; right: 18px; }
  .footer { padding-bottom: calc(48px + 84px + env(safe-area-inset-bottom)); }

  .frame { height: 100svh; min-height: 640px; }
  .stage { top: 0; height: 100%; }
  .stage__plate { object-position: 64% 40%; }
  .stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 21, .2) 30%, rgba(8, 12, 21, .82) 78%);
  }
  main#main {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 18px;
    padding: 0 20px 56px;
  }
  .screen-logo { display: none; }
  .headline, .subline, .cta, .tags { position: relative; left: auto; top: auto; z-index: 1; }
  .headline { font-size: clamp(2.5rem, 12vw, 3.75rem); line-height: 1.02; }
  .subline { font-size: 1.125rem; white-space: normal; line-height: 1.4; }
  .cta { width: auto; height: 52px; padding: 0 22px; gap: 10px; font-size: 1rem; align-self: flex-start; }
  .cta .icon { font-size: 1.25rem; }
  .tags { gap: 8px; flex-wrap: wrap; }
  .tags li { height: 34px; padding: 0 14px; font-size: .875rem; border-width: 1.5px; }
  .seam { left: 0; width: 100%; top: 45%; height: 3px; }

  .curtain { inset: 0; }
  .curtain__half--top { height: 45%; }
  .curtain__half--bottom { top: 45%; }
  /* Both cards are as tall as the frame (never under 640px), so the halves line up on short phones too;
     the bottom padding keeps the title centred in the part of the frame that is on screen */
  .curtain__card { height: var(--frame-h); padding: 0 20px calc(var(--frame-h) - 100svh); }
  .curtain__half--bottom .curtain__card { top: calc(var(--frame-h) * -.45); }
    .curtain__title { font-size: clamp(2.25rem, 11.2vw, 4.5rem); }
  .curtain__title span:nth-child(2) { padding-left: 7vw; }
  .curtain__sign { margin-top: 24px; gap: 14px; font-size: .75rem; }
  .curtain__sign img { width: 110px; }
  /* Clear of the tab bar, measured from the bottom of the screen rather than of the (possibly taller) frame */
  .curtain__hint { bottom: calc(var(--frame-h) - 100svh + 28px + 84px); font-size: 1.0625rem; padding: 14px 24px 14px 18px; }

  .work { margin-top: 0; padding-top: 72px; }
  .work__title { font-size: .875rem; }
  .timeline { margin-top: 32px; }
  .timeline__track { left: 0; width: 4px; top: -8px; }
  .timeline__fill { height: max(64px, calc(var(--progress, 0) * 100%)); }
  .project { padding-left: 24px; }
  .project__name { font-size: 1.375rem; }
  .project__body { grid-template-columns: 1fr; gap: 20px; }
  .work__turn { padding-left: 24px; }

  .services__layout { grid-template-columns: 1fr; }
  .services__screen { display: none; }
  html.js .service:not(.is-active) { opacity: 1; }
  .service__inline {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-top: 24px;
    border-radius: 14px;
    border: 1px solid var(--line);
  }

  .point, .point--flip { grid-template-columns: 1fr; gap: 24px; }
  .point--flip .point__image { order: 0; }
  .mission__list { grid-template-columns: 1fr; gap: 28px; }

  .clients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients__grid li { aspect-ratio: 4 / 3; padding: 0 16%; }
  .clients__grid img { max-height: 34px; }

  .faq { grid-template-columns: 1fr; }
  .faq summary { padding-right: 44px; }
  .faq details p { padding-right: 0; }

  .closing__art { width: 120vw; right: -40%; top: 18%; opacity: .55; }
  .footer__mark { width: 78vw; right: -18vw; top: 16px; opacity: .45; }
  .footer__bar { grid-template-columns: 1fr; justify-items: start; gap: 28px; }
  .footer__nav, .footer__contact { justify-content: flex-start; }
}

/* ---------- Finish-review fixes ---------- */

/* The seam runs behind the presented type, as in the comp */
.seam { z-index: 0; }
.screen-logo, .headline, .subline, .cta, .tags { z-index: 1; }

/* The hall floor runs on into the timeline instead of stopping on a hard edge */
.frame { background: linear-gradient(180deg, var(--hall) 0%, var(--hall) 91.6%, #1a2240 91.7%, var(--ground) 100%); }
.stage::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5%;
  z-index: 1;
  background: linear-gradient(180deg, rgba(26, 34, 64, 0) 0%, #1a2240 100%);
  pointer-events: none;
}

.service__figure { position: relative; margin: 0; }
/* Grade the service photos toward the navy panel so warm skin tones settle in */
.service__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(to top right, rgba(11, 18, 29, 0.4), transparent);
  pointer-events: none;
}
.point__figure { position: relative; margin: 0; }
.point--flip .point__figure { order: 2; }

/* Inactive projects dim by hue, holding text at readable contrast */
html.js .project:not(.is-active) .project__name,
html.js .project:not(.is-active) .project__text { opacity: 1; }
html.js .project:not(.is-active) .project__name { color: #9aa3c0; }
html.js .project:not(.is-active) .project__kind { color: #6b8fd0; }
html.js .project:not(.is-active) .project__text p { color: #9aa3c0; }
html.js .project:not(.is-active) .project__text .project__note { color: #8b93b3; }
.project__name, .project__kind, .project__text p { transition: color .6s var(--ease-soft); }

/* Project media are small screens of the same hall: a dark bezel around each */
.project__media {
  border: 0;
  box-shadow: 0 0 0 1px rgba(201, 211, 234, .14), 0 0 0 9px #05070d, 0 32px 64px -16px rgba(2, 0, 10, .7);
}

/* The Flow trail threads from the timeline into the next screen */
.work::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6%;
  width: min(58vw, 960px);
  aspect-ratio: 1400 / 1177;
  background: url("../assets/brand/flow-blur-thread.webp") center / contain no-repeat;
  opacity: .42;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.work__turn { position: relative; z-index: 1; }
.services { z-index: 1; }

/* Services are presented on the screen: a bezel-framed navy panel inset at the stage's screen edges */
.services {
  position: relative;
  margin: 0 calc(var(--px) * 212);
  padding: clamp(96px, 9vw, 176px) calc(var(--px) * 160);
  border-top: 0;
  border-radius: 6px;
  background:
    radial-gradient(55% 32% at 76% 20%, rgba(38, 144, 255, .2), transparent 72%),
    radial-gradient(48% 30% at 0% 100%, rgba(147, 87, 232, .14), transparent 72%),
    url("../assets/brand/tri-fade-navy.webp") left -4% top -10% / 38% auto no-repeat,
    linear-gradient(160deg, #13205f 0%, #0d1748 55%, #0a1238 100%);
  box-shadow: 0 0 0 1px rgba(103, 188, 255, .14), 0 0 0 12px #05070d, 0 60px 120px -40px rgba(2, 0, 10, .8);
}
/* A sky triangle lattice rises from each navy screen's floor, as in the Triangular Fade */
.services::before,
.faq::before,
.project__body::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='83' viewBox='0 0 96 83'%3E%3Cg fill='%2367BCFF'%3E%3Cpath fill-opacity='.05' d='M0 41.5 24 0l24 41.5z'/%3E%3Cpath fill-opacity='.02' d='M24 0h48L48 41.5z'/%3E%3Cpath fill-opacity='.08' d='M48 41.5 72 0l24 41.5z'/%3E%3Cpath fill-opacity='.03' d='M72 0h48L96 41.5zM-24 0h48L0 41.5z'/%3E%3Cpath fill-opacity='.07' d='M0 41.5h48L24 83z'/%3E%3Cpath fill-opacity='.03' d='M24 83 48 41.5 72 83z'/%3E%3Cpath fill-opacity='.05' d='M48 41.5h48L72 83z'/%3E%3Cpath fill-opacity='.09' d='M72 83l24-41.5L120 83zM-24 83 0 41.5 24 83z'/%3E%3C/g%3E%3C/svg%3E") left bottom / 96px 83px repeat;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .35) 30%, transparent 62%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .35) 30%, transparent 62%);
  pointer-events: none;
}
.services > * { position: relative; z-index: 1; }
.why { border-top: 0; }

@media (max-width: 820px) {
  /* Phone hero: keep the screen as an object in the hall */
  .stage__plate { object-position: 50% 50%; }
  .stage::after { background: linear-gradient(180deg, rgba(8, 12, 21, .1) 10%, rgba(10, 16, 48, .62) 30%, rgba(10, 16, 48, .62) 62%, rgba(8, 12, 21, 0) 80%); }
  main#main { justify-content: center; padding: 120px 20px 18svh 34px; }
  .screen-logo { display: block; position: relative; left: auto; top: auto; width: 116px; height: auto; margin-bottom: 6px; }
  .seam { left: 0; width: auto; right: 0; top: 41.3%; height: 3px; }
  .curtain__half--top { height: 41.3%; }
  .curtain__half--bottom { top: 41.3%; }
  .curtain__half--bottom .curtain__card { top: calc(var(--frame-h) * -.413); }

  .service__figure { margin-top: 24px; }
  .service__inline { margin-top: 0; }
  .point--flip .point__figure { order: 0; }

  .work::after { width: 100vw; right: 0; bottom: -2%; opacity: .3; }
  .services { margin: 0 10px; padding: 72px 18px; box-shadow: 0 0 0 1px rgba(103, 188, 255, .14), 0 0 0 6px #05070d; }
}
/* Phones on their side: a smaller title fits between the header and the tab bar, and the hint moves beside it */
@media (max-width: 820px) and (orientation: landscape) and (max-height: 500px) {
  .curtain__title { font-size: min(11.2vw, 12svh); }
  .curtain__sign { margin-top: 14px; }
  .curtain__sign img { width: 90px; }
  .curtain__hint { left: auto; right: 24px; margin: 0; }
}

/* ---------- Round 2: every proof section is presented on a screen ---------- */

/* Shared screen panel: inset at the stage screen's edges, dark bezel, brand mosaic in a corner */
.services, .why, .faq {
  position: relative;
  z-index: 1;
  margin: clamp(56px, 5vw, 104px) calc(var(--px) * 212);
  padding: clamp(96px, 9vw, 176px) calc(var(--px) * 160);
  border-top: 0;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(103, 188, 255, .14), 0 0 0 12px #05070d, 0 60px 120px -40px rgba(2, 0, 10, .8);
}
.services { margin-top: 0; }
.faq {
  background:
    radial-gradient(50% 60% at 12% 18%, rgba(38, 144, 255, .18), transparent 72%),
    radial-gradient(42% 50% at 100% 100%, rgba(147, 87, 232, .14), transparent 72%),
    linear-gradient(200deg, #13205f 0%, #0d1748 55%, #0a1238 100%);
}
.faq > * { position: relative; z-index: 1; }

/* Why Aksara: the light screen, from the manual's white-to-sky artwork */
.why {
  --line: rgba(16, 32, 99, .16);
  color: var(--navy);
  background:
    url("../assets/brand/tri-fade-sky.webp") right -8% bottom -10% / 46% auto no-repeat,
    linear-gradient(180deg, #f6f9fd 0%, #e2edfb 100%);
  box-shadow: 0 0 0 1px rgba(103, 188, 255, .3), 0 0 0 12px #05070d, 0 60px 120px -40px rgba(2, 0, 10, .8);
}
.why .display { color: var(--navy); }

/* Gradient triangle chevrons, from the kit's light calendar page, run off the screen edge beside the lead; a soft glow is cast behind each photo */
.why { overflow: hidden; }
.why > * { position: relative; z-index: 1; }
.why::before {
  content: "";
  position: absolute;
  top: 24vw;
  right: -9%;
  width: min(40%, 580px);
  aspect-ratio: 2 / 1;
  background: url("../assets/brand/tri-chevrons-sky.svg") center / contain no-repeat;
  pointer-events: none;
}
/* A soft navy-purple halo settles in the top left corner */
.why::after {
  content: "";
  position: absolute;
  top: -18vw;
  left: -14vw;
  width: min(60%, 860px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(147, 87, 232, .2), rgba(16, 32, 99, .1) 50%, transparent 100%);
  pointer-events: none;
}
@media (max-width: 820px) {
  .why::before { top: 8px; right: -6px; width: 30%; }
  .why::after { top: -40vw; left: -40vw; width: 120%; }
}
.point__figure::before {
  content: "";
  position: absolute;
  inset: -6% -18% -26% 6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(38, 144, 255, .5), rgba(103, 188, 255, .3) 60%, transparent 100%);
  filter: blur(32px);
  pointer-events: none;
}
.point--flip .point__figure::before { inset: -6% 6% -26% -18%; }
.why .section-lead,
.why .point__text p,
.why .mission__list p { color: #34416f; }
.why .point__image { border-color: rgba(16, 32, 99, .14); }
.why .tag-pill { border-color: var(--navy); color: var(--navy); }
.why .tag-pill::before { background: var(--azure); }
.why ::selection { background: var(--navy); color: #fff; }
.why :focus-visible { outline-color: var(--navy); }

/* Timeline: each project is a small screen that powers on when it is active */
.project__body {
  position: relative;
  padding: clamp(24px, 2.6vw, 44px);
  border-radius: 6px;
  background:
    url("../assets/brand/tri-fade-navy.webp") left -6% top -18% / 34% auto no-repeat,
    linear-gradient(160deg, #13205f 0%, #0d1748 60%, #0a1238 100%);
  box-shadow: 0 0 0 1px rgba(103, 188, 255, .14), 0 0 0 9px #05070d, 0 40px 80px -30px rgba(2, 0, 10, .75);
  transition: filter .6s var(--ease-soft);
}
.project__body::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(5, 7, 13, .42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s var(--ease-soft);
}
.project__body > * { position: relative; z-index: 1; }
.project__body {
  background:
    radial-gradient(60% 70% at 78% 30%, rgba(38, 144, 255, .18), transparent 72%),
    radial-gradient(45% 60% at 0% 100%, rgba(147, 87, 232, .12), transparent 72%),
    url("../assets/brand/tri-fade-navy.webp") left -6% top -18% / 34% auto no-repeat,
    linear-gradient(160deg, #13205f 0%, #0d1748 60%, #0a1238 100%);
  transition: filter .6s var(--ease-soft), box-shadow .8s var(--ease-soft);
}
html.js .project.is-active .project__body {
  box-shadow: 0 0 0 1px rgba(103, 188, 255, .24), 0 0 0 9px #05070d, 0 40px 80px -30px rgba(2, 0, 10, .75), 0 48px 140px -24px rgba(38, 144, 255, .32);
}
html.js .project:not(.is-active) .project__body::after { opacity: 1; }
html.js .project:not(.is-active) .project__media { opacity: .5; }
.project__body .project__media {
  box-shadow: 0 0 0 1px rgba(201, 211, 234, .18), 0 24px 48px -16px rgba(2, 0, 10, .6);
}


@media (max-width: 820px) {
  .services, .why, .faq { margin: 40px 10px; padding: 72px 18px; box-shadow: 0 0 0 1px rgba(103, 188, 255, .14), 0 0 0 6px #05070d; }
  .why { box-shadow: 0 0 0 1px rgba(103, 188, 255, .3), 0 0 0 6px #05070d; }
  .services { margin-top: 0; }
  .project__body { padding: 18px; box-shadow: 0 0 0 1px rgba(103, 188, 255, .14), 0 0 0 6px #05070d; }
}

/* ---------- Clients: logos in their own colours, white-outlined, names beneath ---------- */

.clients__grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 10%;
}

/* Each logo sits on its own small screen, spaced in the mosaic rather than ruled into a table */
.clients__grid {
  gap: clamp(10px, 1.1vw, 18px);
  background: none;
  border: 0;
}
/* The header's colours, solid: one purple-to-navy sweep runs across each row, every tile holding its column's slice.
   No backdrop blur here: the mosaic moves behind the tiles every scroll frame, and re-blurring ten tiles drops frames */
.clients__grid li {
  --from: 40, 20, 88;
  --to: 34, 22, 90;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(var(--from), .94), rgba(var(--to), .94));
  box-shadow: 0 6px 14px -6px rgba(2, 0, 10, .6), 0 24px 60px -24px rgba(2, 0, 10, .8);
  transition: opacity .6s var(--ease-soft), transform .6s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.clients__grid li:nth-child(5n + 2) { --from: 34, 22, 90; --to: 29, 23, 91; }
.clients__grid li:nth-child(5n + 3) { --from: 29, 23, 91; --to: 24, 26, 93; }
.clients__grid li:nth-child(5n + 4) { --from: 24, 26, 93; --to: 20, 29, 96; }
.clients__grid li:nth-child(5n + 5) { --from: 20, 29, 96; --to: 16, 32, 99; }
.clients__grid li:hover {
  box-shadow: 0 0 0 1px rgba(103, 188, 255, .32), 0 6px 14px -6px rgba(2, 0, 10, .6), 0 28px 72px -20px rgba(38, 144, 255, .3);
}
.clients__grid img {
  max-height: clamp(44px, 4.2vw, 76px);
  max-width: 88%;
  opacity: 1;
}
.clients__name {
  font-size: .8125rem;
  letter-spacing: .02em;
  line-height: 1.3;
  text-align: center;
  color: var(--mist-dim);
}
@media (max-width: 820px) {
  .clients__grid li { gap: 8px; padding: 14px 10px; }
  .clients__grid li:nth-child(odd) { --from: 40, 20, 88; --to: 26, 24, 92; }
  .clients__grid li:nth-child(even) { --from: 26, 24, 92; --to: 16, 32, 99; }
  .clients__grid img { max-height: 34px; }
  .clients__name { font-size: .75rem; }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {

  /* Load: the title card assembles before the visitor scrolls */
  @keyframes card-line { from { transform: translateY(70%); clip-path: inset(0 0 100% 0); opacity: 0; } to { transform: none; clip-path: inset(0 0 -10% 0); opacity: 1; } }
  @keyframes card-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes bar-in { from { transform: translateY(-160%); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes tab-in { from { transform: translateY(160%); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes hint-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
  @keyframes hint-wheel { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: 1; } 70% { opacity: 1; transform: translateY(9px); } 100% { opacity: 0; transform: translateY(9px); } }
  @keyframes hint-swipe { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 70% { opacity: 1; transform: translateY(-12px); } 100% { opacity: 0; transform: translateY(-12px); } }
  @keyframes hint-ring { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.13, 1.54); opacity: 0; } }
  @keyframes curtain-peek-top { 0%, 62%, 100% { translate: 0 0; } 72%, 80% { translate: 0 -34px; } }
  @keyframes curtain-peek-bottom { 0%, 62%, 100% { translate: 0 0; } 72%, 80% { translate: 0 34px; } }
  @keyframes card-wash { from { background-position: right -6% bottom -40%, 0 0; } to { background-position: right -6% bottom -14%, 0 0; } }

  html.js .bar > * { animation: bar-in .9s var(--ease-out) .1s both; }
  html.js .bar__nav { animation-delay: .2s; }
  html.js .bar__lang { animation-delay: .3s; }
  @media (max-width: 820px) {
    html.js .bar__nav { animation-name: tab-in; animation-delay: .5s; }
  }
  html.js .curtain__title span { animation: card-line 1.1s var(--ease-out) both; }
  html.js .curtain__title span:nth-child(1) { animation-delay: .25s; }
  html.js .curtain__title span:nth-child(2) { animation-delay: .38s; }
  html.js .curtain__title span:nth-child(3) { animation-delay: .51s; }
  @keyframes slow-fade { from { opacity: 0; } to { opacity: 1; } }
  html.js .curtain__sign-text { animation: slow-fade 1.8s var(--ease-fade) 1s both; }
  html.js .curtain__sign-logo { animation: slow-fade 1.8s var(--ease-fade) 1.35s both; }

  /* Media fade in once loaded instead of popping */
  html.js [data-fade-media] { opacity: 0; transition: opacity .9s var(--ease-fade); }
  html.js [data-fade-media].is-loaded { opacity: 1; }

  /* Images that both open from the seam and fade in on load keep both transitions */
  html.js [data-reveal="seam"][data-fade-media] {
    transition-property: clip-path, scale, opacity;
    transition-duration: 1.2s, 1.2s, 1s;
    transition-timing-function: var(--ease-seam), var(--ease-seam), var(--ease-fade);
  }

  /* The services screen holds its slides dark until the first one has loaded, then fades it up */
  html.js .screen:not(.is-loaded) img.is-active { opacity: 0; }
  html.js .curtain__card { animation: card-wash 2.2s var(--ease-out) .1s both; }
  /* Three rounds teach the gesture; after that the pill rests (the small icon keeps moving) */
  html.js .curtain__hint { animation: card-fade .8s ease-out 1.4s backwards, hint-bob 2.4s ease-in-out 2.2s 3; }
  html.js .curtain__hint::before { animation: hint-ring 2.4s var(--ease-out) 2.2s 3; }
  html.js .curtain__hint-icon::after { animation: hint-wheel 1.6s var(--ease-fade) 1.8s infinite both; }
  /* Until the visitor scrolls, the card cracks open at the seam three times, a few seconds apart */
  html.js .opening:not(.has-scrolled) .curtain__half--top { animation: curtain-peek-top 5s var(--ease-peek) 3s 3; }
  html.js .opening:not(.has-scrolled) .curtain__half--bottom { animation: curtain-peek-bottom 5s var(--ease-peek) 3s 3; }
}
@media (prefers-reduced-motion: no-preference) and (hover: none) and (pointer: coarse) {
  html.js .curtain__hint-icon::after { animation-name: hint-swipe; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Scroll: the stage powers on and its content arrives as the card opens */
  html.js .opening .stage__plate {
    transform: scale(calc(1.06 - .06 * var(--open, 1)));
    filter: brightness(calc(.35 + .65 * var(--open, 1)));
    transform-origin: 60% 45%;
  }
  /* Hidden behind the curtain until the scroll loop takes over, so nothing paints early */
  html.js .opening .frame { --rise: 0; }
  html.js .opening .screen-logo,
  html.js .opening .headline span,
  html.js .opening .subline,
  html.js .opening .cta,
  html.js .opening .tags {
    --t: clamp(0, calc((var(--rise, 1) - var(--at)) / .26), 1);
    opacity: var(--t);
    translate: 0 calc((1 - var(--t)) * 44px);
  }
  html.js .opening .headline span { display: block; }
  html.js .opening .screen-logo { --at: .42; }
  html.js .opening .headline span:nth-child(1) { --at: .48; }
  html.js .opening .headline span:nth-child(2) { --at: .54; }
  html.js .opening .headline span:nth-child(3) { --at: .6; }
  html.js .opening .subline { --at: .64; }
  html.js .opening .cta { --at: .68; }
  html.js .opening .tags { --at: .72; }

  /* Scroll reveals: one grammar, varied by what each element is */
  html.js [data-reveal] { transition-timing-function: var(--ease-out); }

  /* Headings rise into place */
  html.js [data-reveal="rise"] { transition-property: opacity, translate; transition-duration: 1s; transition-delay: calc(var(--i, 0) * 70ms); }
  html.js [data-reveal="rise"]:not(.is-in) { opacity: 0; translate: 0 40px; }

  /* Supporting text and list items follow, staggered */
  html.js [data-reveal="fade"] { transition-property: opacity, translate; transition-duration: .9s; transition-delay: calc(120ms + var(--i, 0) * 80ms); }
  html.js [data-reveal="fade"]:not(.is-in) { opacity: 0; translate: 0 18px; }

  /* Images open from a centre seam, the opening's own gesture */
  html.js [data-reveal="seam"] { transition-property: clip-path, scale; transition-duration: 1.2s; transition-timing-function: var(--ease-seam); }
  html.js [data-reveal="seam"] { clip-path: inset(0 0 0 0 round 18px); }
  html.js [data-reveal="seam"]:not(.is-in) { clip-path: inset(50% 0 50% 0 round 18px); scale: 1.03; }

  /* The footer's K triangles march in from the right, the faint echoes first */
  html.js [data-reveal="march"] { transition-property: opacity, translate; transition-duration: 1.1s; transition-delay: calc(var(--i, 0) * 140ms); }
  html.js [data-reveal="march"]:not(.is-in) { opacity: 0; translate: 90px 0; }

  /* Screens power on */
  html.js [data-reveal="power"] { transition-property: filter, opacity; transition-duration: 1.3s; }
  html.js [data-reveal="power"]:not(.is-in) { filter: brightness(.18); opacity: .6; }

  /* FAQ: a sky scan line sweeps each row's rule as it arrives */
  @keyframes faq-scan { 0% { transform: scaleX(0); opacity: 1; } 60% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
  html.js .faq details { position: relative; }
  html.js .faq details::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 1px;
    background: linear-gradient(90deg, var(--sky), var(--azure) 70%, transparent);
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
  }
  html.js .faq details.is-in::before { animation: faq-scan 1.4s var(--ease-out) calc(200ms + var(--i, 0) * 110ms) both; }

  /* Answers glide open; the question lights and the plus turns */
  html.js .faq summary { transition: color .3s ease, translate .4s var(--ease-out); }
  /* Touch screens hold :hover after a tap, which would leave the row shifted */
  @media (hover: hover) and (pointer: fine) {
    html.js .faq summary:hover { translate: 6px 0; }
  }
  html.js .faq details[open] summary { color: var(--sky); }
  html.js .faq summary::before { transition: transform .45s var(--ease-out); }
  html.js .faq summary::after { transition: transform .45s var(--ease-out); }
  html.js .faq details[open] summary::before { transform: rotate(180deg); }
  html.js .faq details[open] summary::after { transform: rotate(180deg); }

  /* The closing trail drifts with the scroll */
  html.js .closing__art { translate: 0 calc((var(--drift, .5) - .5) * -120px); }
  html.js .work::after { translate: 0 calc((var(--drift-work, .5) - .5) * -160px); }
}
