/* =========================================================
   mukhayyar.my.id — home: the short page that says what I offer.
   Builds on main.css (tokens, nav, buttons, footer). /me/ is the long page.
   ========================================================= */

.h { --sec: clamp(88px, 10vw, 168px); }

/* ---------- reveal (motion-ok only; head script + home.js add .booted / .rv-off) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.rv-off) .h .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--rv-d, 0s); }
  .js:not(.rv-off) .h .rv.is-in { opacity: 1; transform: none; }
  .js:not(.rv-off):not(.intro-done) .h-hero__title .line > span { transform: translateY(108%); }
}

/* ---------- nav ---------- */
.h-nav__about { font-size: 14px; color: var(--ink-2); padding: 8px 4px; transition: color .25s; white-space: nowrap; }
.h-nav__about:hover { color: var(--ink); }
.h-nav__cta { height: 38px; padding: 0 16px; }

/* ---------- buttons ---------- */
.btn--lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn--light { background: var(--night-ink); color: var(--night); }
.btn--light:hover { background: #fff; }

/* ---------- hero ---------- */
.h-hero { position: relative; padding-top: var(--nav-h); min-height: max(100svh, 720px); display: flex; flex-direction: column; overflow: clip; }
.h-hero__grid { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(14, 14, 12, .13) 1px, transparent 1.3px); background-size: 28px 28px; background-position: center; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 28% 45%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 60% 55% at 28% 45%, #000 0%, transparent 75%); opacity: .5; pointer-events: none; }
.h-hero__inner { position: relative; flex: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; padding-top: clamp(28px, 6vh, 72px); padding-bottom: clamp(32px, 6vh, 64px); }
.h-hero__body { grid-column: 1 / span 7; min-width: 0; }
.h-hero__eyebrow { display: flex; align-items: center; gap: 10px; color: var(--ink-2); margin-bottom: clamp(20px, 3.4vh, 34px); }
.h-hero__eyebrow .dot { width: 7px; height: 7px; vertical-align: 0; }
.h-hero__title { font-size: clamp(44px, 5.7vw, 104px); line-height: .9; letter-spacing: -.058em; font-weight: 500; }
.h-hero__title .line { display: block; overflow: clip; padding-bottom: .07em; margin-bottom: -.07em; }
.h-hero__title .line > span { display: inline-block; transition: transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.h-hero__title .serif { font-size: 1.05em; letter-spacing: -.035em; color: var(--ink-2); }
.h-hero__lede { max-width: 33em; margin-top: clamp(22px, 3.6vh, 36px); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: var(--ink-2); }
.h-hero__lede strong { color: var(--ink); font-weight: 500; }
.h-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 3.6vh, 36px); }
.h-hero__more { margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.h-hero__more a:hover { color: var(--ink); }

/* the "shipped" card: one live dot picture per piece of work */
.h-show { grid-column: 8 / span 5; min-width: 0; margin: 0; padding: 12px; border-radius: 10px; background: var(--paper-3); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(14, 14, 12, .35); }
.h-show__head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 12px; color: var(--ink-3); }
.h-show__count b { color: var(--ink); font-weight: 500; }
.h-show__stage { position: relative; aspect-ratio: 8 / 5; border-radius: 6px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.h-show__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.h-show__cap { display: flex; flex-direction: column; gap: 6px; padding: 14px 6px 4px; min-height: 84px; }
.h-show__tag { color: var(--accent-ink); }
.h-show__text { font-size: 15px; line-height: 1.45; color: var(--ink); max-width: 34em; transition: opacity .35s; }
.h-show.is-swap .h-show__text, .h-show.is-swap .h-show__tag { opacity: 0; }
.h-show__tag { transition: opacity .35s; }
.h-show__nav { display: flex; align-items: center; justify-content: space-between; padding: 8px 6px 2px; }
.h-show__dots { display: flex; gap: 6px; }
.h-show__dot { position: relative; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.h-show__dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); opacity: .45; transition: transform .4s var(--ease), opacity .3s, background-color .3s; }
.h-show__dot[aria-selected="true"]::before { opacity: 1; background: var(--ink); transform: scale(1.35); }
.h-show__dot:hover::before { opacity: 1; }
.h-show__arrows { display: flex; gap: 6px; }
.h-show__arrow { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); transition: background-color .25s, color .25s; }
.h-show__arrow:hover { background: var(--ink); color: var(--paper); }
.h-show__arrow svg { width: 14px; height: 14px; }

.h-proof { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--col-gap); padding-top: 18px; padding-bottom: 24px; }
.h-proof::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.h-proof__item { display: flex; flex-direction: column; gap: 6px; }
.h-proof__num { font-size: clamp(22px, 2.2vw, 34px); font-weight: 500; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.h-proof__num sup { font-size: .5em; letter-spacing: 0; vertical-align: .7em; margin-left: .05em; }
.h-proof__label { color: var(--ink-3); max-width: 30ch; text-wrap: balance; }

/* ---------- sections ---------- */
.h-section { position: relative; padding-top: var(--sec); scroll-margin-top: 0; }
.h-title { margin-top: clamp(26px, 3.6vw, 52px); font-size: clamp(40px, 5.6vw, 96px); line-height: .92; letter-spacing: -.055em; font-weight: 500; max-width: 14em; text-wrap: balance; }
.h-title .serif { letter-spacing: -.03em; color: var(--ink-2); }

/* dot pictograms (drawn by home.js from data-map) */
.pict { width: 52px; height: 52px; color: var(--ink); overflow: visible; }
.pict--sm { width: 40px; height: 40px; flex: none; }
.pict circle { fill: currentColor; transform-box: fill-box; transform-origin: center; transition: transform .6s var(--ease); transition-delay: var(--d, 0s); }
.pict .p-a { fill: var(--accent); }
.pict .p-f { fill: var(--ht-faint); }
.h-svc:hover .pict circle, .h-bonus:hover .pict circle { transform: scale(1.18); }
.h-svc:hover .pict .p-f, .h-bonus:hover .pict .p-f { transform: scale(1.8); }
html[data-ht-mode="color"] .h-svc:nth-child(1) .pict { color: #2F6FD0; }
html[data-ht-mode="color"] .h-svc:nth-child(2) .pict { color: #7A52C7; }
html[data-ht-mode="color"] .h-svc:nth-child(3) .pict { color: #2E8F55; }
html[data-ht-mode="color"] .h-bonus .pict { color: #B8692A; }

.h-services { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.h-svc { position: relative; display: flex; flex-direction: column; padding: 28px clamp(16px, 2vw, 32px) 32px 0; }
.h-svc + .h-svc { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line); }
.h-svc__idx { margin-top: 26px; color: var(--ink-3); }
.h-svc__title { margin-top: 8px; font-size: clamp(26px, 2.3vw, 38px); line-height: 1; letter-spacing: -.045em; font-weight: 500; }
.h-svc__lede { margin-top: 14px; color: var(--ink-2); font-size: 16px; line-height: 1.5; max-width: 26em; }
.h-svc__list { margin-top: 20px; border-top: 1px solid var(--line); }
.h-svc__list li { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.h-svc__list li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); transform: translateY(-2px); }
.h-svc__stack { margin-top: auto; padding-top: 20px; color: var(--ink-3); }

.h-bonus { margin-top: 18px; display: flex; align-items: center; gap: 20px; padding: 20px 22px; border-radius: 8px; background: var(--paper-2); }
.h-bonus p { color: var(--ink-2); font-size: 16px; line-height: 1.5; max-width: 60em; }
.h-bonus strong { color: var(--ink); font-weight: 500; }

/* process */
.h-steps { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--col-gap); counter-reset: s; }
.h-step { position: relative; padding-top: 18px; border-top: 1px solid var(--ink); }
.h-step__no { color: var(--ink-3); }
.h-step__track { display: flex; gap: 6px; margin-top: 22px; }
.h-step__track i { width: 9px; height: 9px; border-radius: 50%; background: var(--ht-faint); }
.h-step__track i.on { background: var(--ink); }
.h-step__track i.a { background: var(--accent); }
.h-step h3 { margin-top: 18px; font-size: clamp(24px, 2vw, 32px); line-height: 1; letter-spacing: -.045em; font-weight: 500; }
.h-step p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; max-width: 24em; }

/* work */
.h-feature { margin-top: clamp(40px, 5vw, 72px); }
.h-feature .feature__media { aspect-ratio: 16 / 10; }
.h-feature .feature__cta { align-self: flex-start; margin-top: 26px; }
.h-cases { margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--ink); }
.h-case { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.h-case__who { grid-column: 1 / span 3; color: var(--ink-3); }
a.h-case__who { justify-self: start; color: var(--ink); }
a.h-case__who:hover { color: var(--accent-ink); }
.h-case__what { grid-column: 4 / span 3; font-size: clamp(20px, 1.6vw, 26px); line-height: 1.1; letter-spacing: -.035em; font-weight: 500; }
.h-case__out { grid-column: 7 / span 4; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.h-case__stack { grid-column: 11 / span 2; text-align: right; color: var(--ink-3); }
.h-more { margin-top: 28px; font-size: 16px; color: var(--ink-2); }
.h-more a:hover { color: var(--ink); }

/* pricing */
.h-prices { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); align-items: stretch; }
.h-price { position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; border-radius: 10px; background: var(--paper-3); box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .3s; }
.h-price:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2); }
.h-price__flag { position: absolute; top: 29px; right: 20px; display: flex; align-items: center; gap: 8px; color: var(--night-ink-2); }
.h-price__flag .dot { width: 6px; height: 6px; vertical-align: 0; }
.h-price__name { font-size: 19px; letter-spacing: -.03em; font-weight: 500; }
.h-price__amt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.h-price__num { font-size: clamp(40px, 3.6vw, 60px); line-height: .9; letter-spacing: -.06em; font-weight: 500; font-variant-numeric: tabular-nums; }
.h-price__from, .h-price__unit { color: var(--ink-3); }
.h-price__desc { margin-top: 18px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.h-price__list { margin: 18px 0 24px; border-top: 1px solid var(--line); }
.h-price__list li { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.h-price__list li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: currentColor; transform: translateY(-2px); }
.h-price__cta { margin-top: auto; justify-content: center; }
.h-price--hi { background: var(--night); color: var(--night-ink); box-shadow: none; }
.h-price--hi:hover { box-shadow: none; }
.h-price--hi .h-price__from, .h-price--hi .h-price__unit { color: var(--night-ink-3); }
.h-price--hi .h-price__desc { color: var(--night-ink-2); }
.h-price--hi .h-price__list, .h-price--hi .h-price__list li { border-color: var(--night-line); }
.h-price--hi .btn { background: var(--night-ink); color: var(--night); }
.h-price--hi .btn:hover { background: #fff; }
.h-custom { margin-top: var(--col-gap); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 22px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.h-custom p { font-size: 17px; color: var(--ink-2); }
.h-custom strong { color: var(--ink); font-weight: 500; }
.h-custom__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.h-note { margin-top: 18px; color: var(--ink-3); }

/* faq */
.h-faq { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--ink); max-width: 1100px; }
.h-q { border-bottom: 1px solid var(--line); }
.h-q summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -.03em; font-weight: 500; }
.h-q summary::-webkit-details-marker { display: none; }
.h-q summary i { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .3s, transform .5s var(--ease); }
.h-q summary i::before, .h-q summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.4px; margin: -.7px 0 0 -5.5px; background: currentColor; transition: transform .5s var(--ease); }
.h-q summary i::after { transform: rotate(90deg); }
.h-q[open] summary i { background: var(--ink); color: var(--paper); transform: rotate(180deg); }
.h-q[open] summary i::after { transform: rotate(0deg); }
.h-q summary:hover i { box-shadow: inset 0 0 0 1px var(--ink); }
.h-q p { padding: 0 64px 26px 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; max-width: 46em; }

/* the long version: a door to /me/ */
.h-long { padding-top: var(--sec); }
.h-long__card { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: stretch; min-height: 360px; border-radius: 12px; background: var(--paper-2); overflow: hidden; transition: background-color .4s; }
.h-long__card:hover { background: #E2E1DA; }
.h-long__body { grid-column: 1 / span 6; display: flex; flex-direction: column; padding: clamp(24px, 3.4vw, 52px); }
.h-long__eyebrow { color: var(--ink-3); }
.h-long__title { margin-top: 18px; font-size: clamp(36px, 4.4vw, 76px); line-height: .92; letter-spacing: -.055em; font-weight: 500; }
.h-long__title .serif { color: var(--ink-2); }
.h-long__desc { margin-top: 18px; color: var(--ink-2); font-size: 16.5px; line-height: 1.55; max-width: 30em; }
.h-long__btn { align-self: flex-start; margin-top: auto; padding-top: 0; }
.h-long__body .h-long__btn { margin-top: 28px; }
.h-long__btn svg { transition: transform .5s var(--ease); }
.h-long__card:hover .h-long__btn svg { transform: translateX(4px); }
.h-long__art { grid-column: 7 / span 6; position: relative; min-height: 320px; }
.h-long__art canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* footer tweaks */
.h .footer { margin-top: var(--sec); }
.h .footer__mailrow .btn { margin-right: 6px; }
.h .fcol--now a { display: inline-flex; align-items: center; }

@media (hover: none) { .h-feature .feature__hint { display: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .h-hero__title { font-size: clamp(44px, 6.4vw, 80px); }
  .h-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-case__who { grid-column: 1 / span 3; }
  .h-case__what { grid-column: 4 / span 4; }
  .h-case__out { grid-column: 8 / span 5; }
  .h-case__stack { grid-column: 8 / span 5; text-align: left; margin-top: 8px; }
}
@media (max-width: 960px) {
  .h-hero { min-height: auto; }
  .h-hero__inner { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .h-hero__body, .h-show { grid-column: 1 / -1; }
  .h-show { max-width: 640px; }
  .h-proof { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .h-services { grid-template-columns: minmax(0, 1fr); }
  .h-svc, .h-svc + .h-svc { padding: 28px 0 32px; border-left: 0; }
  .h-svc + .h-svc { border-top: 1px solid var(--line); }
  .h-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .h-long__card { grid-template-columns: minmax(0, 1fr); }
  .h-long__body, .h-long__art { grid-column: 1 / -1; }
  .h-long__art { min-height: 260px; order: -1; }
}
@media (max-width: 760px) {
  .h-nav__about { display: none; }
  .h-nav__cta { height: 34px; padding: 0 12px; font-size: 13px; gap: 8px; }
  .h-hero__inner { padding-top: 20px; }
  .h-hero__title { font-size: clamp(40px, 11.4vw, 64px); }
  .h-hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .h-case { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .h-case > * { grid-column: 1 / -1 !important; text-align: left !important; margin-top: 0 !important; }
  .h-case__what { margin-top: 2px; }
  .h-prices { grid-template-columns: minmax(0, 1fr); }
  .h-steps { grid-template-columns: minmax(0, 1fr); }
  .h-q p { padding-right: 0; }
  .h-bonus { align-items: flex-start; }
  .h .footer__mailrow .btn { width: 100%; justify-content: center; margin-right: 0; }
  .h-feature .feature__hint { display: none; }
  .h-price__flag { position: static; margin: -6px 0 14px; }
}
@media (max-width: 420px) {
  .h-nav .mode { display: none; }
}
