/* ---------- inner pages (about / services / process / faq / contact / work) ----------
   Same world as the home page - near-black, blueprint grid, Space Grotesk + JetBrains Mono,
   cyan highlights - without the 3D. Shared nav / footer / form rules: pages-base.css. */
:root { --cy: #8fe4ff; --ct: #8fe4ff; --card: rgba(12, 16, 36, 0.72); --card-line: rgba(150, 225, 255, 0.16); }

.pg { min-height: 100vh; }
.pg .nav { opacity: 1; transform: none; background: linear-gradient(180deg, rgba(3, 3, 8, 0.92), rgba(3, 3, 8, 0.6)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.pg .nav nav a[aria-current="page"] { opacity: 1; color: var(--cy); }
.pg::before {                        /* the blueprint grid, fading out towards the bottom */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(143, 228, 255, 0.05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(143, 228, 255, 0.05) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 85%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 85%);
}

.pg-main { max-width: 1180px; margin: 0 auto; padding: clamp(120px, 18vh, 170px) clamp(16px, 4vw, 48px) 40px; }
.pg-crumbs { display: flex; gap: 8px; color: var(--muted); margin-bottom: 22px; }
.pg-crumbs a { color: var(--muted); text-decoration: none; }
.pg-crumbs a:hover { color: var(--fg); }

.pg-hero { max-width: 900px; }
.pg-hero .eyebrow, .pg-sec .eyebrow { color: var(--cy); letter-spacing: 0.18em; margin-bottom: 18px; }
.pg-hero h1 { font-size: clamp(44px, 7vw, 104px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; }
.pg-hero .lead { margin-top: 26px; max-width: 58ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: #cfd4e4; }
.pg-rule { display: block; height: 1px; margin-top: 44px; background: linear-gradient(90deg, rgba(143, 228, 255, 0.7), rgba(143, 228, 255, 0.2) 60%, transparent); }

.pg-sec { margin-top: clamp(72px, 12vh, 120px); }
.pg-sec h2 { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.pg-sec > p.sub { margin-top: 14px; max-width: 60ch; color: #b9bfd2; font-size: 17px; line-height: 1.6; }
.hl { color: var(--cy); font-weight: 600; }

/* cards */
.pg-grid { display: grid; gap: 14px; margin-top: 34px; }
.pg-grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-card {
  position: relative; padding: 26px 24px 24px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(90, 120, 255, 0.09), var(--card));
  border: 1px solid var(--card-line);
}
.pg-card h3 { font-size: 21px; letter-spacing: -0.015em; }
.pg-card p { margin-top: 10px; color: #c3c8d8; line-height: 1.6; font-size: 15.5px; }
.pg-card .num { position: absolute; top: 22px; right: 22px; color: var(--muted); }
.pg-card .ico { display: block; width: 28px; height: 28px; margin-bottom: 18px; }
.pg-card .ico svg { display: block; width: 100%; height: 100%; fill: none; stroke: var(--cy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pg-card .tags { margin-top: 18px; color: var(--muted); line-height: 1.7; }
.pg-card ul { margin-top: 16px; list-style: none; border-top: 1px solid var(--card-line); }
.pg-card li { padding: 10px 0 10px 22px; position: relative; border-bottom: 1px solid var(--card-line); color: #e6e9f3; font-size: 15px; }
.pg-card li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 8px; height: 1px; background: var(--cy); }
.pg-card.feature { background: linear-gradient(160deg, rgba(90, 120, 255, 0.18), var(--card)); border-color: rgba(150, 225, 255, 0.3); }
.pg-card .label { color: var(--cy); }

/* numbered list (included / steps) */
.pg-list { list-style: none; margin-top: 34px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.pg-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.pg-list .n { color: var(--cy); padding-top: 4px; }
.pg-list h3 { font-size: 18px; }
.pg-list p { margin-top: 4px; color: #b9bfd2; line-height: 1.55; font-size: 15px; }

/* process route */
.pg-steps { list-style: none; margin-top: 40px; position: relative; }
.pg-steps li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding-bottom: 44px; }
.pg-steps li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 46px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--cy), rgba(143, 228, 255, 0.15)); }
.pg-steps .node { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--cy); color: var(--cy); background: rgba(8, 14, 34, 0.9); box-shadow: 0 0 24px rgba(143, 228, 255, 0.18); }
.pg-steps h2, .pg-steps h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.02em; }
.pg-steps p { margin-top: 10px; max-width: 60ch; color: #c3c8d8; line-height: 1.65; font-size: 16.5px; }
.pg-steps .out { margin-top: 14px; display: inline-flex; gap: 10px; padding: 8px 12px; border: 1px solid var(--card-line); border-radius: 8px; color: #e6e9f3; }
.pg-steps .out span { color: var(--cy); }

/* faq */
.pg-faq { margin-top: 30px; border-top: 1px solid var(--line); }
.pg-faq article { padding: 30px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 16px; }
.pg-faq .n { color: var(--cy); padding-top: 8px; }
.pg-faq h2 { font-size: clamp(22px, 2.3vw, 30px); letter-spacing: -0.02em; line-height: 1.2; }
.pg-faq p { margin-top: 12px; max-width: 62ch; color: #cdd2e1; font-size: 17px; line-height: 1.65; }

/* work */
.pg-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.pg-work article { border-radius: 16px; overflow: hidden; border: 1px solid var(--card-line); background: var(--card); }
.pg-work img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pg-work .body { padding: 22px 22px 24px; }
.pg-work .meta { color: var(--cy); }
.pg-work h2 { margin-top: 10px; font-size: 24px; letter-spacing: -0.02em; }
.pg-work p { margin-top: 8px; color: #c3c8d8; line-height: 1.6; font-size: 15.5px; }
.pg-work .tags { margin-top: 14px; color: var(--muted); }

.pg-h2-sm { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.02em; }
/* long-form text */
.pg-prose { max-width: 68ch; }
.pg-prose p { color: #cdd2e1; font-size: 17.5px; line-height: 1.75; }
.pg-prose p + p { margin-top: 18px; }
.pg-story h2 { max-width: 20ch; }
.pg-story .pg-prose { margin-top: 26px; padding-left: 22px; border-left: 1px solid rgba(143, 228, 255, 0.35); }
.pg-card p + p { margin-top: 12px; }
[id] { scroll-margin-top: 96px; }

/* services: the overview cards link down to the detail */
.pg-card-link { display: block; color: inherit; text-decoration: none; transition: border-color 200ms ease, transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .pg-card-link:hover { border-color: rgba(150, 225, 255, 0.45); transform: translateY(-2px); } }
.pg-details { margin-top: 30px; border-top: 1px solid var(--line); }
.pg-detail { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.pg-detail-side { display: flex; flex-direction: column; gap: 14px; color: var(--muted); }
.pg-detail-side .ico { display: block; width: 34px; height: 34px; }
.pg-detail-side .ico svg { display: block; width: 100%; height: 100%; fill: none; stroke: var(--cy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pg-detail h3 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.025em; }
.pg-detail .pg-prose { margin-top: 16px; }
.pg-checks { list-style: none; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.pg-checks li { padding: 8px 14px 8px 30px; position: relative; border: 1px solid var(--card-line); border-radius: 999px; font-size: 14.5px; color: #e6e9f3; background: rgba(12, 16, 36, 0.6); }
.pg-checks li::before { content: ""; position: absolute; left: 13px; top: 50%; width: 8px; height: 4px; border-left: 1.5px solid var(--cy); border-bottom: 1.5px solid var(--cy); transform: translateY(-70%) rotate(-45deg); }

/* process: what you get / what we need */
.pg-steps .pg-prose { margin-top: 12px; }
.pg-steps .pg-prose p { font-size: 16.5px; }
.pg-step-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.pg-steps .pg-step-meta .out { margin-top: 0; }
.pg-step-meta .need { max-width: 46ch; margin: 0; padding: 8px 12px; border-radius: 8px; border: 1px dashed rgba(150, 225, 255, 0.25); color: #c3c8d8; font-size: 14.5px; line-height: 1.5; }
.pg-step-meta .need span { display: block; margin-bottom: 4px; color: var(--cy); font-size: 11px; }

/* faq */
.pg-faq h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; line-height: 1.25; }
.pg-faq-sm article { padding: 24px 0; }
.pg-faq-sm h3 { font-size: 20px; }
.pg-faq-sm p { font-size: 16px; }
.pg-faq-group { margin-top: clamp(56px, 9vh, 90px); }
.pg-faq-group h2 { font-size: clamp(26px, 2.8vw, 38px); }
.pg-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.pg-toc a { padding: 10px 16px; border: 1px solid var(--card-line); border-radius: 999px; color: #e6e9f3; text-decoration: none; font-size: 12px; transition: border-color 200ms ease, color 200ms ease; }
.pg-toc a:hover { border-color: var(--cy); color: var(--cy); }

/* keep reading */
.pg-rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.pg-rel { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 14px; border: 1px solid var(--card-line); background: var(--card); color: inherit; text-decoration: none; transition: border-color 200ms ease, transform 200ms var(--ease-out); }
.pg-rel .mono { color: var(--cy); }
.pg-rel strong { font-size: 20px; letter-spacing: -0.015em; }
.pg-rel strong::after { content: " →"; color: var(--cy); }
.pg-rel span:last-child { color: #b9bfd2; font-size: 15px; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) { .pg-rel:hover { border-color: rgba(150, 225, 255, 0.45); transform: translateY(-2px); } }

/* call to action band */
.pg-cta {
  margin-top: clamp(80px, 14vh, 140px); padding: clamp(36px, 6vw, 64px);
  border-radius: 20px; border: 1px solid var(--card-line);
  background: radial-gradient(90% 140% at 0% 0%, rgba(61, 91, 255, 0.22), transparent 60%), var(--card);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.pg-cta h2 { font-size: clamp(28px, 3.4vw, 46px); letter-spacing: -0.03em; line-height: 1.05; max-width: 16ch; }
.pg-cta p { margin-top: 10px; color: #c3c8d8; }
.pg-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: #fff; color: #05060c; font-weight: 600; text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.pg-btn:hover { background: #dff6ff; }
.pg-btn:active { transform: scale(0.97); }
.pg-link { color: var(--cy); text-decoration: none; border-bottom: 1px solid rgba(143, 228, 255, 0.4); }
.pg-link:hover { border-color: var(--cy); }

/* contact page: the header builds letter by letter on arrival */
.pg-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pg-contact .ct-next { margin-top: 26px; }
.pg-word { display: flex; flex-wrap: nowrap; white-space: nowrap; }
.pg-word span { display: inline-block; animation: pg-rise 700ms var(--ease-out) both; animation-delay: calc(120ms + var(--i) * 45ms); }
.pg-word .dot { color: var(--cy); }
@keyframes pg-rise { from { opacity: 0; transform: translateY(0.4em) scale(0.94); } }

.pg .c-footer { max-width: 1180px; margin: clamp(80px, 12vh, 120px) auto 0; }

/* scroll reveals (site.js sets --r from the scroll position) */
[data-r] { opacity: var(--r, 1); transform: translateY(calc((1 - var(--r, 1)) * 16px)); }

@media (max-width: 860px) {
  .pg-grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-contact { grid-template-columns: 1fr; }
}
@media (max-width: 860px) { .pg-rel-grid { grid-template-columns: 1fr; } .pg-detail { grid-template-columns: 1fr; gap: 16px; } .pg-detail-side { flex-direction: row; align-items: center; } }
@media (max-width: 640px) {
  .pg-grid.g2, .pg-grid.g3, .pg-list, .pg-work { grid-template-columns: 1fr; }

  .pg-steps li { grid-template-columns: 52px 1fr; gap: 14px; }
  .pg-faq article { grid-template-columns: 1fr; gap: 6px; }
  .pg-word { font-size: clamp(52px, 17vw, 96px); }
}
@media (prefers-reduced-motion: reduce) {
  .pg-word span { animation: none; }
  [data-r] { opacity: 1; transform: none; }
}

/* comfortable tap targets on touch screens */
@media (pointer: coarse) {
  .pg-crumbs a { display: inline-block; padding: 14px 6px; margin: -14px -6px; }
  .pg-toc a { min-height: 44px; display: inline-flex; align-items: center; }
}
