Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions sites/askaconsult/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>

<html lang="en">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>404 — Page not found — ASKA Consulting</title>
<meta content="The page you were looking for doesn't exist or has moved." name="description"/>
<link href="/favicon.svg" rel="icon" type="image/svg+xml"/>
<link href="/system.css?v=7.22" rel="stylesheet"/>

<link href="/frontier.css?v=1" rel="stylesheet"/>

<meta content="noindex,nofollow" name="robots"/><link href="/completion.css?v=complete-1" rel="stylesheet"/><link href="/editorial.css?v=editorial-1" rel="stylesheet"/></head>
<body class="frontier-aska editorial-site e-error"><a class="skip-link" href="#main">Skip to content</a>
<header class="f-nav f-wrap"><a aria-label="ASKA home" class="f-brand" href="/"><img alt="" height="40" src="/assets/svg/aska-logo.svg" width="40"/>ASKA <small>CONSULTING</small></a><nav aria-label="Main navigation" class="f-desktop-nav"><a href="/digital/">Digital</a><a href="/physical/">Physical</a><a href="/about/">The firm</a><a href="/digital/blog/">Journal</a><a class="f-contact" href="mailto:info@askaconsult.com">Contact ↗</a></nav><details class="f-mobile-menu"><summary>Explore <span aria-hidden="true">+</span></summary><nav aria-label="All pages" class="f-mobile-menu-panel"><a href="/">Home</a><a href="/digital/">Digital</a><a href="/physical/">Physical</a><a href="/team6/">Team6</a><a href="/about/">About</a><a href="/method/">Method</a><a href="/sectors/">Sectors</a><a href="/digital/blog/">Digital journal</a><a href="/physical/blog/">Field notes</a><a href="mailto:info@askaconsult.com">Contact ↗</a></nav></details></header><main id="main"><section class="e-intro e-wrap"><p class="e-label">404 / THIS ADDRESS IS NOT IN THE INDEX</p><div class="e-intro-grid"><div><h1>A wrong turn.<br/><em>Not a dead end.</em></h1><p class="e-deck">The page may have moved, or the address may be incomplete. Choose a part of the practice below.</p></div><div aria-hidden="true" class="e-error-code">404</div></div></section><section class="e-wrap e-error-links"><a class="e-button" href="/">Return to ASKA<span aria-hidden="true">↗</span></a><a class="e-button" href="/digital/">Explore Digital<span aria-hidden="true">↗</span></a><a class="e-button" href="/physical/">Explore Physical<span aria-hidden="true">↗</span></a></section></main>

<footer class="f-footer-band"><div class="f-footer f-wrap"><div><a class="footer-wordmark" href="/">ASKA</a><p>Digital and physical.<br/>One connected practice.</p><p>© 2026 ASKA Business Solutions Inc.</p></div><nav aria-label="Footer navigation"><a href="/digital/">Digital</a><a href="/physical/">Physical</a><a href="/team6/">Team6</a><a href="/about/">About</a><a href="/method/">Method</a><a href="/sectors/">Sectors</a><a href="/digital/blog/">Digital journal</a><a href="/physical/blog/">Field notes</a><a href="mailto:info@askaconsult.com">Contact ↗</a></nav></div></footer>
<script defer="" src="/assets/js/site-shell.js?v=complete-1"></script><script defer="" src="/assets/js/editorial.js?v=editorial-1"></script></body>
</html>
23 changes: 23 additions & 0 deletions sites/askaconsult/about/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>

<html lang="en">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>About ASKA — One Firm, Two Worlds</title>
<meta content="ASKA Consulting: emerging technology, digital infrastructure, and financial advisory — plus global building-material sourcing. One firm, two divisions, under one roof." name="description"/>
<link href="https://askaconsult.com/about/" rel="canonical"/>
<link href="/favicon.svg" rel="icon" type="image/svg+xml"/>
<link href="/system.css?v=7.22" rel="stylesheet"/>
<link href="/enhancements.css?v=2" rel="stylesheet"/>

<link href="/frontier.css?v=1" rel="stylesheet"/>

<meta content="noindex,nofollow" name="robots"/><link href="/completion.css?v=complete-1" rel="stylesheet"/><link href="/editorial.css?v=editorial-1" rel="stylesheet"/></head>
<body class="frontier-aska editorial-site e-about"><a class="skip-link" href="#main">Skip to content</a>
<header class="f-nav f-wrap"><a aria-label="ASKA home" class="f-brand" href="/"><img alt="" height="40" src="/assets/svg/aska-logo.svg" width="40"/>ASKA <small>CONSULTING</small></a><nav aria-label="Main navigation" class="f-desktop-nav"><a href="/digital/">Digital</a><a href="/physical/">Physical</a><a aria-current="page" href="/about/">The firm</a><a href="/digital/blog/">Journal</a><a class="f-contact" href="mailto:info@askaconsult.com">Contact ↗</a></nav><details class="f-mobile-menu"><summary>Explore <span aria-hidden="true">+</span></summary><nav aria-label="All pages" class="f-mobile-menu-panel"><a href="/">Home</a><a href="/digital/">Digital</a><a href="/physical/">Physical</a><a href="/team6/">Team6</a><a aria-current="page" href="/about/">About</a><a href="/method/">Method</a><a href="/sectors/">Sectors</a><a href="/digital/blog/">Digital journal</a><a href="/physical/blog/">Field notes</a><a href="mailto:info@askaconsult.com">Contact ↗</a></nav></details></header><main id="main"><section class="e-intro e-wrap"><p class="e-label">THE FIRM / ASKA CONSULTING</p><div class="e-intro-grid"><div><h1>The gap between<br/><em>an idea and its execution.</em></h1><p class="e-deck">Software, infrastructure, finance, and procurement are often discussed separately. On a real project, a decision in one changes the others. ASKA brings those questions into the same conversation.</p></div><figure aria-label="Digital signals and physical structures meet across a shared interface" class="e-bridge-art"><svg role="img" viewbox="0 0 600 450"><title>Two disciplines. One project.</title><defs><lineargradient id="bridge-line"><stop stop-color="#b8e9d2"></stop><stop offset="1" stop-color="#d6af74"></stop></lineargradient></defs><g fill="none" stroke="url(#bridge-line)"><path d="M45 80 C170 80,195 196.0,300 174.25 L550 80" opacity="0.18"></path><path d="M45 100 C170 100,195 200.0,300 181.25 L550 100" opacity="0.33999999999999997"></path><path d="M45 120 C170 120,195 204.0,300 188.25 L550 120" opacity="0.5"></path><path d="M45 140 C170 140,195 208.0,300 195.25 L550 140" opacity="0.6599999999999999"></path><path d="M45 160 C170 160,195 212.0,300 202.25 L550 160" opacity="0.18"></path><path d="M45 180 C170 180,195 216.0,300 209.25 L550 180" opacity="0.33999999999999997"></path><path d="M45 200 C170 200,195 220.0,300 216.25 L550 200" opacity="0.5"></path><path d="M45 220 C170 220,195 224.0,300 223.25 L550 220" opacity="0.6599999999999999"></path><path d="M45 240 C170 240,195 228.0,300 230.25 L550 240" opacity="0.18"></path><path d="M45 260 C170 260,195 232.0,300 237.25 L550 260" opacity="0.33999999999999997"></path><path d="M45 280 C170 280,195 236.0,300 244.25 L550 280" opacity="0.5"></path><path d="M45 300 C170 300,195 240.0,300 251.25 L550 300" opacity="0.6599999999999999"></path><path d="M45 320 C170 320,195 244.0,300 258.25 L550 320" opacity="0.18"></path><path d="M45 340 C170 340,195 248.0,300 265.25 L550 340" opacity="0.33999999999999997"></path><path d="M45 360 C170 360,195 252.0,300 272.25 L550 360" opacity="0.5"></path><path d="M300 40V410" opacity=".45" stroke-dasharray="2 8"></path><circle cx="300" cy="225" opacity=".5" r="55"></circle><circle cx="300" cy="225" opacity=".18" r="75"></circle></g><g fill="#d9c08c"><circle cx="300" cy="225" r="6"></circle></g><g fill="#b8c5b7" font-family="monospace" font-size="11" letter-spacing="2"><text x="45" y="425">INFORMATION</text><text x="425" y="425">MATERIALS</text><text x="247" y="24">THE INTERFACE</text></g></svg><figcaption>A conceptual map of our practice, not a live system.</figcaption></figure></div></section><section class="e-principle e-wrap"><span class="e-big-index">01</span><div><h2>One plan.<br/>More than one discipline.</h2><p>A local AI deployment needs a useful workflow, suitable hardware, and an operating budget. A material purchase needs a specification, a supplier, and terms that account for delivery. We examine those dependencies before recommending the next step.</p></div></section><section class="e-dual e-wrap"><article class="e-digital-door"><p class="e-label">ASKA DIGITAL</p><h2>Work with information.</h2><p>Custom software, AI workflows, document and knowledge tools, compute planning, and financial analysis.</p><ul><li>Define the task and the data it needs.</li><li>Build a version people can use.</li><li>Agree on deployment and support.</li></ul><a class="e-button" href="/digital/">Explore Digital<span aria-hidden="true">↗</span></a></article><article class="e-physical-door"><p class="e-label">ASKA PHYSICAL</p><h2>Work with materials.</h2><p>Material sourcing, supplier comparison, procurement negotiation, and delivery coordination.</p><ul><li>Clarify the specification.</li><li>Compare capability and commercial terms.</li><li>Coordinate the agreed purchase.</li></ul><a class="e-button" href="/physical/">Explore Physical<span aria-hidden="true">↗</span></a></article></section><section class="e-wrap e-section"><div class="e-section-heading"><p class="e-label">WHAT THAT LOOKS LIKE</p><h2>The connection is practical.</h2><p>These are examples of how disciplines meet—not claims of client outcomes.</p></div><div class="e-example-grid"><article><span>COMPUTE + COST</span><h3>Where should the model run?</h3><p>Weigh the workflow, privacy requirements, hardware capacity, and operating cost together before choosing local or hosted deployment.</p></article><article><span>SPECIFICATION + SUPPLY</span><h3>Are two quotes comparable?</h3><p>Check grade, tolerances, delivery responsibilities, and lead time before treating a lower unit price as a better offer.</p></article><article><span>KNOWLEDGE + OPERATIONS</span><h3>Can the next person use it?</h3><p>Training, documentation, and a handover matter alongside the tool. Define who will operate it and what support they need.</p></article></div></section><section class="e-standard e-wrap"><p class="e-label">HOW WE WANT TO BE JUDGED</p><h2>Clear scope.<br/>Inspectable work.<br/><em>Accountable decisions.</em></h2><div><p>Agree on deliverables and fees before committing. Distinguish a working result from a demonstration. State what has not been tested.</p><p>You approve the scope and commercial decisions. We explain recommendations, dependencies, and limits in terms you can use.</p><a class="e-link" href="/method/">Read the working method ↗</a></div></section><section class="e-cta e-wrap"><p class="e-label">A USEFUL NEXT STEP</p><h2>Bring the question you are working on.</h2><p>An initial conversation can establish whether ASKA is the right fit. You do not need a finished brief.</p><a class="e-button" href="mailto:info@askaconsult.com">Start a conversation<span aria-hidden="true">↗</span></a></section></main>


<footer class="f-footer-band"><div class="f-footer f-wrap"><div><a class="footer-wordmark" href="/">ASKA</a><p>Digital and physical.<br/>One connected practice.</p><p>© 2026 ASKA Business Solutions Inc.</p></div><nav aria-label="Footer navigation"><a href="/digital/">Digital</a><a href="/physical/">Physical</a><a href="/team6/">Team6</a><a href="/about/">About</a><a href="/method/">Method</a><a href="/sectors/">Sectors</a><a href="/digital/blog/">Digital journal</a><a href="/physical/blog/">Field notes</a><a href="mailto:info@askaconsult.com">Contact ↗</a></nav></div></footer>
<script defer="" src="/assets/js/site-shell.js?v=complete-1"></script><script defer="" src="/assets/js/editorial.js?v=editorial-1"></script></body>
</html>
136 changes: 136 additions & 0 deletions sites/askaconsult/api/ask.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
// ASKA terminal showcase assistant — Vercel serverless function
// Holds the OpenRouter key server-side (never ships to the browser).
// Showcase assistant: explains what ASKA does, routes to contact. It is NOT
// ASKA answering for real — the honesty guard from the terminal is the spine.
//
// Rate limiting: durable token-bucket via Upstash Redis REST API.
// Falls back to 503 if KV credentials are not configured.
// Uses HTTP POST to Upstash (no npm package required).
const OPENROUTER_KEY = process.env.OPENROUTER_KEY || process.env.OPENROUTER_API_KEY;
const MODEL = process.env.ASKA_MODEL || 'openai/gpt-4o-mini';
const UPSTASH_KV_REST_URL = process.env.UPSTASH_KV_REST_URL;
const UPSTASH_KV_REST_TOKEN = process.env.UPSTASH_KV_REST_TOKEN;
const RATE_LIMIT = 10; // requests per window
const RATE_WINDOW_SEC = 60;

function ipFromRequest(req) {
return (
req.headers['x-forwarded-for']?.split(',')[0]?.trim() ||
req.headers['x-real-ip'] ||
'unknown'
);
}

// Durable rate limiter using Upstash KV (REST API, no package needed).
// Falls back to DENY if credentials are absent.
async function rateLimit(ip) {
if (!UPSTASH_KV_REST_URL || !UPSTASH_KV_REST_TOKEN) {
// No KV configured — allow up to RATE_LIMIT requests in-memory as a best-effort
// fallback (only protects sequential requests within a single warm Lambda).
// For production use, set UPSTASH_KV_REST_URL + UPSTASH_KV_REST_TOKEN.
const now = Date.now();
const record = rateLimiterInMemory.get(ip);
if (!record || now - record.start > RATE_WINDOW_SEC * 1000) {
rateLimiterInMemory.set(ip, { count: 1, start: now });
return null;
}
if (record.count >= RATE_LIMIT) {
const retryAfter = Math.ceil(
(RATE_WINDOW_SEC * 1000 - (now - record.start)) / 1000
);
return retryAfter;
}
record.count++;
return null;
}

// Durable path: Upstash KV REST API
const key = `rl:${ip}`;
try {
const res = await fetch(`${UPSTASH_KV_REST_URL}/incr`, {
method: 'POST',
headers: {
Authorization: `Bearer ${UPSTASH_KV_REST_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ key, amount: 1, ttl: RATE_WINDOW_SEC }),
});
if (!res.ok) return null; // allow on KV error (fail open)
const data = await res.json();
if ((data.value || 0) > RATE_LIMIT) {
return RATE_WINDOW_SEC;
}
return null;
} catch {
return null; // fail open on network error
}
}

// In-memory fallback (best-effort only)
const rateLimiterInMemory = new Map();

const SYSTEM_PROMPT = [
'You are the ASKA capability-showcase assistant inside an interactive terminal on the ASKA Consulting website (askaconsult.com).',
'ASKA is one firm, two divisions:',
'- ASKA Digital: emerging technology consulting (agentic AI adoption, blockchain diligence, additive manufacturing), digital infrastructure (data centres and crypto mining from feasibility through commissioning to operations), and financial advisory (venture raises, cap table structuring, balance sheet management, tax optimization, corporate restructuring).',
'- ASKA Physical: global building-material sourcing and procurement consulting (raw material or finished goods), manufacturer-distributor matchmaking, negotiation-as-a-service.',
'- Contact: email info@askaconsult.com, phone +1-289-928-9554 (tel:289-928-9554). When asked for contact details, give these exactly.',
'- Rules: answer only about ASKA and its services; for anything else say you are the ASKA capability demo and redirect to /help. You are a product showcase, not the firm — never give financial/legal/technical advice, never quote prices/terms, never invent track-record numbers, clients, or credentials.',
'- Keep answers to 2-4 short lines. Plain text, no markdown headers.',
'- Mention "Book a consultation" or the appropriate division page as the next step when relevant.',
'- Add "→ scheduled: intro call — we map this to your actual situation" ONLY when the user expresses genuine interest in working with ASKA or asks for next steps. Do NOT append it to every answer — for simple informational questions (what do you do, what is ASKA, explain a service), answer directly and end with a suggestion like "Try /digital or /physical to explore."',
].join('\n');

export default async function handler(req, res) {
if (req.method !== 'POST') {
res.setHeader('Allow', 'POST');
return res.status(405).json({ error: 'Method not allowed' });
}

const ip = ipFromRequest(req);
const denied = await rateLimit(ip);
if (denied !== null) {
res.setHeader('Retry-After', denied);
return res.status(429).json({ error: 'Too many requests. Please wait a moment.' });
}

if (!OPENROUTER_KEY) {
return res.status(503).json({ error: 'Assistant not configured' });
}

const { q } = req.body || {};
if (!q || typeof q !== 'string' || q.trim().length === 0) {
return res.status(400).json({ error: 'Empty query' });
}
if (q.length > 500) {
return res.status(400).json({ error: 'Query too long' });
}

try {
const r = await fetch('https://openrouter.ai/api/v1/chat/completions', {
method: 'POST',
headers: {
Authorization: `Bearer ${OPENROUTER_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: MODEL,
messages: [
{ role: 'system', content: SYSTEM_PROMPT },
{ role: 'user', content: q },
],
max_tokens: 220,
temperature: 0.4,
}),
});

if (!r.ok) {
return res.status(502).json({ error: 'Upstream error' });
}
const data = await r.json();
const answer = data?.choices?.[0]?.message?.content?.trim() || '(no response)';
return res.status(200).json({ a: answer });
} catch (e) {
return res.status(500).json({ error: 'Assistant error' });
}
}
Binary file added sites/askaconsult/assets/aska-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sites/askaconsult/assets/askadigital.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sites/askaconsult/assets/askaphysical.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sites/askaconsult/assets/fonts/Geist-Bold.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added sites/askaconsult/assets/fonts/Manrope-500.woff2
Binary file not shown.
Binary file added sites/askaconsult/assets/fonts/Manrope-600.woff2
Binary file not shown.
Binary file added sites/askaconsult/assets/fonts/Manrope-700.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added sites/askaconsult/assets/fonts/Rostex-Oblique.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Loading