/* ==========================================================================
   Buyera landing — "Cetak Biru" (blueprint) visual system
   ========================================================================== */

:root {
  --navy-950: #050c1f;
  --navy-900: #0b2150;
  --navy-800: #13306b;
  --blue: #0374fe;
  --blue-soft: #7cb2ff;
  --yellow: #ffc83d;
  --paper: #eef2f8;
  --ink: #0b2150;
  --white: #ffffff;
  --muted-dark: #a3b1c9;
  --muted-light: #4a5b7a;

  --line-dark: rgba(124, 178, 255, 0.1);
  --line-dark-major: rgba(124, 178, 255, 0.2);
  --line-light: rgba(11, 33, 80, 0.07);
  --line-light-major: rgba(11, 33, 80, 0.14);

  --f-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --f-hand: "Caveat", "Comic Sans MS", cursive;

  --r-ctl: 10px;
  --r-card: 18px;
  --nav-h: 72px;
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy-900);
  color: var(--white);
  font: 400 18px/1.6 var(--f-body);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
mark { background: none; color: inherit; }
section[id] { scroll-margin-top: var(--nav-h); }

/* Grain (blueprint paper texture) */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: var(--r-ctl);
  background: var(--yellow); color: var(--ink); font-weight: 700;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Blueprint grid */
.grid-bg {
  background-color: var(--navy-900);
  background-image:
    linear-gradient(var(--line-dark-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark-major) 1px, transparent 1px),
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  background-position: -1px -1px;
}
.paper { background-color: var(--paper); color: var(--ink); }
.grid-bg--light {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--line-light-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-light-major) 1px, transparent 1px),
    linear-gradient(var(--line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
}

[hidden] { display: none !important; }

/* ---------- type ---------- */
.h2 {
  font: 700 clamp(2.5rem, 7vw, 6.5rem)/0.95 var(--f-display);
  font-variation-settings: "wdth" 85, "opsz" 96;
  letter-spacing: -0.015em;
  max-width: 14ch;
  text-wrap: balance;
}
.h2 em { font-style: normal; color: var(--blue-soft); }
.h2--ink { color: var(--ink); }
.lead { margin-top: 20px; max-width: 58ch; color: var(--muted-dark); font-size: clamp(1rem, 1.4vw, 1.2rem); }
.lead--ink { color: var(--muted-light); }

/* Handwritten yellow annotations */
.note, .eyebrow-note {
  font: 700 clamp(1.3rem, 2vw, 1.75rem)/1.1 var(--f-hand);
  color: var(--yellow);
  transform: rotate(-4deg);
}
.eyebrow-note { color: var(--blue); margin-bottom: 18px; display: inline-block; }

/* Dimension lines */
.dim { width: 100%; height: 10px; overflow: visible; }
.dim path { fill: none; stroke: var(--blue-soft); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* Hand-drawn scribbles */
.scribble { position: absolute; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke: var(--yellow); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 1rem/1 var(--f-body); white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s; /* no transform: GSAP owns it (CSS transition breaks from-tweens) */
}
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #ffd666; }
.btn--ghost { border: 1.5px solid rgba(255, 255, 255, 0.4); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 0.9rem; }
.btn--lg { min-height: 58px; padding: 0 28px; font-size: 1.05rem; }
.btn--xl { min-height: 68px; padding: 0 36px; font-size: 1.15rem; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- progress + cursor ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 90; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }

.cursor {
  position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--yellow); mix-blend-mode: normal;
  display: none; place-items: center;
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), margin 0.25s var(--ease-out);
}
.cursor__label { font: 700 0.8rem var(--f-body); color: var(--ink); opacity: 0; transition: opacity 0.2s; }
.cursor.is-big { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.cursor.is-big .cursor__label { opacity: 1; }
.has-cursor .cursor { display: grid; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 80; height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
  padding-inline: var(--gutter);
  transition: background-color 0.3s, transform 0.4s var(--ease-out), border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(5, 12, 31, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-dark-major); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-weight: 600; font-size: 0.95rem; }
.nav__links a { color: var(--muted-dark); transition: color 0.2s; padding: 8px 0; }
.nav__links a:hover { color: var(--white); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: calc(var(--nav-h) + 40px) 0 80px; }
.hero { --device-w: clamp(200px, 20vw, 290px); --device-right: clamp(20px, 6vw, 120px); }
.hero__inner { position: relative; z-index: 2; }
/* Desktop: keep the headline clear of the phone on the right, whatever the viewport height. */
@media (min-width: 1024px) {
  .hero__inner { padding-right: calc(var(--device-w) + var(--device-right) + 48px); }
}
.hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.045em;
}
.hero__line { display: block; }
.hero__line--small { font-size: clamp(2.6rem, 7vw, 6.5rem); font-variation-settings: "wdth" 90, "opsz" 96; color: var(--muted-dark); font-weight: 600; }
.hero__line--big { font-size: clamp(4.2rem, min(15vw, 21vh), 14rem); font-variation-settings: "wdth" var(--wdth, 100), "opsz" 96; }
.hero__kecil { position: relative; display: inline-block; font-size: 0.62em; transform: rotate(-3deg) translateY(-0.12em); }
.dim--mini { position: absolute; left: 0; right: 8%; bottom: -0.25em; }
.hero__besar { position: relative; display: inline-block; color: var(--white); }
.scribble--circle { inset: -10% -6% -14% -6%; width: 112%; height: 124%; }
.note--hero { position: relative; margin: 6px 0 0 clamp(120px, 34vw, 520px); }

.hero__bottom { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: 28px; max-width: 640px; }
.hero__sub { color: var(--muted-dark); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__device {
  position: absolute; z-index: 1;
  right: var(--device-right); bottom: clamp(70px, 10vh, 120px);
  width: var(--device-w);
}
.sketch-phone { position: relative; aspect-ratio: 1 / 2; }
.sketch-phone__frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; overflow: visible; }
.sketch-phone__frame rect { fill: none; stroke: var(--white); stroke-width: 2; vector-effect: non-scaling-stroke; }
.sketch-phone__screen, .sketch-phone__wire {
  position: absolute; inset: 3.4% 4%; border-radius: 12% / 6%; overflow: hidden;
}
.sketch-phone__screen { z-index: 2; background: var(--paper); }
.sketch-phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 0; } /* right edge = order panel */
.sketch-phone__wire { z-index: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: min-content; gap: 8%; padding: 18% 9%; align-content: start; }
.sketch-phone__wire i { aspect-ratio: 1; border: 1.5px dashed rgba(255, 255, 255, 0.45); border-radius: 10px; }
.note--device { position: absolute; right: calc(100% + 44px); top: 36%; z-index: 4; width: max-content; text-align: right; }
.note--device::after {
  content: ""; position: absolute; right: -40px; top: 60%; width: 34px; height: 2px;
  background: var(--yellow); transform: rotate(14deg);
}

.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 28px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted-dark);
}
.hero__scroll span { width: 1px; height: 36px; background: linear-gradient(var(--blue-soft), transparent); }

/* ---------- stats ---------- */
.stats { background: var(--navy-950); padding: clamp(56px, 8vw, 96px) 0; border-block: 1px solid var(--line-dark-major); }
.stats__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px); }
.stat__num { font: 800 clamp(3.5rem, 8vw, 7rem)/0.9 var(--f-display); font-variation-settings: "wdth" 80, "opsz" 96; letter-spacing: -0.04em; }
.stat .dim { margin: 14px 0 12px; }
.stat__label { color: var(--muted-dark); font-weight: 600; font-size: 0.98rem; max-width: 18ch; }

/* ---------- mission ---------- */
.mission { padding: clamp(96px, 14vw, 200px) 0; }
.mission__text {
  font: 700 clamp(2rem, 5vw, 4.4rem)/1.08 var(--f-display);
  font-variation-settings: "wdth" 88, "opsz" 72;
  letter-spacing: -0.03em; max-width: 22ch;
}
.mission__text mark { background: linear-gradient(transparent 58%, rgba(255, 200, 61, 0.75) 58%); padding: 0 0.06em; }

/* ---------- scene ---------- */
.scene { padding: clamp(96px, 12vw, 160px) 0; }
.scene__pin { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; min-height: calc(100svh - var(--nav-h)); }
.scene__steps { margin-top: 44px; display: grid; gap: 26px; }
.scene__steps li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; transition: opacity 0.4s; }
@media (min-width: 1024px) {
  .anim .scene__steps li { opacity: 0.38; }
  .anim .scene__steps li.is-active { opacity: 1; }
}
.scene__num { font: 800 1.4rem/1 var(--f-display); color: var(--blue-soft); padding-top: 4px; border-top: 1.5px solid var(--blue-soft); }
.scene__steps h3 { font: 700 1.5rem/1.2 var(--f-display); }
.scene__steps p { color: var(--muted-dark); margin-top: 6px; max-width: 40ch; }

.scene__stage { position: relative; aspect-ratio: 1.25; }
.dev { position: absolute; }
.dev__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 3; }
.dev__frame rect, .dev__frame path { fill: none; stroke: var(--white); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.dev--laptop { left: 0; top: 4%; width: 88%; aspect-ratio: 640 / 420; }
.dev--phone { right: 0; bottom: 0; width: 27%; aspect-ratio: 1 / 2; }
.dev__screen { position: absolute; overflow: hidden; }
.dev__screen--laptop { left: 7.2%; top: 3.4%; width: 85.6%; height: 79%; border-radius: 10px; }
.dev__screen--phone { inset: 2.6% 4.5%; border-radius: 22px; }
.dev__wire { position: absolute; inset: 0; display: grid; gap: 6%; padding: 7%; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
.dev__wire i { border: 1.5px dashed rgba(255, 255, 255, 0.45); border-radius: 8px; }
.dev__screen--laptop .w-a { grid-column: 1 / -1; }
.dev__screen--laptop .w-b, .dev__screen--laptop .w-c { grid-column: span 2; grid-row: span 2; }
.dev__screen--phone .dev__wire { grid-template-columns: 1fr; }
.dev__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.dev__screen--phone .dev__shot { object-position: 60% 50%; }
.note--scene { position: absolute; left: 6%; bottom: -2%; }

/* ---------- pillars ---------- */
.pillars { padding: clamp(96px, 12vw, 160px) 0; }
.pillars__grid { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.sheet {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px 72px; border-radius: var(--r-card);
  background-color: var(--navy-900); color: var(--white);
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 24px 24px;
  transition: transform 0.4s var(--ease-out);
}
.sheet:hover { transform: translateY(-8px) rotate(-0.8deg); }
.sheet__sketch { width: 64%; height: auto; margin-bottom: 26px; overflow: visible; }
.sheet__sketch path { fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sheet:hover .sheet__sketch path { stroke: var(--yellow); }
.sheet__no { font: 800 1rem/1 var(--f-display); color: var(--blue-soft); }
.sheet__title { margin-top: 10px; font: 700 clamp(1.7rem, 2.4vw, 2.2rem)/1.05 var(--f-display); letter-spacing: -0.02em; }
.sheet__list { margin-top: 18px; display: grid; gap: 8px; }
.sheet__list li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.sheet__list li::before { content: ""; width: 14px; height: 1.5px; background: var(--blue-soft); }
.sheet__eg { margin-top: 18px; color: var(--muted-dark); font-size: 0.95rem; }

.titleblock {
  position: absolute; right: 16px; bottom: 16px;
  display: grid; grid-template-columns: auto auto;
  border: 1px solid var(--line-dark-major);
  font: 700 0.62rem/1 var(--f-body); letter-spacing: 0.12em; color: var(--muted-dark);
}
.titleblock span { padding: 7px 9px; }
.titleblock span + span { border-left: 1px solid var(--line-dark-major); }

.pillars__foot { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.pillars__foot .chips { margin-top: 0; }
.chips { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-light-major); font-weight: 700; font-size: 0.9rem; }
.chips--dark li { border-color: var(--line-dark-major); color: var(--muted-dark); }


/* ---------- projects ---------- */
.projects { background: var(--navy-950); padding: clamp(96px, 12vw, 160px) 0 clamp(64px, 8vw, 120px); }
.projects__cta { margin-top: clamp(32px, 5vw, 56px); }
.projects__list {
  display: flex; margin-top: clamp(48px, 7vw, 96px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.projects__list::-webkit-scrollbar { display: none; }
.projects__list:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 4px; }
.projects__nav { margin-top: clamp(24px, 3vw, 36px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.projects__nav[hidden] { display: none; }
.projects__count { font: 700 0.85rem/1 var(--f-body); letter-spacing: 0.14em; color: var(--blue-soft); }
.projects__btns { display: flex; gap: 12px; }
.proj-btn {
  width: 52px; height: 52px; display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 1.5px solid var(--line-dark-major); background: transparent; color: var(--white);
  transition: border-color 0.2s, background-color 0.2s, opacity 0.2s;
}
.proj-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.proj-btn:hover:not(:disabled) { border-color: var(--blue-soft); background-color: rgba(3, 116, 254, 0.14); }
.proj-btn:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; }
.proj-btn:disabled { opacity: 0.3; cursor: default; }
.proj {
  position: relative; flex: 0 0 100%; scroll-snap-align: start; margin-top: 0;
  border-block: 1px solid var(--line-dark-major);
  background-color: var(--navy-900);
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 32px 32px;
}
.proj__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; min-height: min(100svh, 920px); padding-block: clamp(56px, 8vw, 96px); }
.proj__meta { font: 700 0.72rem/1.4 var(--f-body); letter-spacing: 0.14em; color: var(--blue-soft); }
.proj__name { margin-top: 14px; font: 800 clamp(2.8rem, 6vw, 5.6rem)/0.92 var(--f-display); font-variation-settings: "wdth" 82, "opsz" 96; letter-spacing: -0.04em; }
.proj__tagline { margin-top: 18px; color: var(--muted-dark); font-size: 1.12rem; max-width: 44ch; }
.proj__ps { margin-top: 28px; display: grid; gap: 14px; }
.proj__ps div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line-dark-major); }
.proj__ps dt { font-weight: 700; color: var(--yellow); font-size: 0.92rem; }
.proj__ps dd { color: var(--white); }
.proj__features { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.proj__features li { display: flex; gap: 10px; font-size: 0.96rem; font-weight: 600; color: var(--muted-dark); }
.proj__features li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.55em; border-radius: 2px; background: var(--accent, var(--blue)); }
.proj__platforms { margin-top: 22px; }
.proj__links { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.proj__links:empty { display: none; }
.titleblock--proj { right: var(--gutter); bottom: 18px; }

.proj__stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); align-items: start; }
.pdev { position: relative; margin: 0; }
.pdev--desktop { aspect-ratio: 16 / 10; }
.pdev--tablet { aspect-ratio: 3 / 4; }
.pdev--mobile { aspect-ratio: 1 / 2; }
/* first screen is the hero shot; the rest sit underneath as a pair */
.pdev:first-child { grid-column: 1 / -1; }
/* phone frames keep a phone width; without this the 1:2 box stretches to the full stage width */
.pdev--mobile { justify-self: center; width: min(100%, 300px); }
.pdev--mobile:first-child { width: min(100%, 320px); }
.pdev:nth-child(2) { transform: rotate(-1.5deg); }
.pdev:nth-child(3) { transform: rotate(1.5deg) translateY(12px); }
.pdev--mobile:not(:first-child), .pdev--tablet:not(:first-child) { justify-self: center; width: 62%; }
.pdev__frame { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); overflow: visible; z-index: 4; pointer-events: none; }
.pdev__frame rect { fill: none; stroke: var(--white); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pdev__screen { position: absolute; inset: 0; overflow: hidden; border-radius: 12px; background: var(--navy-950); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.pdev--mobile .pdev__screen { border-radius: 22px; }
.pdev__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.pdev__img--blue { filter: grayscale(1) contrast(1.6) brightness(1.15); mix-blend-mode: screen; opacity: 0.55; }
.pdev__blue-tint { position: absolute; inset: 0; background: var(--navy-900); mix-blend-mode: multiply; }
.pdev__img--color { clip-path: inset(0 0 0 0); }
.pdev__scan { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--accent, var(--blue)); box-shadow: 0 0 18px 4px var(--accent, var(--blue)); opacity: 0; z-index: 3; }

.pnote { position: absolute; z-index: 5; font: 700 1.35rem/1 var(--f-hand); color: var(--yellow); white-space: nowrap; transform: translate(-50%, -140%) rotate(-4deg); }
.pnote::after { content: ""; position: absolute; left: 50%; top: 115%; width: 2px; height: 26px; background: var(--yellow); transform: rotate(-12deg); }
.pnote::before { content: ""; position: absolute; left: calc(50% - 7px); top: calc(115% + 26px); width: 14px; height: 14px; border: 2px solid var(--yellow); border-radius: 50%; }

/* ---------- solutions ---------- */
.solutions { padding: clamp(56px, 7vw, 96px) 0; overflow: hidden; }
.marquee { margin-bottom: clamp(56px, 8vw, 96px); display: grid; gap: 8px; }
.marquee__row { display: flex; width: max-content; gap: 0.6em; font: 800 clamp(3rem, 9vw, 8rem)/1 var(--f-display); font-variation-settings: "wdth" 78, "opsz" 96; letter-spacing: -0.04em; color: var(--ink); will-change: transform; }
.marquee__row span { display: inline-flex; align-items: center; gap: 0.6em; }
.marquee__row span::after { content: ""; width: 0.22em; height: 0.22em; border-radius: 50%; background: var(--blue); }
.marquee__row--outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); letter-spacing: 0; }
.marquee__row--outline span::after { background: var(--yellow); }


/* ---------- pricing ---------- */
.pricing { padding: clamp(96px, 12vw, 160px) 0; }
.price-grid { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.price {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px 76px; border-radius: var(--r-card);
  background: rgba(5, 12, 31, 0.55); border: 1.5px solid var(--line-dark-major);
}
.price--popular { border-color: var(--blue-soft); background: rgba(19, 48, 107, 0.6); }
.price__badge { position: absolute; top: -18px; right: 22px; font: 700 1.4rem/1 var(--f-hand); color: var(--yellow); transform: rotate(4deg); }
.price__badge::before { content: ""; position: absolute; inset: -10px -14px; border: 2px solid var(--yellow); border-radius: 50%; transform: rotate(-6deg); }
.price__name { font: 700 1.7rem/1.1 var(--f-display); letter-spacing: -0.02em; }
.price__for { margin-top: 8px; color: var(--muted-dark); font-size: 0.98rem; min-height: 3.2em; }
.price__list { margin-top: 20px; display: grid; gap: 10px; font-weight: 600; font-size: 0.96rem; }
.price__list li { display: flex; gap: 10px; }
.price__list li::before { content: "✓"; color: var(--blue-soft); font-weight: 800; }
.price__amount { margin-top: auto; padding-top: 22px; border-top: 1px dashed var(--line-dark-major); }
.price__amount small { display: block; color: var(--muted-dark); font-size: 0.85rem; font-weight: 600; }
.price__amount strong { display: block; margin-top: 4px; font: 800 clamp(1.9rem, 3vw, 2.5rem)/1 var(--f-display); letter-spacing: -0.03em; }
.price .btn { margin-top: 20px; width: 100%; }

/* ---------- final ---------- */
.final { position: relative; background: var(--navy-950); padding: clamp(120px, 16vw, 220px) 0; overflow: hidden; text-align: center; }
.final__grid { position: absolute; inset: 0; background-color: transparent; opacity: 0.7; }
.final__inner { position: relative; display: grid; justify-items: center; gap: 8px; }
.final__title { font: 800 clamp(3.4rem, 11vw, 11rem)/0.88 var(--f-display); font-variation-settings: "wdth" 80, "opsz" 96; letter-spacing: -0.015em; max-width: 12ch; }
.final__word { color: var(--yellow); display: inline-block; }
.final__word .char { display: inline-block; transition: font-variation-settings 0.3s var(--ease-out), transform 0.3s var(--ease-out); }
.final .lead { margin: 22px auto 30px; }
.final .hero__cta { justify-content: center; }

/* ---------- footer ---------- */
.footer { background: var(--navy-950); border-top: 1px solid var(--line-dark-major); padding-top: 72px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer__logo { height: 38px; width: auto; }
.footer__tag { margin-top: 14px; color: var(--muted-dark); }
.footer h3 { font: 700 0.95rem/1 var(--f-body); color: var(--white); margin-bottom: 14px; }
.footer nav { display: grid; gap: 10px; align-content: start; }
.footer nav a, .footer__top-btn { color: var(--muted-dark); font-size: 0.95rem; text-align: left; padding: 2px 0; }
.footer nav a:hover, .footer__top-btn:hover { color: var(--white); }
.footer__copy { margin-top: 56px; color: var(--muted-dark); font-size: 0.88rem; }
.footer__word { font: 800 clamp(6rem, 26vw, 26rem)/0.8 var(--f-display); font-variation-settings: "wdth" 75, "opsz" 96; letter-spacing: 0; text-align: center; color: transparent; -webkit-text-stroke: 1.5px var(--line-dark-major); margin: 24px 0 -0.18em; user-select: none; }

/* ---------- floating WhatsApp (mobile) ---------- */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 85;
  width: 58px; height: 58px; border-radius: 50%; display: none; place-items: center;
  background: var(--yellow); color: var(--ink); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.5);
  transform: translateY(120px); transition: transform 0.4s var(--ease-out);
}
.fab .ico { width: 26px; height: 26px; }
.fab.is-shown { transform: none; }

/* ==========================================================================
   Motion initial states — only when JS enables animation (html.anim)
   Without JS or with reduced motion, everything renders in its final state.
   ========================================================================== */
.anim [data-draw] path, .anim [data-draw] rect { stroke-dasharray: 1; stroke-dashoffset: 1; }
.anim .sketch-phone__screen { clip-path: inset(0 100% 0 0); }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { align-items: flex-start; }
  .hero__device { position: relative; right: auto; bottom: auto; margin: 48px auto 0; width: min(220px, 56vw); }
  .hero { flex-direction: column; }
  .note--device { display: none; }
  .note--hero { margin-left: 40%; }
  .stats__row { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .scene__pin, .proj__inner { grid-template-columns: 1fr; }
  .scene__pin { min-height: 0; }
  .pillars__grid, .price-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .fab { display: grid; }
  .proj__inner { min-height: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav .btn span { display: none; }
  .nav .btn { width: 44px; padding: 0; }
  .hero__cta .btn { width: 100%; }
  .proj__features { grid-template-columns: 1fr; }
  .proj__stage { min-height: 260px; }
  .proj__stage { grid-template-columns: 1fr; }
  .pdev:nth-child(n + 2) { display: none; }
  .pnote { display: none; }
  .titleblock { display: none; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .cursor { display: none !important; }
}
