/* ============================================================
   VISENNJI — "BUKU BESAR DIGITAL"
   A ledger-inspired identity: ruled paper, ledger tabs, a rubber
   stamp motif, and receipt-like monospaced data. Built to read
   as crafted editorial work, not a template.

   Contents
   01  Tokens
   02  Base & reset
   03  Type
   04  Layout + ledger texture
   05  Buttons
   06  Stamp + annotation motifs
   07  Header
   08  Footer
   09  Home — hero
   10  Home — ledger of problems
   11  Home — trust aside
   12  Home — approach (pillars)
   13  Home — process
   14  Home — faq
   15  Home — closing
   16  Portfolio
   17  Tentang Kami
   18  Reveal motion
   19  Responsive
   ============================================================ */

/* 01 — TOKENS ------------------------------------------------ */
:root {
  --paper:      #FAF8F3;
  --paper-2:    #F3EFE6;
  --white:      #FFFFFF;
  --ink:        #14203A;
  --ink-2:      #47506A;
  --muted:      #8C92AC;

  --sky:        #2F6FE3;
  --sky-deep:   #1F55BE;
  --sky-wash:   #E7EFFE;

  --stamp:      #C6472F;
  --mint:       #1F9D74;
  --amber:      #E8912B;

  --line:       #E4DECF;
  --line-strong:#D6CEBB;

  --font-display: 'Bricolage Grotesque', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, 'SFMono-Regular', monospace;

  --wrap: 1160px;
  --gut: clamp(1.15rem, 4vw, 2.75rem);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --shadow: 0 18px 40px -24px rgba(20, 32, 58, 0.35);
  --shadow-soft: 0 10px 30px -22px rgba(20, 32, 58, 0.4);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 76px;
}

/* 02 — BASE & RESET ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--ink); color: var(--paper); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* 03 — TYPE -------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--ink); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--ink-2);
  line-height: 1.6;
}

/* Ledger tab — the recurring section marker (mono, like a file tab) */
.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-deep);
  font-weight: 700;
}
.tab::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--stamp);
}
.tab--muted { color: var(--muted); }
.tab--muted::before { background: var(--line-strong); }

/* 04 — LAYOUT + LEDGER TEXTURE ------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

section { position: relative; }

.pad { padding-block: clamp(4rem, 9vw, 7.5rem); }
.pad-t { padding-top: clamp(4rem, 9vw, 7.5rem); }

/* faint ruled-ledger lines used on select surfaces */
.ruled {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 39px,
    var(--line) 39px,
    var(--line) 40px
  );
}

/* a red ledger margin-rule down the left of a block */
.margin-rule { position: relative; }
.margin-rule::before {
  content: "";
  position: absolute;
  left: -1px; top: 0; bottom: 0;
  width: 2px;
  background: var(--stamp);
  opacity: 0.55;
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--line-strong);
  margin: 0;
}

/* 05 — BUTTONS ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
              color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px); }

.btn-sky {
  background: var(--sky);
  color: var(--white);
  box-shadow: 0 14px 26px -14px rgba(47,111,227,0.7);
}
.btn-sky:hover { background: var(--sky-deep); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding-inline: 0.4rem;
}
.btn-ghost .arr { transition: transform 0.25s var(--ease); }
.btn-ghost:hover .arr { transform: translateX(5px); }

.btn-line {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* the "reach us" gateway CTAs (WhatsApp contact) — a distinct warm color plus
   a gentle two-beat heartbeat, so these read as the one thing to click. */
.btn-pulse {
  background: var(--stamp);
  color: var(--white);
  box-shadow: 0 14px 30px -14px rgba(198, 71, 47, 0.7), 0 0 0 0 rgba(198, 71, 47, 0.45);
  animation: btn-heartbeat 2.4s ease-in-out infinite;
}
.btn-pulse:hover,
.btn-pulse:focus-visible {
  animation: none;
  background: #A83A24;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(198, 71, 47, 0.7);
}
@keyframes btn-heartbeat {
  0%, 100% { transform: scale(1);     box-shadow: 0 14px 30px -14px rgba(198, 71, 47, 0.7), 0 0 0 0 rgba(198, 71, 47, 0.4); }
  12%      { transform: scale(1.08);  box-shadow: 0 14px 30px -14px rgba(198, 71, 47, 0.7), 0 0 0 10px rgba(198, 71, 47, 0); }
  24%      { transform: scale(1);     box-shadow: 0 14px 30px -14px rgba(198, 71, 47, 0.7), 0 0 0 0 rgba(198, 71, 47, 0); }
  36%      { transform: scale(1.05);  box-shadow: 0 14px 30px -14px rgba(198, 71, 47, 0.7), 0 0 0 7px rgba(198, 71, 47, 0); }
  48%      { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-pulse { animation: none; }
}

/* 06 — STAMP + ANNOTATION ----------------------------------- */
.stamp {
  --a: -4deg;
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--stamp);
  border: 2.5px solid var(--stamp);
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  transform: rotate(var(--a));
  position: relative;
  box-shadow: inset 0 0 0 2px rgba(198,71,47,0.15);
}
.stamp small {
  display: block;
  font-size: 0.6em;
  letter-spacing: 0.22em;
  opacity: 0.75;
  margin-bottom: 2px;
}

/* hand-drawn squiggle underline for a keyword */
.mark {
  position: relative;
  white-space: nowrap;
}
.mark::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: -4px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='8' viewBox='0 0 120 8'%3E%3Cpath d='M1 5 C 20 1, 40 8, 60 4 S 100 1, 119 5' fill='none' stroke='%232F6FE3' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 100%;
}

/* 06b — SCROLL PROGRESS --------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--stamp), var(--sky));
  z-index: 200;
  transition: width 0.1s linear;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { transition: none; }
}

/* 07 — HEADER ----------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.masthead.stuck { border-bottom-color: var(--line-strong); }

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand b { color: var(--sky); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding-block: 4px;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--stamp);
  transition: width 0.25s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { width: 100%; }

.mast-cta { display: flex; align-items: center; gap: 0.75rem; }

.burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.burger span {
  width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.scrim {
  position: fixed; inset: 0;
  background: rgba(20,32,58,0.4);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
  z-index: 110;
}
.scrim.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(84vw, 330px);
  background: var(--paper);
  z-index: 120;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  display: flex; flex-direction: column;
  padding: 1.5rem var(--gut);
  border-left: 1px solid var(--line-strong);
}
.drawer.open { transform: translateX(0); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.drawer-close { width: 42px; height: 42px; border-radius: 50%; background: var(--paper-2); display: flex; align-items: center; justify-content: center; }
.drawer nav { flex-direction: column; align-items: stretch; gap: 0; }
.drawer nav a {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 600; color: var(--ink);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.drawer .btn { margin-top: 1.5rem; justify-content: center; }

/* 08 — FOOTER ----------------------------------------------- */
.foot {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
}
.foot .brand { color: var(--paper); }
.foot .brand b { color: #7FB0FF; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.foot-blurb { color: #A9B2C7; max-width: 34ch; margin-top: 1rem; }
.foot h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #7E88A3; margin-bottom: 1.1rem; font-weight: 700;
}
.foot ul { display: flex; flex-direction: column; gap: 0.7rem; }
.foot a { color: #C6CDDC; display: inline-flex; align-items: center; gap: 0.5rem; transition: color 0.2s; }
.foot a:hover { color: var(--white); }
.foot svg { width: 17px; height: 17px; }
.socials { flex-direction: row !important; gap: 0.7rem; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.socials a:hover { background: var(--sky); }
.foot-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem; color: #7E88A3;
}

/* 09 — HOME: HERO ------------------------------------------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin: 1.4rem 0 1.4rem; }
.hero h1 em {
  font-style: normal;
  color: var(--sky);
}
.hero .lede { max-width: 44ch; }
.hero-actions {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 2rem;
}

/* primary CTA — the arrow slides into view on hover; the heartbeat + color
   that make it "unmistakably clickable" now live in .btn-pulse. */
.btn-cta-arr {
  display: inline-block;
  transform: translateX(-4px);
  opacity: 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.btn-cta:hover .btn-cta-arr,
.btn-cta:focus-visible .btn-cta-arr { transform: translateX(0); opacity: 1; }

/* promise callout — a distinct card, not a stray ornament */
.hero-promise {
  margin-top: 2.2rem;
  display: flex; align-items: center; gap: 1.2rem;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--stamp);
  border-radius: var(--r-md);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-soft);
}
.hero-promise .stamp { flex-shrink: 0; }
.hero-promise p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-2);
  max-width: 32ch;
}

/* hero visual: manual nota transforming into a digital summary */
.hero-visual { perspective: 900px; }
.transform-figure {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.2rem);
}
.tf-card { display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; }
.tf-digital { align-items: flex-end; }
.tf-tag {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 700;
  padding: 0.3rem 0.65rem; border-radius: 999px;
  width: fit-content;
}
.tf-tag--manual { background: #FBE9E4; color: var(--stamp); }
.tf-tag--digital { background: var(--sky-wash); color: var(--sky-deep); }

.paper-nota {
  position: relative;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 1.2rem 1.1rem 1.5rem;
  transform: rotate(-4deg) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  box-shadow: 0 22px 40px -26px rgba(20,32,58,0.5);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tf-manual:hover .paper-nota { transform: rotate(-1deg) translateY(-4px); box-shadow: var(--shadow); }
.paper-nota::before {
  content: "";
  position: absolute; left: 22px; top: 12px; bottom: 12px;
  width: 1px; background: var(--stamp); opacity: 0.4;
}
.nota-head {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 0.8rem;
  padding-left: 12px;
}
.nota-line {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-2);
  padding: 5px 0 5px 12px;
  border-bottom: 1px dashed var(--line);
}
.nota-line span:last-child { color: var(--ink); }
.nota-stamp {
  position: absolute; right: -10px; bottom: 12px;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.76rem;
  color: var(--stamp); border: 2px solid var(--stamp);
  border-radius: 6px; padding: 3px 8px; transform: rotate(-12deg);
  background: rgba(250,248,243,0.85);
}
.digi-card {
  width: 100%;
  background: var(--ink);
  border-radius: 16px;
  padding: 1.15rem 1.25rem 1.35rem;
  box-shadow: 0 30px 50px -22px rgba(20,32,58,0.6);
  color: var(--paper);
  transform: rotate(3deg) rotateX(calc(var(--tilt-x) * -1)) rotateY(calc(var(--tilt-y) * -1));
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tf-digital:hover .digi-card { transform: rotate(1deg) translateY(-4px); box-shadow: 0 34px 60px -20px rgba(20,32,58,0.7); }
.digi-top { display: flex; align-items: center; gap: 6px; margin-bottom: 1rem; }
.digi-top i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.digi-label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; color: #8FA0C4; text-transform: uppercase; }
.digi-num { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; margin: 2px 0 0; }
.digi-bars { display: flex; align-items: flex-end; gap: 7px; height: 56px; margin-top: 1rem; }
.digi-bars i { flex: 1; background: var(--sky); border-radius: 3px 3px 0 0; display: block; }
.digi-bars i:last-child { background: var(--mint); }

.tf-flow {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  color: var(--stamp);
}
.flow-arrow { width: clamp(40px, 6vw, 70px); height: 28px; }
.flow-path { animation: flow-dash 1.2s linear infinite; }
@keyframes flow-dash { to { stroke-dashoffset: -40; } }
.tf-flow-label {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .flow-path { animation: none; }
}

/* trust strip beneath hero */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.trust-strip .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.5rem;
  padding-block: 1.1rem;
}
.trust-strip p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem; color: var(--ink-2);
  display: flex; align-items: center; gap: 0.5rem;
}
.trust-strip svg { width: 17px; height: 17px; color: var(--mint); flex-shrink: 0; transition: transform 0.3s var(--ease); }
.trust-strip p:hover svg { transform: scale(1.2) rotate(-6deg); }

/* 10 — HOME: LEDGER OF PROBLEMS ----------------------------- */
.problems-intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.problems-visual { display: flex; justify-content: center; }
.problems-visual svg { width: 100%; max-width: 280px; height: auto; }

/* papers: settle in on reveal, fan out on hover like flipping through a messy stack */
.problems-paper-inner {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transform: scale(0.85) translateY(10px);
  transition: transform 0.35s var(--ease);
}
.problems-visual.shown .problems-paper-inner { animation: paper-settle 0.5s var(--ease) forwards; }
.problems-visual.shown .problems-paper--mid .problems-paper-inner { animation-delay: 0.12s; }
.problems-visual.shown .problems-paper--front .problems-paper-inner { animation-delay: 0.24s; }
@keyframes paper-settle {
  0%   { opacity: 0; transform: scale(0.85) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.problems-visual:hover .problems-paper--back .problems-paper-inner { transform: translate(-9px, 3px) rotate(-7deg); }
.problems-visual:hover .problems-paper--mid .problems-paper-inner { transform: translate(9px, -3px) rotate(6deg); }
.problems-visual:hover .problems-paper--front .problems-paper-inner { transform: translate(0, -7px) rotate(-2deg); }

/* badges: pop in on reveal */
.problems-badge {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transform: scale(0.5);
}
.problems-visual.shown .problems-badge { animation: badge-pop 0.45s var(--ease) forwards; }
.problems-visual.shown .problems-clock { animation-delay: 0.3s; }
.problems-visual.shown .problems-warn { animation-delay: 0.45s; }
@keyframes badge-pop {
  0%   { opacity: 0; transform: scale(0.5); }
  70%  { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

/* clock hand keeps ticking — the cost of wasted time never stops */
.problems-clock-hand {
  transform-origin: 0px 0px;
  animation: clock-tick 2.6s ease-in-out infinite;
  animation-delay: 1s;
}
@keyframes clock-tick {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(22deg); }
}

/* warning badge pulses gently to flag the risk */
.problems-warn-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: warn-pulse 2.2s ease-in-out infinite;
  animation-delay: 1s;
}
@keyframes warn-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .problems-paper-inner { opacity: 1; transform: none; animation: none !important; }
  .problems-badge { opacity: 1; transform: none; animation: none !important; }
  .problems-clock-hand, .problems-warn-pulse { animation: none !important; }
}

.problems .head { max-width: 46ch; margin-bottom: 0; }
.problems .head h2 { margin-top: 1rem; }

.ledger-list {
  border-top: 1px solid var(--line-strong);
}
.ledger-item {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.7rem 0.4rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s var(--ease), padding-left 0.25s var(--ease);
}
.ledger-item:hover { background: var(--white); padding-left: 1.2rem; }
.ledger-mark { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.ledger-ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--sky-wash); color: var(--sky-deep);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.ledger-ico svg { width: 20px; height: 20px; }
.ledger-item:hover .ledger-ico {
  transform: rotate(-8deg) scale(1.08);
  background: var(--stamp); color: var(--white);
}
.ledger-no {
  font-family: var(--font-mono);
  font-size: 0.85rem; color: var(--stamp); font-weight: 700;
}
.ledger-item h3 { margin-bottom: 0.3rem; }
.ledger-item p { color: var(--ink-2); margin: 0; max-width: 56ch; }
.ledger-cost {
  font-family: var(--font-mono);
  font-size: 0.78rem; color: var(--muted);
  text-align: right; white-space: nowrap;
}

/* 11 — HOME: TRUST ASIDE ------------------------------------ */
.aside-quote {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.quote-ico { width: 34px; height: 34px; color: #8FB4FF; opacity: 0.6; margin-bottom: 1rem; }
.aside-quote .tab { color: #8FB4FF; }
.aside-quote .tab::before { background: #8FB4FF; }
.aside-quote blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 1.2rem 0 0;
  max-width: 24ch;
}
.aside-quote blockquote b { color: #8FB4FF; }
.aside-quote .who {
  font-family: var(--font-mono);
  font-size: 0.8rem; color: #8892AB; margin-top: 1.6rem;
}
.aside-quote .big-stamp {
  position: absolute;
  right: -20px; bottom: -30px;
  font-family: var(--font-mono); font-weight: 700;
  font-size: 5rem; color: rgba(143,180,255,0.08);
  transform: rotate(-12deg); pointer-events: none;
  letter-spacing: 0.1em;
}

/* 12 — HOME: APPROACH (pillars) ----------------------------- */
.approach-intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.approach-visual { display: flex; justify-content: center; }
.approach-visual svg { width: 100%; max-width: 260px; height: auto; }

/* clipboard tilts gently on hover, like being picked up */
.approach-board {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}
.approach-visual:hover .approach-board { transform: rotate(-2deg) translateY(-4px); }

/* checkboxes pop in, checkmarks draw, lines grow — ticking off the list */
.approach-checkbox {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transform: scale(0.4);
}
.approach-visual.shown .approach-checkbox { animation: check-pop 0.4s var(--ease) forwards; }
.approach-visual.shown .approach-row:nth-of-type(2) .approach-checkbox { animation-delay: 0.18s; }
.approach-visual.shown .approach-row:nth-of-type(3) .approach-checkbox { animation-delay: 0.36s; }
@keyframes check-pop {
  0%   { opacity: 0; transform: scale(0.4); }
  70%  { opacity: 1; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.approach-check { stroke-dasharray: 26; stroke-dashoffset: 26; }
.approach-visual.shown .approach-check { animation: check-draw 0.3s ease-out forwards; animation-delay: 0.3s; }
.approach-visual.shown .approach-row:nth-of-type(2) .approach-check { animation-delay: 0.48s; }
.approach-visual.shown .approach-row:nth-of-type(3) .approach-check { animation-delay: 0.66s; }
@keyframes check-draw { to { stroke-dashoffset: 0; } }

.approach-line {
  transform-box: fill-box;
  transform-origin: left center;
  transform: scaleX(0);
}
.approach-visual.shown .approach-line { animation: line-grow 0.3s var(--ease) forwards; animation-delay: 0.45s; }
.approach-visual.shown .approach-row:nth-of-type(2) .approach-line { animation-delay: 0.63s; }
.approach-visual.shown .approach-row:nth-of-type(3) .approach-line { animation-delay: 0.81s; }
@keyframes line-grow { to { transform: scaleX(1); } }

.approach-clip-shine { animation: shine-pulse 2.6s ease-in-out infinite; animation-delay: 1.2s; }
@keyframes shine-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.9; } }

.approach-visual:hover .approach-checkbox { transform: scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  .approach-checkbox { opacity: 1; transform: none; animation: none !important; }
  .approach-check { stroke-dashoffset: 0; animation: none !important; }
  .approach-line { transform: scaleX(1); animation: none !important; }
  .approach-clip-shine { animation: none !important; }
}
.approach .head { max-width: 48ch; margin-bottom: 0; }
.approach .head h2 { margin-top: 1rem; }
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 1.8rem;
  display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pillar-ico {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--sky-wash);
  display: flex; align-items: center; justify-content: center;
  color: var(--sky-deep); margin-bottom: 1.3rem;
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.pillar-ico svg { width: 26px; height: 26px; }
.pillar:hover .pillar-ico { transform: rotate(-6deg) scale(1.08); background: var(--ink); color: var(--white); }
.pillar-tag {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem;
}
.pillar h3 { margin-bottom: 0.6rem; }
.pillar p { color: var(--ink-2); margin: 0; font-size: 0.98rem; }

/* 13 — HOME: PROCESS ---------------------------------------- */
.process { background: var(--paper-2); }
.process-intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.process-visual { display: flex; justify-content: center; }
.process-visual svg { width: 100%; max-width: 280px; height: auto; }

/* icon chips pop in one by one, mirroring the 4 steps listed below */
.process-chip {
  opacity: 0;
  transform: scale(0.5);
  transform-box: fill-box;
  transform-origin: center;
}
.process-visual.shown .process-chip { animation: process-chip-pop 0.45s var(--ease) forwards; }
.process-visual.shown .process-step:nth-of-type(2) .process-chip { animation-delay: 0.15s; }
.process-visual.shown .process-step:nth-of-type(3) .process-chip { animation-delay: 0.3s; }
.process-visual.shown .process-step:nth-of-type(4) .process-chip { animation-delay: 0.45s; }
@keyframes process-chip-pop {
  0%   { opacity: 0; transform: scale(0.4); }
  70%  { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

/* on hover, a signal travels the chain and pings each chip as it arrives */
.process-signal { opacity: 0; }
.process-visual:hover .process-signal { animation: signal-travel 1.8s ease-in-out infinite; }
@keyframes signal-travel {
  0%   { opacity: 0; transform: translateX(0); }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(180px); }
}
.process-visual:hover .process-chip { animation: chip-ping 1.8s ease-in-out infinite; }
.process-visual:hover .process-step:nth-of-type(2) .process-chip { animation-delay: 0.55s; }
.process-visual:hover .process-step:nth-of-type(3) .process-chip { animation-delay: 1.1s; }
.process-visual:hover .process-step:nth-of-type(4) .process-chip { animation-delay: 1.65s; }
@keyframes chip-ping {
  0%, 85%, 100% { transform: scale(1); }
  92% { transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .process-chip { opacity: 1; transform: scale(1); animation: none !important; }
  .process-signal { display: none; }
}
.process .head { max-width: 44ch; margin-bottom: 0; }
.process .head h2 { margin-top: 1rem; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.step {
  padding: 1.6rem 1.4rem 1.6rem 0;
  border-top: 2px solid var(--ink);
  margin-right: 1.4rem;
  position: relative;
  transition: transform 0.3s var(--ease);
}
.step:hover { transform: translateY(-4px); }
.step-ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--white); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--sky-deep); margin-bottom: 1rem;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.step-ico svg { width: 19px; height: 19px; }
.step:hover .step-ico { transform: scale(1.1) rotate(6deg); background: var(--sky); border-color: var(--sky); color: var(--white); }
.step-no {
  font-family: var(--font-mono);
  font-size: 0.78rem; color: var(--stamp); font-weight: 700;
  letter-spacing: 0.1em; margin-bottom: 0.8rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-2); font-size: 0.92rem; margin: 0; }

/* 14 — HOME: FAQ -------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.faq-ico { width: 34px; height: 34px; color: var(--sky-deep); margin-bottom: 1.1rem; }
.faq-intro h2 { margin: 1rem 0 1rem; }
.faq-intro p { color: var(--ink-2); }
.faq-list { border-top: 1px solid var(--line-strong); }
details.qa {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}
details.qa summary {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.1rem; color: var(--ink);
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary .plus {
  flex-shrink: 0; width: 24px; height: 24px; position: relative;
  transition: transform 0.3s var(--ease);
}
details.qa summary .plus::before,
details.qa summary .plus::after {
  content: ""; position: absolute; background: var(--sky); border-radius: 2px;
}
details.qa summary .plus::before { top: 11px; left: 3px; right: 3px; height: 2px; }
details.qa summary .plus::after  { left: 11px; top: 3px; bottom: 3px; width: 2px; transition: opacity 0.3s var(--ease); }
details.qa[open] summary .plus::after { opacity: 0; }
details.qa[open] summary .plus { transform: rotate(180deg); }
details.qa p { color: var(--ink-2); margin: 0.9rem 0 0; max-width: 62ch; }

/* 15 — HOME: CLOSING ---------------------------------------- */
.closing {
  text-align: center;
}
.closing .inner {
  max-width: 40ch; margin-inline: auto;
}
.closing-ico {
  width: 52px; height: 52px;
  margin-bottom: 0.8rem;
  animation: closing-float 3.2s ease-in-out infinite;
  transition: filter 0.3s var(--ease);
}
.closing .inner:hover .closing-ico { filter: drop-shadow(0 8px 14px rgba(198,71,47,0.35)); }
@keyframes closing-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(2px, -6px) rotate(5deg); }
}
.closing-flame {
  transform-box: fill-box;
  transform-origin: top center;
  animation: flame-flicker 0.7s ease-in-out infinite alternate;
}
@keyframes flame-flicker {
  from { transform: scaleY(1); opacity: 1; }
  to   { transform: scaleY(0.8); opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .closing-ico { animation: none; }
  .closing-flame { animation: none; }
}
.closing h2 { margin: 1.2rem 0 1rem; }
.closing p { color: var(--ink-2); margin-bottom: 2rem; }
.closing .btn { justify-content: center; }

/* 16 — PORTFOLIO -------------------------------------------- */
.pf-hero { padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem); }
.pf-hero .inner { max-width: 34ch; }
.pf-hero h1 { margin: 1.2rem 0 1.4rem; }
.pf-hero .lede { max-width: 52ch; }
.pf-hero .meta-row {
  display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 2rem;
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-2);
}
.pf-hero .meta-row b { color: var(--ink); font-weight: 700; }

/* pf-hero visual: a live app window (results, in daily use) flanked by the two case-study marks */
.pf-visual { display: flex; justify-content: center; }
.pf-visual svg { width: 100%; max-width: 300px; height: auto; }

.pf-window-inner {
  transform-box: fill-box; transform-origin: center;
  opacity: 0; transform: scale(0.9) translateY(10px);
  transition: transform 0.35s var(--ease), box-shadow 0.3s var(--ease);
}
.pf-visual.shown .pf-window-inner { animation: pf-window-settle 0.5s var(--ease) forwards; }
@keyframes pf-window-settle {
  0%   { opacity: 0; transform: scale(0.9) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.pf-visual:hover .pf-window-inner { transform: rotate(-1.5deg) translateY(-4px); }

/* live indicator: keeps pulsing — the system is in use right now, not just in a screenshot */
.pf-live { opacity: 0; }
.pf-visual.shown .pf-live { animation: pf-live-in 0.4s var(--ease) forwards; animation-delay: 0.35s; }
@keyframes pf-live-in { to { opacity: 1; } }
.pf-live-ring {
  transform-box: fill-box; transform-origin: center;
  animation: pf-live-pulse 2.2s ease-out infinite;
}
@keyframes pf-live-pulse {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* case-study marks: pop in after the window, nudge on hover like the icon chips elsewhere */
.pf-badge {
  transform-box: fill-box; transform-origin: center;
  opacity: 0; transform: scale(0.5);
}
.pf-visual.shown .pf-badge { animation: pf-badge-pop 0.45s var(--ease) forwards; }
.pf-visual.shown .pf-badge--1 { animation-delay: 0.45s; }
.pf-visual.shown .pf-badge--2 { animation-delay: 0.6s; }
@keyframes pf-badge-pop {
  0%   { opacity: 0; transform: scale(0.5); }
  70%  { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}
.pf-visual:hover .pf-badge--1 { transform: rotate(-8deg) scale(1.08); }
.pf-visual:hover .pf-badge--2 { transform: rotate(8deg) scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  .pf-window-inner { opacity: 1; transform: none; animation: none !important; }
  .pf-live { opacity: 1; animation: none !important; }
  .pf-live-ring { display: none; }
  .pf-badge { opacity: 1; transform: none; animation: none !important; }
}

.case {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line-strong);
}
/* copy on the left, wheel stage on the right — the stage's queued images sit
   close and small at its own top corners, so they stay inside their column
   and never reach into the text. */
.case-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.case-copy { max-width: 62ch; }
.case-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 700;
  padding: 0.35rem 0.75rem; border-radius: 999px;
  background: var(--sky-wash); color: var(--sky-deep);
}
.case-badge.mint { background: #E0F5EE; color: var(--mint); }
.case-badge.amber { background: #FCEFDD; color: #B9731A; }
.case h2 { margin: 1.1rem 0 1rem; }
.case-lede { color: var(--ink-2); margin-bottom: 1.6rem; }
.case-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1.5rem;
  border-top: 1px solid var(--line); padding-top: 1.5rem; margin-bottom: 1.6rem;
}
.fact h4 {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; font-weight: 700;
}
.fact p { color: var(--ink); font-size: 0.95rem; margin: 0; }
.wins { display: flex; flex-direction: column; gap: 0.7rem; }
.win {
  display: flex; gap: 0.7rem; align-items: flex-start;
  font-size: 0.96rem; color: var(--ink);
}
.win svg { width: 20px; height: 20px; color: var(--mint); flex-shrink: 0; margin-top: 3px; }
.win b { font-family: var(--font-mono); color: var(--sky-deep); }

/* case stage — a small "roda": one screenshot large and lit at the front,
   the next two waiting small at the upper corners, turning counter-clockwise
   (upper-right queues to upper-left, upper-left drops into front, front
   recedes to the back, back rises up to upper-right). Offsets are built with
   calc(-50% ± Npx) rather than mismatched translate percentages, so left and
   right queue positions are always true mirrors of each other. */
.case-stage {
  --stage-x: clamp(90px, 12vw, 150px);
  --stage-y: clamp(90px, 11vw, 135px);
  position: relative;
  padding-block: clamp(1rem, 3vw, 2rem);
}
.stage-track {
  position: relative;
  height: clamp(280px, 26vw, 380px);
  max-width: 480px;
  margin-inline: auto;
}
.stage-item {
  position: absolute;
  top: 50%; left: 50%;
  width: min(30vw, 300px);
  margin: 0; padding: 0; border: 0; background: none;
  font: inherit; text-align: left; cursor: pointer;
  transform-origin: center;
  transition: transform 0.85s var(--ease), opacity 0.85s var(--ease), filter 0.6s var(--ease);
  will-change: transform, opacity;
}
.stage-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  display: block;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  box-shadow: var(--shadow);
  transition: box-shadow 0.6s var(--ease);
}
.stage-tag {
  position: absolute; left: 16px; bottom: 16px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  background: var(--ink); color: var(--paper);
  padding: 0.3rem 0.7rem; border-radius: 6px;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.stage-item[data-pos="front"] {
  transform: translate(-50%, -50%) scale(1.16);
  opacity: 1;
  z-index: 4;
  cursor: zoom-in;
}
.stage-item[data-pos="front"] .stage-tag { opacity: 1; }
.stage-item[data-pos="front"] img {
  box-shadow: var(--shadow), 0 0 0 1px rgba(47, 111, 227, 0.15), 0 0 70px -8px rgba(47, 111, 227, 0.55);
  animation: stage-glow-pulse 3.4s ease-in-out infinite;
}
.case:nth-child(even) .stage-item[data-pos="front"] img {
  box-shadow: var(--shadow), 0 0 0 1px rgba(31, 157, 116, 0.15), 0 0 70px -8px rgba(31, 157, 116, 0.5);
}
@keyframes stage-glow-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.035); }
}

/* queued, upper-left — true mirror of "right" below via the shared --stage-x/-y */
.stage-item[data-pos="left"] {
  transform: translate(calc(-50% - var(--stage-x)), calc(-50% - var(--stage-y))) scale(0.4) rotate(-7deg);
  opacity: 0.62;
  z-index: 2;
  filter: saturate(0.85) brightness(0.96);
}
/* queued, upper-right */
.stage-item[data-pos="right"] {
  transform: translate(calc(-50% + var(--stage-x)), calc(-50% - var(--stage-y))) scale(0.4) rotate(7deg);
  opacity: 0.62;
  z-index: 2;
  filter: saturate(0.85) brightness(0.96);
}
.stage-item[data-pos="left"]:hover,
.stage-item[data-pos="right"]:hover {
  opacity: 0.85;
  filter: saturate(1) brightness(1);
}
/* just recessed out of view, low on the wheel, waiting to rise up to "right" */
.stage-item[data-pos="back"] {
  transform: translate(-50%, calc(-50% + 12px)) scale(0.28);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.stage-caption {
  margin: 1.3rem 0 0;
  min-height: 1.4em;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-2);
  text-align: center;
  transition: opacity 0.22s ease;
}

.stage-dots {
  display: flex; justify-content: center; gap: 0.5rem;
  margin-top: 0.9rem;
}
.stage-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  padding: 0; cursor: pointer;
  transition: background-color 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.stage-dot:hover { transform: scale(1.2); }
.stage-dot.is-active { background: var(--sky); border-color: var(--sky); transform: scale(1.3); }
.case:nth-child(even) .stage-dot.is-active { background: var(--mint); border-color: var(--mint); }

@media (prefers-reduced-motion: reduce) {
  .stage-item { transition: opacity 0.4s linear; }
  .stage-item[data-pos] { transform: translate(-50%, -50%) scale(1); }
  .stage-item[data-pos="front"] { opacity: 1; z-index: 2; }
  .stage-item[data-pos="left"],
  .stage-item[data-pos="right"],
  .stage-item[data-pos="back"] { opacity: 0; z-index: 1; pointer-events: none; }
  .stage-item[data-pos="front"] img { animation: none; }
}

img[data-lightbox] { cursor: zoom-in; }

/* lightbox: click a marked screenshot to view it full-size over a blurred backdrop */
.lightbox {
  position: fixed; inset: 0;
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.5rem, 6vw, 4rem);
  background: rgba(20, 32, 58, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
  overflow: auto;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img {
  margin: auto;
  max-width: min(100%, 1300px);
  max-height: 82vh;
  width: auto; height: auto;
  display: block;
  border-radius: var(--r-md);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.55);
  cursor: zoom-in;
  transition: max-width 0.3s var(--ease), max-height 0.3s var(--ease);
}
.lightbox-img.zoomed {
  max-width: none; max-height: none;
  width: min(1920px, 220vw);
  cursor: zoom-out;
}
.lightbox-close {
  position: fixed; top: clamp(1rem, 3vw, 1.6rem); right: clamp(1rem, 3vw, 1.6rem);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.32);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.lightbox-close:hover { background: rgba(255,255,255,0.24); transform: scale(1.06); }

/* 17 — TENTANG KAMI ----------------------------------------- */
.about-hero { padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.about-hero .inner { max-width: 30ch; }
.about-hero h1 { margin-top: 1.2rem; max-width: 13ch; }
.about-hero .lede { margin-top: 1.2rem; max-width: 34ch; }

/* about hero: a pile of paperwork, a few sheets adrift in a gentle loop */
.docs-visual { display: flex; justify-content: center; }
.docs-visual svg { width: 100%; max-width: 300px; height: auto; }

.doc-pile-inner {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transform: scale(0.9) translateY(10px);
  transition: transform 0.35s var(--ease);
}
.docs-visual.shown .doc-pile-inner { animation: doc-pile-settle 0.5s var(--ease) forwards; }
@keyframes doc-pile-settle {
  0%   { opacity: 0; transform: scale(0.9) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.docs-visual:hover .doc-pile-inner { transform: translateY(-4px) rotate(-1deg); }

/* one sheet takes off and loops the pile forever — a paper plane on a lazy orbit */
.plane, .plane-trail { opacity: 0; transform-box: fill-box; transform-origin: center; }
.plane-trail--1 { --trail-o: 0.45; }
.plane-trail--2 { --trail-o: 0.28; }
.plane-trail--3 { --trail-o: 0.14; }

.docs-visual.shown .plane {
  animation: plane-fade-in 0.5s var(--ease) forwards, plane-fly 6s linear infinite;
}
.docs-visual.shown .plane-trail--1 { animation: trail-fade-in 0.5s var(--ease) forwards, plane-fly 6s linear infinite; animation-delay: 0.1s, 0.1s; }
.docs-visual.shown .plane-trail--2 { animation: trail-fade-in 0.5s var(--ease) forwards, plane-fly 6s linear infinite; animation-delay: 0.2s, 0.2s; }
.docs-visual.shown .plane-trail--3 { animation: trail-fade-in 0.5s var(--ease) forwards, plane-fly 6s linear infinite; animation-delay: 0.32s, 0.32s; }

@keyframes plane-fade-in { to { opacity: 1; } }
@keyframes trail-fade-in { to { opacity: var(--trail-o, 0.3); } }

/* an elliptical loop around the pile; rotation tracks the tangent so it always banks into the turn */
@keyframes plane-fly {
  0%    { transform: translate(215px, 95px) rotate(90deg); }
  12.5% { transform: translate(187.2px, 137.4px) rotate(147.8deg); }
  25%   { transform: translate(120px, 155px) rotate(180deg); }
  37.5% { transform: translate(52.8px, 137.4px) rotate(212.2deg); }
  50%   { transform: translate(25px, 95px) rotate(270deg); }
  62.5% { transform: translate(52.8px, 52.6px) rotate(327.8deg); }
  75%   { transform: translate(120px, 35px) rotate(360deg); }
  87.5% { transform: translate(187.2px, 52.6px) rotate(392.2deg); }
  100%  { transform: translate(215px, 95px) rotate(450deg); }
}

@media (prefers-reduced-motion: reduce) {
  .doc-pile-inner { opacity: 1; transform: none; animation: none !important; }
  .plane { opacity: 1; transform: translate(150px, 60px) rotate(35deg); animation: none !important; }
  .plane-trail { display: none; }
}

.story {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.story-side { position: sticky; top: calc(var(--header-h) + 2.5rem); }
.story-side .tab { margin-bottom: 1rem; }
.story-side p {
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted);
  line-height: 1.6;
}
.story-body { font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: var(--ink-2); line-height: 1.75; }
.story-body p { margin-bottom: 1.5rem; }
.story-body .drop::first-letter {
  font-family: var(--font-display);
  font-weight: 700; font-size: 3.6rem; float: left; line-height: 0.8;
  padding: 0.35rem 0.65rem 0 0; color: var(--stamp);
}
.story-body em {
  font-style: normal; background: var(--sky-wash); color: var(--sky-deep);
  padding: 0.1em 0.35em; border-radius: 4px; font-weight: 500;
}
.story-pull {
  font-family: var(--font-display);
  font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  color: var(--ink); line-height: 1.35; letter-spacing: -0.01em;
  border-left: 3px solid var(--stamp);
  padding-left: 1.4rem; margin: 2.5rem 0;
}

.vm {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem;
}
.vm-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  background: var(--white);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.vm-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.vm-card.dark { background: var(--ink); color: var(--paper); }
.vm-card .tab { margin-bottom: 1rem; }
.vm-card.dark .tab { color: #8FB4FF; }
.vm-card.dark .tab::before { background: #8FB4FF; }
.vm-card p {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.4; color: inherit;
}
.vm-list { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.vm-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.vm-list b { font-family: var(--font-mono); font-size: 0.7rem; color: var(--stamp); padding-top: 4px; }
.vm-list span { font-family: var(--font-body); font-size: 0.98rem; color: var(--ink-2); font-weight: 400; }

.values .head { max-width: 44ch; margin-bottom: 3rem; }
.values .head h2 { margin-top: 1rem; }
.value-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: padding-left 0.25s var(--ease);
}
.value-row:last-child { border-bottom: 1px solid var(--line); }
.value-row:hover { padding-left: 0.6rem; }
.value-ico {
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--paper-2); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--sky-deep);
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.value-ico svg { width: 26px; height: 26px; }
.value-row:hover .value-ico { transform: rotate(-6deg) scale(1.08); background: var(--ink); color: var(--white); }
.value-row h3 { margin-bottom: 0.4rem; }
.value-row p { color: var(--ink-2); margin: 0; max-width: 60ch; }

/* 18 — REVEAL MOTION ---------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].shown { opacity: 1; transform: none; }

[data-stamp-in] { opacity: 0; }
[data-stamp-in].shown {
  opacity: 1;
  animation: stamp-press 0.5s var(--ease) both;
}
@keyframes stamp-press {
  0%   { transform: rotate(var(--a, -4deg)) scale(1.35); opacity: 0; }
  55%  { transform: rotate(var(--a, -4deg)) scale(0.94); opacity: 1; }
  100% { transform: rotate(var(--a, -4deg)) scale(1); }
}

@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;
  }
  [data-reveal], [data-stamp-in] { opacity: 1 !important; transform: none !important; }
}

/* 19 — RESPONSIVE ------------------------------------------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .problems-intro { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .problems-visual svg { max-width: 220px; }
  .problems .head { max-width: 100%; margin-inline: auto; }
  .problems .tab { justify-content: center; }
  .approach-intro { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .approach-visual svg { max-width: 220px; }
  .approach .head { max-width: 100%; margin-inline: auto; }
  .approach .tab { justify-content: center; }
  .process-intro { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .process-visual svg { max-width: 220px; }
  .process .head { max-width: 100%; margin-inline: auto; }
  .process .tab { justify-content: center; }
  .pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 0 1.4rem; }
  .step { border-top-width: 2px; }
  .faq-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; gap: 2rem; }
  .story { grid-template-columns: 1fr; }
  .story-side { position: static; }
  .vm { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  .nav, .mast-cta .btn-sky { display: none; }
  .burger { display: flex; }
  .hero-promise { flex-direction: column; align-items: flex-start; text-align: left; }
  .transform-figure { grid-template-columns: 1fr; justify-items: center; }
  .tf-card, .tf-manual, .tf-digital { align-items: center; width: 100%; }
  .tf-card { max-width: 300px; }
  .tf-flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); width: 40px; height: 40px; }
  .ledger-item { grid-template-columns: 40px 1fr; }
  .ledger-mark { gap: 0.4rem; }
  .ledger-ico { width: 32px; height: 32px; }
  .ledger-ico svg { width: 16px; height: 16px; }
  .ledger-cost { grid-column: 2; text-align: left; padding-top: 0.4rem; }
  .steps { grid-template-columns: 1fr; }
  .step { margin-right: 0; }
  .case-facts { grid-template-columns: 1fr; }
  .case-stage { --stage-x: 78px; --stage-y: 78px; }
  .stage-track { height: clamp(220px, 66vw, 300px); max-width: 340px; }
  .stage-item { width: min(56vw, 240px); }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  .trust-strip .wrap { gap: 0.6rem 1.5rem; }
}