/* ============================================================
   LA MANO — shared stylesheet for service / sub pages
   Matches the index.html art direction. Self-contained.
   Pages that link this file render fully WITHOUT JavaScript.
   ============================================================ */

:root {
  --bg: #f6f6f3;
  --bg-2: #ffffff;
  --ink: #0b0b0c;
  --dim: #5a5a61;
  --faint: #9a9aa1;
  --line: rgba(11,11,12,0.1);
  --line-soft: rgba(11,11,12,0.05);
  --accent: #0b2cff;
  --accent-soft: rgba(11,44,255,0.07);
  --mono: 'Helvetica Specimen', Helvetica, Arial, sans-serif;
  --sans: 'Space Grotesk', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

a { color: inherit; }

/* ---- atmosphere : grid + static grain ---- */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 0%, transparent 75%);
}
.noise {
  position: fixed; inset: -100%; z-index: 1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .6s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); }   20% { transform: translate(-4%,3%); }
  40% { transform: translate(3%,-5%); } 60% { transform: translate(-3%,-2%); }
  80% { transform: translate(4%,4%); } 100% { transform: translate(0,0); }
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.wrap-narrow { max-width: 880px; }

/* ---- nav ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(246,246,243,0.7);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 20px 32px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  font-family: var(--mono); font-weight: 500; font-size: 14px;
  letter-spacing: 0.22em; color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 12px; position: relative;
}
.logo img { height: 28px; width: auto; display: block; filter: brightness(0); transition: transform .4s cubic-bezier(.2,.6,.2,1); }
.logo:hover img { transform: rotate(-12deg) scale(1.1); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dim); text-decoration: none;
  transition: color .25s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  border: 1px solid var(--line); padding: 8px 18px; border-radius: 100px;
  color: var(--ink) !important; transition: all .25s !important;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent) !important; }

/* ---- buttons ---- */
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; padding: 16px 32px;
  border-radius: 100px; transition: all .3s; display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary { background: var(--accent); color: #fff; font-weight: 500; }
.btn-primary:hover { box-shadow: 0 12px 40px -8px rgba(11,44,255,0.45); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.text-arrow {
  display: inline-block;
  font-family: Helvetica, Arial, sans-serif;
  font-variant-emoji: text; font-style: normal; font-weight: inherit;
  line-height: 1; transform: translateY(-0.04em);
}

/* ---- breadcrumb ---- */
.crumb {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 30px;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.crumb a { color: var(--dim); text-decoration: none; transition: color .25s; }
.crumb a:hover { color: var(--accent); }
.crumb span[aria-current] { color: var(--ink); }
.crumb i { color: var(--faint); font-style: normal; }

/* ---- section scaffolding ---- */
section { padding: 96px 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 56px; flex-wrap: wrap; gap: 16px; }
.sec-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--accent);
}
h1 {
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1.0; font-weight: 600; letter-spacing: -0.03em;
  margin-bottom: 30px;
}
h1 .accent { color: var(--accent); }
h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.06; }
h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }

/* ---- page hero ---- */
.page-hero {
  padding: 168px 0 96px; border-top: none; position: relative;
}
.page-hero .lead {
  max-width: 620px; color: var(--dim); font-size: 18px; line-height: 1.72;
  font-weight: 300; margin: 0 0 40px;
}
.page-hero .lead b { color: var(--ink); font-weight: 500; }
.hero-meta {
  margin-top: 64px; display: flex; gap: 56px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: var(--faint);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-meta div b { display: block; color: var(--dim); margin-bottom: 6px; font-weight: 400; }

/* ---- prose blocks ---- */
.prose { max-width: 720px; }
.prose p { color: var(--dim); font-size: 16.5px; line-height: 1.8; font-weight: 300; margin-bottom: 22px; }
.prose p b, .prose b { color: var(--ink); font-weight: 500; }
.prose p:last-child { margin-bottom: 0; }

/* ---- feature list (→ bullets, matches index .svc ul) ---- */
.feat { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feat li { background: var(--bg); padding: 26px 28px; transition: background .3s; }
.feat li:hover { background: var(--bg-2); }
.feat li b { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.feat li b::before { content: '→ '; color: var(--accent); }
.feat li small { color: var(--dim); font-size: 14px; line-height: 1.65; font-weight: 300; }
@media (min-width: 720px) { .feat.cols-2 { grid-template-columns: 1fr 1fr; } .feat.cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---- numbered process ---- */
.steps { list-style: none; border: 1px solid var(--line); counter-reset: step; }
.steps li {
  position: relative; overflow: hidden; background: var(--bg);
  display: grid; grid-template-columns: 88px 1fr; column-gap: 26px;
  padding: 30px 32px; border-bottom: 1px solid var(--line);
  transition: background .35s;
}
.steps li:last-child { border-bottom: none; }
.steps li:hover { background: var(--bg-2); }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  grid-column: 1; grid-row: 1 / span 2; align-self: center;
  font-family: var(--mono); font-size: clamp(30px, 4vw, 46px); font-weight: 500;
  line-height: 1; letter-spacing: -0.02em; color: var(--faint);
  transition: color .35s, transform .35s;
}
.steps li:hover::before { color: var(--accent); transform: translateY(-2px); }
.steps li::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .35s;
}
.steps li:hover::after { transform: scaleY(1); }
.steps li b { grid-column: 2; grid-row: 1; align-self: end; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 3px; }
.steps li small { grid-column: 2; grid-row: 2; align-self: start; color: var(--dim); font-size: 14.5px; line-height: 1.65; font-weight: 300; }

/* ---- stat / proof row ---- */
.stats { display: flex; gap: 0; flex-wrap: wrap; border: 1px solid var(--line); }
.stats div { flex: 1; min-width: 160px; padding: 28px 26px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: none; }
.stats b { display: block; font-family: var(--mono); font-size: clamp(26px, 3vw, 38px); font-weight: 500; letter-spacing: -0.01em; margin-bottom: 8px; }
.stats small { color: var(--dim); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--mono); }

/* ---- related links cards ---- */
.rel-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .rel-grid { grid-template-columns: repeat(3, 1fr); } }
.rel-card { background: var(--bg); padding: 28px 26px; text-decoration: none; display: block; transition: background .3s; }
.rel-card:hover { background: var(--bg-2); }
.rel-card .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.rel-card b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.rel-card span { color: var(--dim); font-size: 14px; line-height: 1.6; font-weight: 300; }
.rel-card .go { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

/* ---- FAQ : native <details>, crawlable, no JS ---- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 26px 0; display: flex;
  justify-content: space-between; align-items: center; gap: 24px;
  font-size: clamp(17px, 2.2vw, 21px); font-weight: 500; letter-spacing: -0.01em;
  transition: color .25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-mark {
  flex: none; width: 22px; height: 22px; position: relative;
  transition: transform .3s cubic-bezier(.2,.6,.2,1);
  font-family: var(--mono); color: var(--accent);
}
.faq-mark::before, .faq-mark::after {
  content: ''; position: absolute; background: var(--accent); border-radius: 2px;
  top: 50%; left: 50%;
}
.faq-mark::before { width: 14px; height: 2px; transform: translate(-50%,-50%); }
.faq-mark::after { width: 2px; height: 14px; transform: translate(-50%,-50%); transition: transform .3s; }
.faq-item[open] .faq-mark::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-item[open] summary { color: var(--accent); }
.faq-body { padding: 0 0 30px; max-width: 760px; }
.faq-body p { color: var(--dim); font-size: 15.5px; line-height: 1.78; font-weight: 300; margin-bottom: 14px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body b { color: var(--ink); font-weight: 500; }
.faq-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }

/* ---- CTA band ---- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 22px; }
.cta-band p { color: var(--dim); font-size: 16px; line-height: 1.7; font-weight: 300; max-width: 540px; margin: 0 auto 36px; }
.cta-band .btn-row { justify-content: center; }

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--line); padding: 30px 0; position: relative; z-index: 2;
  font-family: var(--mono); font-size: 10.5px; color: var(--faint);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.foot-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot-inner a { color: var(--dim); text-decoration: none; }
.foot-inner a:hover { color: var(--accent); }

/* ---- spacing helpers ---- */
.mt-s { margin-top: 28px; } .mt-m { margin-top: 44px; } .mt-l { margin-top: 64px; }

/* ---- responsive ---- */
@media (max-width: 820px) {
  .nav-links a:not(.nav-cta) { display: none; }
  section { padding: 72px 0; }
  .page-hero { padding: 130px 0 72px; }
  .steps li { grid-template-columns: 60px 1fr; column-gap: 18px; padding: 26px 22px; }
  .hero-meta { gap: 32px; margin-top: 44px; }
}

/* ============================================================
   Motion layer — hero entrance, scroll reveal, particle
   headings, custom cursor, scroll progress. Progressive
   enhancement; <noscript> per page keeps content visible.
   ============================================================ */

/* hero entrance — CSS only, no JS dependency, no FOUC */
@keyframes heroRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.page-hero > .wrap > * { animation: heroRise .7s cubic-bezier(.2,.6,.2,1) both; }
.page-hero .sec-label { animation-delay: .06s; }
.page-hero h1 { animation-delay: .12s; }
.page-hero .lead { animation-delay: .22s; }
.page-hero .btn-row { animation-delay: .32s; }
.page-hero .hero-meta { animation-delay: .42s; }

/* scroll reveal — glitch into existence */
.reveal, .stagger > * { opacity: 0; }
.reveal.in { animation: glitchIn .55s steps(2, end) both; }
.stagger.in > * { animation: glitchIn .5s steps(2, end) both; }
.stagger.in > *:nth-child(2) { animation-delay: .06s; }
.stagger.in > *:nth-child(3) { animation-delay: .12s; }
.stagger.in > *:nth-child(4) { animation-delay: .18s; }
.stagger.in > *:nth-child(5) { animation-delay: .24s; }
.stagger.in > *:nth-child(6) { animation-delay: .30s; }
.stagger.in > *:nth-child(7) { animation-delay: .36s; }
.stagger.in > *:nth-child(8) { animation-delay: .42s; }
.stagger.in > *:nth-child(9) { animation-delay: .48s; }
@keyframes glitchIn {
  0%   { opacity: 0;   clip-path: inset(44% 0 44% 0); transform: translate(-9px, 3px); }
  15%  { opacity: .55; clip-path: inset(8% 0 62% 0);  transform: translate(7px, -2px); }
  30%  { opacity: .7;  clip-path: inset(58% 0 6% 0);  transform: translate(-6px, 2px); }
  45%  { opacity: .85; clip-path: inset(20% 0 28% 0); transform: translate(4px, -1px); }
  60%  { opacity: .93; clip-path: inset(0 0 0 0);     transform: translate(-2px, 1px); }
  100% { opacity: 1;   clip-path: none;               transform: none; }
}

/* particle-assemble headings */
[data-scramble-reveal] { position: relative; }
[data-scramble-reveal] canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }

/* scroll progress bar */
#progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 95; }

/* custom cursor */
@media (pointer: fine) {
  body { cursor: none; }
  a, button, summary, .feat li, .steps li, .rel-card, [role="button"] { cursor: none; }
}
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%); display: none;
}
@media (pointer: fine) { .cursor-dot, .cursor-ring { display: block; } }
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring {
  width: 34px; height: 34px; border: 1px solid rgba(11,44,255,0.45);
  transition: width .25s, height .25s, border-color .25s, background .25s;
  display: none; align-items: center; justify-content: center;
}
@media (pointer: fine) { .cursor-ring { display: flex; } }
.cursor-ring span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; font-weight: 700; color: #fff; opacity: 0; transition: opacity .2s; user-select: none; }
.cursor-ring.hover { width: 52px; height: 52px; border-color: var(--accent); }
.cursor-ring.label { width: 64px; height: 64px; background: var(--accent); border-color: var(--accent); }
.cursor-ring.label span { opacity: 1; }
body.cursor-hide .cursor-dot, body.cursor-hide .cursor-ring { opacity: 0; }

/* reduced motion — kill all motion, keep everything visible */
@media (prefers-reduced-motion: reduce) {
  .page-hero > .wrap > *, .reveal.in, .stagger.in > * { animation: none !important; }
  .reveal, .stagger > * { opacity: 1 !important; }
  .noise { animation: none; inset: 0; }
}
