/* XNK — site styles, following the XNK brand board (docs/brand in the XNK repo):
   paper + black, grey for secondary text and lines, red only for warnings.
   Anton for English keywords and big numbers, Inter for everything else. Mobile first. */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Anton"; src: url("/assets/fonts/anton.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* brand colours */
  --paper: #FAFAF9;
  --white: #FFFFFF;
  --black: #000000;
  --band: #161616;
  --grey: #555551;
  --rule: #DADAD5;
  --signal: #C4261B; /* warnings and errors only */
  /* roles (light sections) */
  --bg: var(--paper);
  --card: var(--white);
  --fg: var(--black);
  --fg-2: var(--grey);
  --fg-3: #77776F;
  --line: var(--rule);
  --edge: var(--black);
  --r: 4px;
  --pad: 16px;
  --max: 1200px;
  --nav-h: 60px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Anton", "Inter", Impact, sans-serif;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --pad: 32px; --nav-h: 68px; } }

/* dark sections: same roles, inverted */
.ink {
  --bg: var(--black);
  --card: var(--band);
  --fg: var(--paper);
  --fg-2: #B4B4AE;
  --fg-3: #8A8A84;
  --line: rgba(255, 255, 255, .14);
  --edge: rgba(255, 255, 255, .32);
  background: var(--bg);
  color: var(--fg);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { 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; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--black); color: var(--paper); }
.ink ::selection { background: var(--paper); color: var(--black); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: calc(760px + var(--pad) * 2); }
/* labels: Inter 600, caps, wide spacing (class name kept from the first version) */
.mono { font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--fg-3); }
.center { text-align: center; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.center-row { justify-content: center; }
.i { width: 18px; height: 18px; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--black); color: var(--paper); padding: 10px 14px; border-radius: var(--r); }
.skip:focus { left: 8px; }
/* emphasis by weight, not colour: soft lead-in, bold key part */
.soft { color: var(--fg-3); font-weight: inherit; }
.ink .soft { color: var(--fg-3); }
.key { font-weight: inherit; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r);
  font-weight: 700; font-size: .95rem; border: 1.5px solid transparent; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ease); will-change: transform; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1rem; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .88rem; }
.btn-primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-ghost { border-color: var(--edge); color: var(--fg); background: transparent; }
@media (hover: hover) {
  .btn-primary:hover { background: transparent; color: var(--fg); }
  .btn-ghost:hover { border-color: var(--fg); background: var(--fg); color: var(--bg); }
}
.btn:active { transform: scale(.98); }

/* ---------- nav: always a black band ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.solid { border-color: var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 16px; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .3em; font-size: 1rem; min-height: 44px; }
.brand .mark { width: 24px; height: auto; }
.rec { display: none; align-items: center; gap: 6px; font: 600 .66rem/1 var(--sans); letter-spacing: .16em; color: var(--fg-3); margin-left: 2px; }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--fg); animation: pulse 1.2s ease-in-out 4; }
@media (min-width: 420px) { .rec { display: inline-flex; } }
.links { display: none; gap: 4px; margin: 0 auto; }
.links a { padding: 10px 12px; color: var(--fg-2); font-weight: 600; font-size: .9rem; transition: color .2s; }
.links a:hover { color: var(--fg); }
.nav-act { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 10px; border: 1.5px solid var(--edge); border-radius: var(--r); font: 600 .72rem/1 var(--sans); letter-spacing: .1em; color: var(--fg-3); }
.lang span { opacity: .4; }
.lang b { font-weight: 700; }
html[lang="id"] .lang b[data-l="id"], html[lang="en"] .lang b[data-l="en"] { color: var(--fg); }
.menu-btn { width: 44px; height: 44px; display: grid; place-items: center; }
.menu-btn .i { width: 22px; height: 22px; }
.nav-act .btn-sm { display: none; }
@media (min-width: 900px) {
  .links { display: flex; }
  .menu-btn { display: none; }
  .nav-act .btn-sm { display: inline-flex; }
  .nav-act { margin-left: 0; }
}
.menu { position: fixed; inset: 0; z-index: 60; padding: calc(var(--nav-h) + 20px) var(--pad) calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 28px; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; padding: 8px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(12px); animation: up .5s var(--ease) forwards; animation-delay: calc(var(--i) * 50ms); }
.menu-x { position: absolute; top: 8px; right: var(--pad); width: 44px; height: 44px; display: grid; place-items: center; }
.menu-x .i { width: 24px; height: 24px; }

/* ---------- section scaffolding ---------- */
.sec { padding: 88px 0; position: relative; overflow-x: clip; }
@media (min-width: 768px) { .sec { padding: 128px 0; } }
/* eyebrow = a black band ("pita") with a caps label */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 10px; background: var(--fg); color: var(--bg); }
.hero .eyebrow, .ink .eyebrow { background: transparent; color: var(--fg-2); padding: 0; }
.sec-head { max-width: 780px; margin-bottom: 40px; }
.sec-head h2, .cta h2 { font-size: clamp(1.9rem, 6vw, 3.3rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; margin-top: 18px; text-wrap: balance; }
.lead { color: var(--fg-2); font-size: 1.06rem; line-height: 1.55; margin-top: 16px; max-width: 620px; text-wrap: pretty; }
@media (min-width: 768px) { .lead { font-size: 1.16rem; } .sec-head { margin-bottom: 56px; } }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fg); display: inline-block; }
.dot-green { background: var(--fg); }
.glow { display: none; }

/* reveal on scroll (JS adds .in; nothing hidden without JS) */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- hero (black) ---------- */
.hero { position: relative; min-height: 100svh; padding-top: calc(var(--nav-h) + 48px); padding-bottom: 32px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero-in { position: relative; z-index: 3; }
.hero-title { font-weight: 900; font-size: clamp(3.1rem, 14vw, 8.6rem); line-height: .95; letter-spacing: -.045em; margin: 18px 0 22px; max-width: 11ch; }
/* English keyword: Anton, caps */
html[lang="en"] .hero-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0; line-height: .9; font-size: clamp(3.6rem, 17vw, 10rem); }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .w > span { display: inline-block; }
.js .hero-title .w > span { transform: translateY(105%); animation: rise 1s var(--ease) forwards; animation-delay: calc(150ms + var(--i) * 110ms); }
.hero-sub { color: var(--fg-2); font-size: 1.08rem; max-width: 34ch; line-height: 1.5; }
@media (min-width: 768px) { .hero-sub { font-size: 1.3rem; max-width: 40ch; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-cta .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .hero-cta .btn { flex: 0 0 auto; } }
.hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.5) 28%, rgba(0,0,0,.92) 58%, #000 100%); }
@media (min-width: 900px) {
  .hero { justify-content: center; }
  .hero-scrim { background:
    linear-gradient(90deg, #000 0%, rgba(0,0,0,.93) 34%, rgba(0,0,0,.35) 62%, rgba(0,0,0,.6) 100%),
    linear-gradient(180deg, rgba(0,0,0,.4) 0%, transparent 25%, transparent 75%, #000 100%); }
}
.grain { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.montage { position: absolute; z-index: 0; top: 0; right: -20%; width: 140%; height: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; transform: rotate(-8deg) scale(1.15); transform-origin: 60% 40%; opacity: .32; }
@media (min-width: 900px) { .montage { right: -6%; width: 62%; left: auto; opacity: .9; gap: 16px; } }
.mcol { overflow: hidden; }
.mtrack { display: flex; flex-direction: column; gap: 12px; }
.js .mtrack { animation: drift 60s linear infinite; animation-play-state: paused; }
.js .hero.live .mtrack { animation-play-state: running; }
.mcol-1 .mtrack { animation-direction: reverse; animation-duration: 70s; }
.mcol-2 .mtrack { animation-duration: 54s; }
.tile { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tile:not(.tile-phone) img { filter: grayscale(1) contrast(1.1); }
.tile-phone img { aspect-ratio: 9 / 16; object-position: top; }

/* proof: big numbers in Anton */
.hero-proof { position: relative; z-index: 3; }
.proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); overflow: hidden; }
.proof-i { background: rgba(0,0,0,.92); padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; color: var(--fg-2); font-size: .88rem; line-height: 1.3; border-left: 3px solid var(--fg); }
.proof-i b { font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--fg); letter-spacing: 0; text-transform: none; }
@media (min-width: 768px) { .proof { grid-template-columns: repeat(4, 1fr); margin-top: 72px; } .proof-i { padding: 22px 24px; } .proof-i b { font-size: 3.2rem; } }

/* ---------- apps (sticky product tour) ---------- */
.apps { padding-bottom: 40px; }
.app { position: relative; padding: 24px 0 72px; overflow-x: clip; }
.app + .app { border-top: 1px solid var(--line); padding-top: 72px; }
.app-grid { display: grid; gap: 32px; }
.app-stage { position: relative; display: grid; place-items: center; min-height: 360px; }
.par { position: relative; z-index: 1; width: 100%; display: grid; place-items: center; will-change: transform; }
.app-for { display: inline-flex; align-items: center; gap: 10px; color: var(--fg-2); }
.pip { width: 8px; height: 8px; background: var(--fg); }
.app-head h3 { font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; margin-top: 14px; text-wrap: balance; }
.steps { margin-top: 28px; border-top: 1.5px solid var(--fg); }
.step { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--fg-3); font-size: 1.02rem; line-height: 1.4; transition: color .3s; cursor: default; }
.step-n { color: var(--fg-3); flex: none; transition: color .3s; }
.step.on { color: var(--fg); font-weight: 700; }
.step.on .step-n { color: var(--fg); }
.app-foot { margin-top: 28px; display: grid; gap: 14px; }
.price { color: var(--fg); }
.used { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); font-size: .95rem; }
.used .i { color: var(--fg); }
.app-foot .row .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .app-foot .row .btn { flex: 0 0 auto; } }

/* devices */
.dev { position: relative; }
.dev-screen { position: relative; overflow: hidden; background: #000; }
.dev-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.02); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.dev-screen img.on { opacity: 1; transform: none; }
.dev-phone { width: min(260px, 64vw); aspect-ratio: 780 / 1688; padding: 10px; border-radius: 42px; background: #111; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45), 0 0 0 1px #000; }
.dev-phone .dev-screen { width: 100%; height: 100%; border-radius: 33px; }
.dev-phone::after { content: ""; position: absolute; top: 18px; left: 50%; width: 30%; height: 20px; transform: translateX(-50%); background: #000; border-radius: 20px; z-index: 2; }
.dev-laptop { width: min(680px, 100%); }
.dev-laptop .dev-screen { aspect-ratio: 1600 / 896; border-radius: 10px 10px 0 0; border: 9px solid #111; border-bottom-width: 12px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); background: #EDEDED; }
.dev-laptop .dev-screen img { object-fit: cover; object-position: top left; background: #EDEDED; }
.dev-base { height: 14px; margin: 0 -7%; border-radius: 0 0 10px 10px; background: linear-gradient(180deg, #2b2b2b, #111); }

@media (min-width: 1024px) {
  .app-grid { grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: start; }
  .app-gymos .app-grid { grid-template-columns: 1fr 1.15fr; }
  .app-gymos .app-stage { order: 2; }
  .app-stage { position: sticky; top: calc(var(--nav-h) + 40px); min-height: calc(100vh - var(--nav-h) - 80px); }
  .app-copy { padding: 8vh 0; }
  .step { padding: 22px 0; font-size: 1.2rem; min-height: 15vh; align-items: center; }
  .dev-phone { width: 300px; }
}

.note { position: relative; z-index: 1; margin-top: 14px; color: var(--fg-3); text-align: center; }

/* ---------- services ---------- */
.svc-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }
.svc { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--card); border: 1.5px solid var(--edge); border-radius: var(--r); transition: transform .4s var(--ease), box-shadow .3s; }
@media (hover: hover) { .svc:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--fg); } }
.svc-ic { width: 44px; height: 44px; display: grid; place-items: center; background: var(--fg); color: var(--bg); margin-bottom: 8px; }
.svc-ic .i { width: 22px; height: 22px; }
.svc h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.svc p { color: var(--fg-2); }
.svc-ex { color: var(--fg-3); margin-top: auto; padding-top: 8px; text-transform: none; letter-spacing: .02em; font-weight: 500; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.svc-price { color: var(--fg); }

/* ---------- work ---------- */
.marquee { overflow: hidden; border-block: 1.5px solid var(--fg); padding: 18px 0; margin-bottom: 88px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
@media (min-width: 768px) { .marquee { margin-bottom: 120px; } }
.mq { display: flex; align-items: center; gap: 28px; width: max-content; font-family: var(--display); font-size: clamp(1.6rem, 4.4vw, 2.8rem); text-transform: uppercase; color: var(--fg); }
.mq i { color: var(--fg-3); font-style: normal; }
.js .mq { animation: slide 50s linear infinite; animation-play-state: paused; }
.js .marquee.live .mq { animation-play-state: running; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: var(--r); border: 1.5px solid var(--edge); color: var(--fg); font-size: .9rem; font-weight: 600; transition: all .2s; }
.chip.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.work-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } .work-grid:not(.filtered) .site:first-child { grid-column: span 2; } .work-grid:not(.filtered) .site:first-child .browser img { aspect-ratio: 16 / 7.6; } }
.site { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1.5px solid var(--edge); border-radius: var(--r); overflow: hidden; transition: transform .4s var(--ease), box-shadow .3s; }
.site[hidden] { display: none; }
@media (hover: hover) { .site:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--fg); } .site:hover .browser img { transform: scale(1.03); } }
.browser { overflow: hidden; border-bottom: 1.5px solid var(--edge); background: var(--paper); }
.browser .bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--white); }
.browser .bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.browser .bar span { margin-left: 8px; color: var(--fg-3); font-size: .7rem; text-transform: none; letter-spacing: .02em; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.site-meta { padding: 16px 18px 20px; display: grid; gap: 6px; }
.site-meta h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.site-meta p { color: var(--fg-2); font-size: .94rem; }
.tag { justify-self: start; padding: 4px 8px; font-size: .64rem; border: 1.5px solid var(--fg); color: var(--fg); }
.tag-klien { background: var(--fg); color: var(--bg); }
.tag-produk { background: transparent; }
.tag-contoh { color: var(--fg-3); border-color: var(--fg-3); border-style: dashed; }
.site-go { position: absolute; top: 46px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--fg); color: var(--bg); opacity: 0; transition: opacity .3s; }
.site-go .i { width: 16px; height: 16px; }
@media (hover: hover) { .site:hover .site-go { opacity: 1; } }

/* ---------- video (black) ---------- */
/* real frames, black and white: crop and zoom set per video in content.js to hide burned-in text */
.ff { object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); transform: scale(var(--z, 1)); transform-origin: var(--fx, 50%) var(--fy, 50%); }
.vid-frames { position: absolute; inset: 0 0 auto; aspect-ratio: 16 / 9; overflow: hidden; pointer-events: none; }
.vid-frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--fx) var(--fy); transform: scale(var(--z)); transform-origin: var(--fx) var(--fy); opacity: 0; transition: opacity .35s; filter: grayscale(1) contrast(1.1) brightness(.85); }
.vid-frames img.on { opacity: 1; }
.reel { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #000; margin-bottom: 14px; }
.reel-frames img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; filter: grayscale(1) contrast(1.12) brightness(.85); }
.reel-frames img:first-child { opacity: 1; }
.js .reel.live .reel-frames img { animation: reel 32s linear infinite; animation-delay: calc(var(--i) * 4s); }
.js .reel.live .reel-frames img:first-child { opacity: 0; }
.reel-ui { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #000; color: var(--fg-2); }
.reel-ui > span { display: inline-flex; align-items: center; gap: 8px; }
.reel-ui > span:last-child { display: none; }
@media (min-width: 640px) { .reel-ui > span:last-child { display: inline-flex; } }
.vid-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .vid-grid { gap: 12px; } }
@media (min-width: 1024px) { .vid-grid { grid-template-columns: repeat(4, 1fr); } }
.vid { position: relative; text-align: left; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; transition: border-color .3s, transform .4s var(--ease); }
@media (hover: hover) { .vid:hover { border-color: var(--fg); transform: translateY(-4px); } .vid:hover .vid-play { transform: translate(-50%, -50%) scale(1.08); background: var(--fg); color: var(--bg); } }
.vid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vid-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.6); border: 1.5px solid rgba(255,255,255,.6); color: #fff; transition: transform .3s var(--ease), background-color .3s, color .3s; }
.vid-play .i { width: 20px; height: 20px; margin-left: 3px; }
.video .center { margin-top: 28px; }
.yt { width: min(1100px, 100vw - 24px); max-width: none; padding: 0; border: 1px solid #333; border-radius: var(--r); background: #000; color: #fff; }
.yt::backdrop { background: rgba(0,0,0,.88); }
.yt-box { aspect-ratio: 16 / 9; }
.yt-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.6); }

/* ---------- story ---------- */
.story-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .story-grid { grid-template-columns: 1.1fr 1fr; gap: 80px; } }
.story-p { color: var(--fg-2); font-size: 1.08rem; line-height: 1.6; margin-top: 18px; max-width: 60ch; }
.story-p:first-of-type { color: var(--fg); }
.quote { margin-top: 32px; padding: 22px 24px; background: var(--black); color: var(--paper); font-size: 1.3rem; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; max-width: 40ch; }
.quote cite { display: block; margin-top: 14px; font-style: normal; color: #B4B4AE; font-weight: 600; }
.quote cite a { text-decoration: underline; text-underline-offset: 3px; }
.tl { position: relative; border-left: 1.5px solid var(--fg); margin-left: 6px; }
.tl li { position: relative; padding: 0 0 26px 26px; }
.tl li::before { content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; background: var(--bg); border: 1.5px solid var(--fg); }
.tl li:last-child::before { background: var(--fg); }
.tl-y { font-family: var(--display); font-weight: 400; font-size: 1.5rem; letter-spacing: 0; color: var(--fg); }
.tl p { color: var(--fg-2); margin-top: 2px; }
.record { margin-top: 24px; padding: 22px; border: 1.5px solid var(--edge); border-radius: var(--r); background: var(--card); }
.record h3 { display: inline-block; background: var(--fg); color: var(--bg); padding: 6px 10px; margin-bottom: 12px; }
.record li { display: flex; gap: 10px; padding: 8px 0; color: var(--fg-2); line-height: 1.4; border-bottom: 1px solid var(--line); }
.record li:last-child { border-bottom: 0; }
.record li .i { color: var(--fg); margin-top: 2px; width: 16px; height: 16px; }
.src { color: var(--fg-3); text-decoration: underline; text-underline-offset: 3px; font-size: .64rem; white-space: nowrap; }

/* ---------- testimonials ---------- */
.tst-grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .tst-grid { grid-template-columns: repeat(3, 1fr); } }
.tst { padding: 24px; border-radius: var(--r); border: 1.5px solid var(--edge); background: var(--card); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 200px; }
.tst blockquote { font-size: 1.1rem; line-height: 1.45; }
.tst-empty { border-style: dashed; border-color: var(--fg-3); background: transparent; }
.tst-empty blockquote { color: var(--fg-3); text-transform: none; letter-spacing: .02em; font-weight: 500; font-size: .85rem; }
.tst figcaption { display: grid; gap: 2px; }
.tst figcaption span { color: var(--fg-3); }

/* ---------- cta (black, one 50° cut corner) ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 64px 20px; border-radius: 0; background: var(--bg); color: var(--fg);
  clip-path: polygon(56px 0, 100% 0, 100% 100%, 0 100%, 0 67px); }
.cta .eyebrow { justify-content: center; }
.cta .lead { margin-inline: auto; }
.cta .row { margin: 28px 0 20px; }
.cta .row .btn { flex: 1 1 100%; }
.cta-contact { text-transform: none; letter-spacing: .02em; font-weight: 500; }
@media (min-width: 640px) { .cta { padding: 96px 40px; clip-path: polygon(96px 0, 100% 0, 100% 100%, 0 100%, 0 114px); } .cta .row .btn { flex: 0 0 auto; } }

/* ---------- footer (black) ---------- */
.foot { padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot-top { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
.foot-brand { grid-column: 1 / -1; display: grid; gap: 8px; }
.foot-tag { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
html[lang="en"] .foot-tag { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0; font-size: 2rem; }
.foot-col h3 { font: 600 .72rem/1 var(--sans); color: var(--fg-3); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 12px; }
.foot-col a { display: inline-block; padding: 7px 0; color: var(--fg-2); }
.foot-col a:hover { color: var(--fg); }
.foot-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--fg-3); text-transform: none; letter-spacing: .02em; font-weight: 500; }
@media (min-width: 900px) { .foot-top { grid-template-columns: 1.6fr repeat(3, 1fr); } .foot-brand { grid-column: auto; } }

/* ---------- gym os page ---------- */
.hero-sm { min-height: auto; padding-bottom: 72px; overflow-x: clip; }
.hero-title-sm { font-size: clamp(2.6rem, 9vw, 5.8rem); max-width: 14ch; }
.gos-hero-shot { position: relative; margin-top: 56px; }
.gos-shot { position: relative; z-index: 1; width: 100%; border-radius: var(--r); border: 1px solid var(--line); }
.roles, .demo-grid, .price-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .roles, .demo-grid, .price-grid { grid-template-columns: repeat(3, 1fr); } }
.role { padding: 12px 12px 22px; border-radius: var(--r); border: 1.5px solid var(--edge); background: var(--card); display: grid; gap: 10px; align-content: start; }
.role-shot { overflow: hidden; margin-bottom: 8px; background: #EDEDED; border: 1px solid var(--line); }
.role-shot img { aspect-ratio: 1600 / 896; object-fit: cover; width: 100%; }
.role h3 { font-size: 1.3rem; font-weight: 800; padding: 0 6px; }
.role p { color: var(--fg-2); padding: 0 6px; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); font-weight: 600; font-size: .9rem; padding: 8px 6px 0; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.link .i { width: 15px; height: 15px; }
.feat-grid { display: grid; gap: 1px; background: var(--line); border: 1.5px solid var(--edge); overflow: hidden; }
@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat { background: var(--card); padding: 26px 22px; display: grid; gap: 8px; align-content: start; }
.feat h3 { font-size: 1.15rem; font-weight: 800; }
.feat p { color: var(--fg-2); }
.feat .step-n { color: var(--fg); }
.pcard { padding: 26px; border-radius: var(--r); border: 1.5px solid var(--edge); background: var(--card); display: grid; gap: 4px; align-content: start; }
.pcard-on { background: var(--black); color: var(--paper); border-color: var(--black); --fg-2: #B4B4AE; --fg-3: #8A8A84; }
.pcard h3 { color: var(--fg-2); font-weight: 700; font-size: 1rem; }
.pnum { font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: 1; margin-top: 10px; }
.pcard ul { margin-top: 18px; display: grid; gap: 10px; }
.pcard li { display: flex; gap: 10px; color: var(--fg-2); line-height: 1.4; }
.pcard li .i { width: 16px; height: 16px; margin-top: 3px; }
#harga .center { margin-top: 32px; }
.demo { position: relative; padding: 22px; border-radius: var(--r); border: 1.5px solid var(--edge); background: var(--card); display: grid; gap: 8px; transition: box-shadow .3s, transform .3s; }
@media (hover: hover) { .demo:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--fg); } }
.demo b { font-size: 1.3rem; }
.demo .mono { color: var(--fg-2); text-transform: none; letter-spacing: .02em; font-weight: 500; font-size: .85rem; }
.demo-go { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); font-weight: 700; font-size: .9rem; margin-top: 6px; }
.demo-go .i { width: 15px; height: 15px; }
.faq { border-bottom: 1px solid var(--line); }
.faq:first-of-type { border-top: 1.5px solid var(--fg); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-size: 1.1rem; font-weight: 700; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 1.5rem/1 var(--sans); color: var(--fg); transition: transform .3s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--fg-2); padding-bottom: 22px; max-width: 62ch; }

/* ---------- plain pages ---------- */
.page-plain main { padding-top: calc(var(--nav-h) + 64px); min-height: 70vh; }
.page-h { font-size: clamp(2.4rem, 8vw, 4rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; margin: 18px 0 14px; }
.h-sm { font-size: 1.3rem; font-weight: 800; margin: 36px 0 8px; }
.prose { color: var(--fg-2); max-width: 62ch; }
.prose a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.nf-code { display: inline-flex; gap: 10px; align-items: center; color: var(--fg-3); }
.nf .row { margin-top: 28px; }

/* ---------- keyframes ---------- */
@keyframes rise { to { transform: none; } }
@keyframes up { to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .25; } }
@keyframes drift { to { transform: translateY(-50%); } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes reel {
  0% { opacity: 0; transform: scale(calc(var(--z, 1) * 1.08)); }
  2% { opacity: 1; }
  12.5% { opacity: 1; }
  15% { opacity: 0; transform: scale(var(--z, 1)); }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .js .hero-title .w > span { transform: none; }
  .menu nav a { opacity: 1; transform: none; }
}
