/* ==========================================================================
   MIM — PT Metaverse Indonesia Makmur
   base.css — tokens, reset, typography, primitives
   Brand palette sampled from the official brand board (flat-fill pixels):
   blue #0061FD · lime #B7E53C · navy #071739 · black #000000 · off-white #F1F2F4
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  /* Inter variable, sumbu wght saja (tanpa opsz) — 47 KB, self-hosted
     supaya tetap jalan saat index.html dibuka lewat file:// */
  src: url("../fonts/inter-latin.woff2") format("woff2-variations"),
       url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono-latin.woff2") format("woff2-variations"),
       url("../fonts/geist-mono-latin.woff2") format("woff2");
  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;
}

/* ---------- Design tokens ---------- */
:root {
  /* brand */
  --blue: #0061fd;
  --lime: #b7e53c;
  --navy: #071739;
  --black: #000000;
  --paper: #f1f2f4;

  /* surfaces */
  --s-void: var(--black);
  --s-navy: var(--navy);
  --s-blue: var(--blue);
  --s-paper: var(--paper);

  /* text on dark */
  --t-hi: #f1f2f4;
  --t-mid: rgba(241, 242, 244, 0.76);
  --t-low: rgba(241, 242, 244, 0.60);
  /* text on blue */
  --t-blue-hi: #ffffff;
  --t-blue-mid: rgba(255, 255, 255, 0.95);
  --t-blue-low: rgba(255, 255, 255, 0.94);
  /* text on paper */
  --t-paper-hi: var(--navy);
  --t-paper-mid: #454f63;
  --t-paper-low: #5f6975;

  /* hairlines — the structural signature of the whole page */
  --line: rgba(241, 242, 244, 0.14);
  --line-soft: rgba(241, 242, 244, 0.08);
  --line-strong: rgba(241, 242, 244, 0.28);
  --line-blue: rgba(255, 255, 255, 0.28);
  --line-blue-soft: rgba(255, 255, 255, 0.14);
  --line-paper: rgba(7, 23, 57, 0.16);
  --line-paper-soft: rgba(7, 23, 57, 0.09);

  /* type */
  --f-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-hero: clamp(2.75rem, 0.9rem + 7.4vw, 7rem);
  --fs-h2: clamp(1.95rem, 1.1rem + 3.3vw, 3.5rem);
  --fs-h3: clamp(1.2rem, 1.02rem + 0.72vw, 1.6rem);
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.42vw, 1.375rem);
  --fs-body: clamp(0.9375rem, 0.91rem + 0.14vw, 1.0625rem);
  --fs-small: 0.8125rem;
  --fs-mono: 0.6875rem;
  --fs-mono-sm: 0.625rem;

  --lh-hero: 0.94;
  --lh-h2: 1.02;
  --lh-body: 1.62;

  --tr-hero: -0.042em;
  --tr-h2: -0.032em;
  --tr-h3: -0.018em;
  --tr-mono: 0.13em;

  /* space */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4rem;
  --s9: 6rem;
  --s10: 8rem;

  --gutter: clamp(1.25rem, 4.2vw, 4rem);
  --maxw: 1360px;
  --section-y: clamp(5rem, 9vw, 10rem);
  --nav-h: 72px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0.05, 0.36, 1);
  --dur-1: 180ms;
  --dur-2: 320ms;
  --dur-3: 620ms;

  /* z */
  --z-nav: 100;
  --z-overlay: 200;
  --z-cursor: 300;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}

body {
  margin: 0;
  background: var(--s-void);
  color: var(--t-hi);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  font-feature-settings: "ss01" 1, "cv01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: var(--lime);
  color: var(--navy);
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- Layout primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--void {
  background: var(--s-void);
}
.section--navy {
  background: var(--s-navy);
}
.section--blue {
  background: var(--s-blue);
}
.section--paper {
  background: var(--s-paper);
  color: var(--t-paper-hi);
}

/* top hairline rule that opens most sections */
.section--ruled {
  border-top: 1px solid var(--line);
}
.section--ruled.section--paper {
  border-top-color: var(--line-paper);
}

/* ---------- Typography ---------- */
.display {
  font-size: var(--fs-hero);
  line-height: var(--lh-hero);
  letter-spacing: var(--tr-hero);
  font-weight: 500;
  font-variation-settings: "wght" 520;
  text-wrap: balance;
}

.h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--tr-h2);
  font-weight: 500;
  font-variation-settings: "wght" 520;
  text-wrap: balance;
}

.h3 {
  font-size: var(--fs-h3);
  line-height: 1.24;
  letter-spacing: var(--tr-h3);
  font-weight: 500;
  font-variation-settings: "wght" 530;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.48;
  letter-spacing: -0.012em;
  color: var(--t-mid);
  text-wrap: pretty;
}

.body {
  color: var(--t-mid);
  text-wrap: pretty;
}

.body + .body {
  margin-top: 1.15em;
}

/* mono micro-label — the recurring "technical readout" voice */
.label {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  color: var(--t-low);
  font-variation-settings: "wght" 500;
}

.label--lime {
  color: var(--lime);
}
.label--blue {
  color: var(--blue);
}
.label--navy {
  color: var(--navy);
}
.label--paper {
  color: var(--t-paper-low);
}

/* section eyebrow: "01 — TENTANG" with a lime tick */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: var(--tr-mono);
  text-transform: uppercase;
  color: var(--t-low);
}
.eyebrow__num {
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.eyebrow::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line-soft);
}
.section--paper .eyebrow {
  color: var(--t-paper-low);
}
.section--paper .eyebrow__num {
  color: var(--blue);
}
.section--paper .eyebrow::after {
  background: var(--line-paper-soft);
}
.section--blue .eyebrow {
  color: var(--t-blue-low);
}
.section--blue .eyebrow__num {
  color: #ffffff;
}
.section--blue .eyebrow::after {
  background: var(--line-blue-soft);
}

/* emphasis inside display type */
.em {
  font-style: italic;
  color: var(--lime);
}

.num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--t-hi);
  --btn-line: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  height: 46px;
  padding: 0 0.28rem 0 1.2rem;
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.008em;
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease), transform var(--dur-1) var(--ease);
}
.btn__arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--btn-fg);
  color: var(--btn-bg);
  transition: transform var(--dur-2) var(--ease), background var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease);
  flex: none;
}
.btn__arrow svg {
  width: 13px;
  height: 13px;
}
.btn:hover .btn__arrow {
  transform: translate(2px, -2px);
}
.btn:active {
  transform: translateY(1px);
}

.btn--solid {
  --btn-bg: var(--paper);
  --btn-fg: var(--navy);
  --btn-line: var(--paper);
}
.btn--solid .btn__arrow {
  background: var(--blue);
  color: #fff;
}
.btn--solid:hover {
  --btn-bg: #fff;
}

.btn--blue {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  --btn-line: var(--blue);
}
.btn--blue .btn__arrow {
  background: #fff;
  color: var(--blue);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--t-hi);
  --btn-line: var(--line-strong);
}
.btn--ghost .btn__arrow {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: inherit;
}
.btn--ghost:hover {
  --btn-bg: rgba(241, 242, 244, 0.06);
  --btn-line: var(--t-hi);
}

/* invert (on blue field) */
.btn--onblue {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-line: var(--line-blue);
}
.btn--onblue .btn__arrow {
  background: transparent;
  border: 1px solid var(--line-blue);
  color: #fff;
}
.btn--onblue:hover {
  --btn-bg: rgba(255, 255, 255, 0.1);
}

/* text link with animated rule */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding-bottom: 2px;
}
.tlink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease);
}
.tlink:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}

/* ---------- Motion: reveals ---------- */
/* Progressive enhancement: content is VISIBLE by default. It is only hidden
   once the inline bootstrap has proven that JavaScript is running, so a blocked
   or failed script can never leave the page blank. */
.reveal {
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
  transition-delay: var(--d, 0ms);
}
.js-reveal .reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  will-change: opacity, transform;
}
.js-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* mask-reveal for big lines.
   Hero lines use a keyframe animation with fill-mode `both` so the headline is
   guaranteed to land visible even if JavaScript never runs. */
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.line-mask > span {
  display: block;
  transform: translate3d(0, 105%, 0);
  transition: transform 900ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.is-in > .line-mask > span,
.line-mask.is-in > span {
  transform: none;
}

.hero__h1 .line-mask > span {
  animation: line-up 1000ms var(--ease) both;
  animation-delay: calc(120ms + var(--i, 0) * 120ms);
}
@keyframes line-up {
  from {
    transform: translate3d(0, 105%, 0);
  }
  to {
    transform: none;
  }
}

/* ---------- Image / aspect helpers ---------- */
.ratio {
  position: relative;
  overflow: hidden;
}
.ratio > img,
.ratio > svg,
.ratio > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Film grain (kills flat digital look) ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--lime);
  z-index: 260;
  pointer-events: none;
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 400;
  background: var(--lime);
  color: var(--navy);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.skip:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.stack-sm > * + * {
  margin-top: var(--s3);
}
.stack > * + * {
  margin-top: var(--s4);
}
.stack-lg > * + * {
  margin-top: var(--s5);
}

.hair {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .js-reveal .reveal {
    opacity: 1;
    transform: none;
  }
  .line-mask > span {
    transform: none;
  }
}
