/* =============================================================================
   DAM STUDIO — styles.css
   Digital Anak Merdeka · portfolio experience
   Sections: 1 Reset · 2 Tokens/Themes · 3 Typography · 4 Layout primitives
   5 Buttons · 6 Cursor · 7 Loader · 8 Nav · 9 Hero · 10 Work intro
   11 Portfolio · 12 Capabilities · 13 About · 14 CTA · 15 Footer
   16 Reveal · 17 Reduced motion · 18 Responsive
   ========================================================================== */

/* ------------------------------- 1 · RESET ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .6s ease, color .6s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------- 2 · TOKENS / THEMES ------------------------- */
:root {
  /* type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* radius */
  --r-sm: 10px; --r: 16px; --r-lg: 22px; --r-xl: 30px;

  /* spacing rhythm (8pt) */
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(80px, 11vw, 160px);
  --maxw: 1240px;

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* LIGHT THEME (canonical / default) */
  --bg: #eef1f8;
  --bg-2: #e6ebf6;
  --surface: #ffffff;
  --surface-2: #f6f8fd;
  --ink: #0b1730;
  --ink-soft: #45527a;
  --ink-faint: #8b97b6;
  --line: rgba(11, 30, 74, .10);
  --line-2: rgba(11, 30, 74, .16);
  --brand: #0b4cc4;
  --brand-deep: #082559;
  --brand-bright: #2e6bff;
  --accent: #3b7bff;
  --on-brand: #ffffff;
  --glow: rgba(59, 123, 255, .30);
  --grid: rgba(11, 76, 196, .06);
  --grid-2: rgba(11, 76, 196, .10);
  --shadow-1: 0 1px 2px rgba(11,30,74,.05), 0 8px 24px rgba(11,30,74,.06);
  --shadow-2: 0 20px 48px rgba(11,30,74,.12), 0 4px 12px rgba(11,30,74,.06);
  --shadow-3: 0 40px 90px rgba(9,25,66,.18);
  --chrome: #f1f4fa;
  --scrim: rgba(238,241,248,.72);
}
[data-theme="dark"] {
  --bg: #070b16;
  --bg-2: #0a1020;
  --surface: #0e1526;
  --surface-2: #121b30;
  --ink: #e9eefb;
  --ink-soft: #a6b3d2;
  --ink-faint: #64729a;
  --line: rgba(140, 168, 235, .12);
  --line-2: rgba(140, 168, 235, .22);
  --brand: #2e6bff;
  --brand-deep: #0a2a66;
  --brand-bright: #5b8bff;
  --accent: #4c86ff;
  --on-brand: #ffffff;
  --glow: rgba(76, 134, 255, .34);
  --grid: rgba(90, 140, 255, .07);
  --grid-2: rgba(90, 140, 255, .12);
  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  --shadow-2: 0 24px 60px rgba(0,0,0,.55);
  --shadow-3: 0 50px 100px rgba(0,0,0,.65);
  --chrome: #0b1324;
  --scrim: rgba(7,11,22,.72);
}

/* ---------------------------- 3 · TYPOGRAPHY ----------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -.02em; }
.display {
  font-size: clamp(2.6rem, 7.2vw, 6.1rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .98;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brand);
}
[data-theme="dark"] .eyebrow { color: var(--brand-bright); }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--ink-soft); max-width: 46ch; }
.mono { font-family: var(--font-mono); }

/* ------------------------- 4 · LAYOUT PRIMITIVES ------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: 62ch; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-top: 14px; }
.section-head .lede { margin-top: 20px; }
.divider { height: 1px; background: var(--line); border: 0; }

/* --------------------------------- 5 · CTA ------------------------------- */
.btn {
  --pad-y: 15px; --pad-x: 26px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  border-radius: 999px;
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 30px -8px var(--glow); }
.btn--primary:hover { background: var(--brand-bright); box-shadow: 0 16px 40px -8px var(--glow); }
.btn--primary:hover svg { transform: translateX(3px) translateY(-3px); }
.btn--ghost { border: 1.5px solid var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
[data-theme="dark"] .btn--ghost:hover { color: var(--brand-bright); border-color: var(--brand-bright); }
.arrow-ne { transform: none; }

/* ------------------------------ 6 · CURSOR ------------------------------- */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; mix-blend-mode: normal; }
.cursor { width: 7px; height: 7px; background: var(--brand-bright); transform: translate(-50%, -50%); }
.cursor-ring {
  width: 38px; height: 38px; border: 1.5px solid var(--brand-bright);
  transform: translate(-50%, -50%); opacity: .5;
  transition: width .28s var(--ease), height .28s var(--ease), opacity .28s var(--ease), background-color .28s var(--ease);
}
.cursor-ring.is-active { width: 66px; height: 66px; opacity: 1; background: color-mix(in srgb, var(--brand-bright) 12%, transparent); }
.cursor-ring .cursor-label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-bright); opacity: 0; transition: opacity .2s var(--ease);
}
.cursor-ring.has-label .cursor-label { opacity: 1; }
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button { cursor: none; }

/* ------------------------------ 7 · LOADER ------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 22px; }
.loader__mark { width: auto; height: 44px; animation: floaty 2.4s var(--ease) infinite; }
.loader__bar { width: 160px; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 40%; background: var(--brand); border-radius: 2px; animation: load 1.1s var(--ease-out) infinite; }
@keyframes load { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* -------------------------------- 8 · NAV -------------------------------- */
.nav {
  position: fixed; inset: 14px var(--gutter) auto; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  max-width: calc(var(--maxw) - 0px); margin-inline: auto;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: var(--shadow-1);
  transition: transform .5s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.nav.is-hidden { transform: translateY(-140%); }
.nav.is-scrolled { box-shadow: var(--shadow-2); }
.nav__brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
.nav__brand .mark { width: auto; height: 22px; display: block; }
.nav__brand b { font-weight: 600; }
.nav__brand span { color: var(--ink-faint); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 9px 15px; border-radius: 999px; font-size: .92rem; color: var(--ink-soft);
  position: relative; transition: color .25s var(--ease), background-color .25s var(--ease);
}
.nav__links a:hover, .nav__links a.is-current { color: var(--ink); background: var(--surface-2); }
.nav__right { display: flex; align-items: center; gap: 8px; }
.nav__cta { padding: 10px 18px; font-size: .9rem; }

/* theme toggle */
.theme-toggle {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-soft); transition: color .3s var(--ease), border-color .3s var(--ease), transform .5s var(--ease);
}
.theme-toggle:hover { color: var(--brand); border-color: var(--line-2); }
.theme-toggle svg { width: 19px; height: 19px; transition: transform .6s var(--ease), opacity .3s var(--ease); }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* mobile menu button */
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); }
.nav__burger span { display: block; width: 17px; height: 1.6px; background: var(--ink); margin: 3.4px auto; transition: transform .4s var(--ease), opacity .3s var(--ease); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 850; display: grid; align-content: center; gap: 6px;
  padding: var(--gutter);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display); font-size: clamp(2.2rem, 11vw, 3.6rem); font-weight: 600;
  letter-spacing: -.03em; padding: 10px 0; color: var(--ink);
  transform: translateY(18px); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.mobile-menu.is-open a { transform: none; opacity: 1; }
.mobile-menu a:nth-child(1) { transition-delay: .06s; }
.mobile-menu a:nth-child(2) { transition-delay: .12s; }
.mobile-menu a:nth-child(3) { transition-delay: .18s; }
.mobile-menu a:nth-child(4) { transition-delay: .24s; }
.mobile-menu .mm-index { font-family: var(--font-mono); font-size: .8rem; color: var(--brand); margin-right: 14px; letter-spacing: .1em; }

/* -------------------------------- 9 · HERO ------------------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
  padding-top: 120px; padding-bottom: 80px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: -2px;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(120% 90% at 70% 20%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 20%, #000 30%, transparent 78%);
  animation: gridDrift 32s linear infinite;
}
@keyframes gridDrift { to { background-position: 54px 54px; } }
.hero__glow {
  position: absolute; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  top: -18%; right: -10%;
  background: radial-gradient(circle, var(--glow), transparent 62%);
  filter: blur(20px);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 72px); align-items: center; width: 100%; }

.hero__eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-bright); box-shadow: 0 0 0 4px var(--glow); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px var(--glow); } 50% { box-shadow: 0 0 0 8px transparent; } }
.hero h1 { margin-bottom: 26px; }
.hero h1 .accent { color: var(--brand); }
[data-theme="dark"] .hero h1 .accent { color: var(--brand-bright); }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; transform: translateY(102%); }
.hero.is-ready h1 .line > span { transform: none; transition: transform .9s var(--ease); }
.hero.is-ready h1 .line:nth-child(2) > span { transition-delay: .09s; }
.hero.is-ready h1 .line:nth-child(3) > span { transition-delay: .18s; }
.hero__sub { max-width: 40ch; margin-bottom: 36px; opacity: 0; transform: translateY(14px); }
.hero.is-ready .hero__sub { opacity: 1; transform: none; transition: opacity .8s var(--ease) .35s, transform .8s var(--ease) .35s; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; transform: translateY(14px); }
.hero.is-ready .hero__actions { opacity: 1; transform: none; transition: opacity .8s var(--ease) .48s, transform .8s var(--ease) .48s; }

/* hero 3D browser cluster (the signature) */
.hero__stage { position: relative; height: min(62vh, 520px); perspective: 1400px; opacity: 0; }
.hero.is-ready .hero__stage { opacity: 1; transition: opacity 1s var(--ease) .3s; }
.stage__scene { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .2s ease-out; }
.panel {
  position: absolute; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-3);
  overflow: hidden; transform-style: preserve-3d;
}
.panel__bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: var(--chrome); border-bottom: 1px solid var(--line); }
.panel__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.panel__bar i:first-child { background: var(--brand); }
.panel__url { margin-left: 10px; height: 12px; flex: 1; max-width: 160px; border-radius: 6px; background: var(--surface-2); }
.panel__body { padding: 20px; display: grid; gap: 12px; }
.panel__body .l { height: 12px; border-radius: 6px; background: var(--line-2); }
.panel__body .l.w1 { width: 82%; height: 22px; background: color-mix(in srgb, var(--brand) 40%, var(--line-2)); }
.panel__body .l.w2 { width: 60%; }
.panel__body .l.w3 { width: 72%; }
.panel__body .chip { width: 96px; height: 34px; border-radius: 999px; background: var(--brand); margin-top: 6px; }
.panel--main { width: 66%; height: 74%; left: 8%; top: 12%; transform: translateZ(60px); z-index: 3; }
.panel--back {
  width: 52%; height: 58%; right: 2%; top: 2%; transform: translateZ(-40px) rotateY(-8deg);
  z-index: 1; opacity: .92;
}
.panel--back .panel__body .l.w1 { background: color-mix(in srgb, var(--accent) 55%, var(--line-2)); }
.panel--chip {
  z-index: 4; right: 6%; bottom: 7%; width: 216px; min-height: 90px; padding: 16px 18px;
  display: grid; align-content: center; gap: 7px; transform: translateZ(110px);
  background: var(--surface); border-radius: 16px;
}
.panel--chip .k { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .14em; color: var(--ink-faint); text-transform: uppercase; white-space: nowrap; }
.panel--chip .v { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.1; color: var(--brand); white-space: nowrap; }
[data-theme="dark"] .panel--chip .v { color: var(--brand-bright); }
.panel__glare { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, color-mix(in srgb, var(--brand-bright) 22%, transparent) 50%, transparent 60%); mix-blend-mode: screen; opacity: .5; pointer-events: none; }

.scroll-cue { position: absolute; left: var(--gutter); bottom: 26px; z-index: 3; display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }
.scroll-cue .rail { width: 26px; height: 40px; border: 1.5px solid var(--line-2); border-radius: 14px; position: relative; }
.scroll-cue .rail::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; border-radius: 3px; background: var(--brand); transform: translateX(-50%); animation: scrolly 1.8s var(--ease) infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------------------------- 10 · WORK INTRO ---------------------------- */
.intro { border-top: 1px solid var(--line); }
.intro__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: end; }
.intro h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
.intro__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-1); }
.stat .n { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--brand); line-height: 1; }
[data-theme="dark"] .stat .n { color: var(--brand-bright); }
.stat .l { margin-top: 10px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------------------------- 11 · PORTFOLIO ----------------------------- */
.work__cat { display: flex; align-items: baseline; gap: 18px; margin: clamp(40px,6vw,72px) 0 34px; }
.work__cat h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.work__cat .count { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-faint); }
.work__cat .rule { flex: 1; height: 1px; background: var(--line); align-self: center; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 2.4vw, 30px); }

/* artifact = a project as a 3D browser object */
.artifact { grid-column: span 6; position: relative; }
.artifact--featured { grid-column: span 12; }
.artifact__link { display: block; }
.artifact__stage { perspective: 1200px; }
.browser {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-1);
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  will-change: transform;
}
.artifact__link:hover .browser, .artifact__link:focus-visible .browser { box-shadow: var(--shadow-2); }
.browser__bar { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: var(--chrome); border-bottom: 1px solid var(--line); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.browser__bar i:first-child { background: var(--tint, var(--brand)); }
.browser__url {
  margin-left: 12px; flex: 1; max-width: 320px; height: 22px; border-radius: 6px;
  background: var(--surface-2); display: flex; align-items: center; padding: 0 12px;
  font-family: var(--font-mono); font-size: .68rem; color: var(--ink-faint); overflow: hidden; white-space: nowrap;
}
.browser__url svg { width: 11px; height: 11px; margin-right: 7px; opacity: .6; flex: none; }
.browser__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); transform: translateZ(1px); }
.browser__shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease); }
.browser__fallback { position: absolute; inset: 0; display: none; place-items: center; background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
.browser__fallback span { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--tint, var(--brand)); opacity: .5; }
.browser__shot.is-broken { display: none; }
.browser__shot.is-broken + .browser__fallback { display: grid; }
.artifact__link:hover .browser__shot { transform: scale(1.035); }
.browser__glow { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none;
  background: radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, var(--tint, var(--brand)) 26%, transparent), transparent 70%); }
.artifact__link:hover .browser__glow { opacity: .5; }

.artifact__meta { margin-top: 22px; display: grid; gap: 8px; }
.artifact__tags { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.artifact__tags .badge { display: inline-flex; align-items: center; gap: 7px; }
.artifact__tags .badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tint, var(--brand)); }
.artifact__name { font-size: clamp(1.25rem, 2.1vw, 1.6rem); letter-spacing: -.02em; transition: color .3s var(--ease); }
.artifact__link:hover .artifact__name { color: var(--brand); }
[data-theme="dark"] .artifact__link:hover .artifact__name { color: var(--brand-bright); }
.artifact__desc { color: var(--ink-soft); font-size: .98rem; max-width: 52ch; }
.artifact__visit { margin-top: 6px; display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: .92rem; color: var(--brand); }
[data-theme="dark"] .artifact__visit { color: var(--brand-bright); }
.artifact__visit svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.artifact__link:hover .artifact__visit svg { transform: translate(3px, -3px); }

/* featured internal layout */
.artifact--featured .artifact__link { display: grid; grid-template-columns: 1.35fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.artifact--featured .artifact__meta { margin-top: 0; gap: 14px; }
.artifact--featured .artifact__name { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.artifact--featured .artifact__desc { font-size: 1.06rem; }
.artifact--featured .browser__screen { aspect-ratio: 16 / 10; }
.artifact--featured .ftag { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brand); }
[data-theme="dark"] .artifact--featured .ftag { color: var(--brand-bright); }

/* --------------------------- 12 · CAPABILITIES --------------------------- */
.caps { border-top: 1px solid var(--line); background: var(--bg-2); }
.caps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cap { background: var(--surface); padding: clamp(26px, 3vw, 40px); position: relative; transition: background-color .4s var(--ease); }
.cap:hover { background: var(--surface-2); }
.cap__no { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-faint); letter-spacing: .1em; }
.cap h4 { font-size: 1.28rem; margin: 18px 0 12px; }
.cap p { color: var(--ink-soft); font-size: .96rem; }
.cap__line { position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--brand); transition: width .5s var(--ease); }
.cap:hover .cap__line { width: 100%; }

/* ------------------------------- 13 · ABOUT ------------------------------ */
.about__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.about h2 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); }
.about__body p { font-size: clamp(1.1rem, 1.8vw, 1.45rem); color: var(--ink); line-height: 1.5; max-width: 40ch; }
.about__body p + p { margin-top: 22px; color: var(--ink-soft); font-size: clamp(1rem,1.4vw,1.12rem); max-width: 52ch; }
.about__list { margin-top: 34px; display: grid; gap: 2px; }
.about__list li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: .98rem; color: var(--ink-soft); }
.about__list li b { color: var(--ink); font-weight: 600; min-width: 130px; font-family: var(--font-display); }

/* -------------------------------- 14 · CTA ------------------------------- */
.cta { position: relative; overflow: hidden; }
.cta__panel {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  padding: clamp(48px, 8vw, 110px) clamp(30px, 6vw, 90px);
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff; box-shadow: var(--shadow-3);
}
.cta__panel .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(90% 120% at 80% 0%, #000, transparent 70%); -webkit-mask-image: radial-gradient(90% 120% at 80% 0%, #000, transparent 70%); }
.cta__panel h2 { position: relative; font-size: clamp(2.1rem, 5.6vw, 4.2rem); letter-spacing: -.03em; max-width: 16ch; }
.cta__panel p { position: relative; margin-top: 22px; font-size: clamp(1.05rem,1.7vw,1.25rem); color: rgba(255,255,255,.82); max-width: 46ch; }
.cta__actions { position: relative; margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.cta .btn--primary { background: #fff; color: var(--brand-deep); box-shadow: 0 12px 40px -8px rgba(0,0,0,.4); }
.cta .btn--primary:hover { background: #eef2ff; }
.cta .btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.cta .btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* ------------------------------ 15 · FOOTER ------------------------------ */
.footer { border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 80px) 40px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand .mark { width: auto; height: 30px; display: block; margin-bottom: 18px; }
.footer__brand p { color: var(--ink-soft); max-width: 34ch; margin-top: 12px; }
.footer__col h5 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.footer__col a { display: block; padding: 6px 0; color: var(--ink-soft); transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--brand); }
[data-theme="dark"] .footer__col a:hover { color: var(--brand-bright); }
.footer__bottom { margin-top: clamp(40px,6vw,64px); padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: .74rem; color: var(--ink-faint); letter-spacing: .04em; }
.footer__bottom a { color: var(--ink-faint); }
.footer__bottom a:hover { color: var(--brand); }

/* ---------------------------- 15b · WHATSAPP ----------------------------- */
.btn--wa { background: #fff; color: var(--brand-deep); }
.btn--wa:hover { background: #eefff5; }
.btn--wa .wa { width: 20px; height: 20px; color: #25D366; }
.cta .btn--wa { background: #fff; color: var(--brand-deep); box-shadow: 0 12px 40px -8px rgba(0,0,0,.4); }
.cta .btn--wa:hover { background: #eefff5; }

.wa-fab {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px);
  z-index: 820; display: inline-flex; align-items: center; gap: 0;
  height: 58px; padding: 0; width: 58px; overflow: hidden;
  border-radius: 999px; background: #25D366; color: #fff;
  box-shadow: 0 12px 30px -6px rgba(37, 211, 102, .5), 0 4px 10px rgba(0,0,0,.15);
  transition: width .4s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease), opacity .4s var(--ease), visibility .4s;
}
.wa-fab .wa { width: 30px; height: 30px; flex: none; margin: 0 14px; }
.wa-fab__label { white-space: nowrap; font-weight: 600; font-size: .95rem; padding-right: 22px; opacity: 0; transition: opacity .3s var(--ease); }
.wa-fab:hover { width: 190px; transform: translateY(-2px); box-shadow: 0 16px 40px -6px rgba(37, 211, 102, .6); }
.wa-fab:hover .wa-fab__label { opacity: 1; }
.wa-fab:focus-visible { width: 190px; }
.wa-fab:focus-visible .wa-fab__label { opacity: 1; }
body.menu-open .wa-fab { opacity: 0; visibility: hidden; }
@media (hover: none) { .wa-fab:hover { width: 58px; } .wa-fab:hover .wa-fab__label { opacity: 0; } }

/* ------------------------------ 16 · REVEAL ------------------------------ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* -------------------------- 17 · REDUCED MOTION -------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .hero__grid, .loader__mark, .scroll-cue .rail::after, .hero__eyebrow .dot { animation: none; }
  .stage__scene { transform: none !important; }
  .browser { transform: none !important; }
}

/* ---------------------------- 18 · RESPONSIVE ---------------------------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__stage { height: min(52vh, 440px); order: 2; }
  .about__grid { grid-template-columns: 1fr; }
  .intro__grid { grid-template-columns: 1fr; align-items: start; gap: 40px; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .artifact--featured .artifact__link { grid-template-columns: 1fr; gap: 26px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .caps__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  :root { --section-y: clamp(64px, 14vw, 96px); }
  .artifact, .artifact--featured { grid-column: span 12; }
  .intro__stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat { padding: 16px 12px; min-width: 0; }
  .stat .n { font-size: 1.8rem; }
  .stat .l { font-size: .6rem; }
  .caps__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .nav { inset: 10px 12px auto; padding-right: 8px; }
  .nav__brand span { display: none; }
}
@media (hover: none) {
  body.has-cursor { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}
