File size: 2,970 Bytes
373030b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import useInViewAnimation from "./useInViewAnimation";
import DocCard from "./DocCards";
import "./sections.css";

/* Three real Tamga capabilities in the reference "projects" layout.
   Each visual is a light grid panel staging 1–2 DocCard mockups —
   self-contained CSS, no external media. */
const PROJECTS = [
  {
    name: "Packet audit",
    desc:
      "Upload the full declaration packet — invoice, packing list, CMR, certificate — and Tamga cross-checks every shared field across documents, flagging each mismatch with the exact source line it read.",
    stage: "audit",
    visualLabel:
      "Mockup: a packing list and an audit report side by side, the report flagging the net-weight mismatch 4,120 kg versus 4,210 kg with a citation",
    cards: [
      { variant: "packing", pos: "back" },
      { variant: "report", pos: "front" },
    ],
  },
  {
    name: "Ask with citations",
    desc:
      "Ask anything about your documents and get an answer that cites the passage it came from. If the packet does not contain the answer, Tamga abstains and says so — it never guesses.",
    stage: "ask",
    visualLabel:
      "Mockup: the question “What is the HS code?” answered with 9405 11 00 09 and a citation to the declaration",
    cards: [{ variant: "answer", pos: "solo" }],
  },
  {
    name: "Evidence reports",
    desc:
      "Every audit compiles into a findings report: each check, its verdict, and the cited evidence — ready to hand to a client or keep on file for the inspector.",
    stage: "evidence",
    visualLabel:
      "Mockup: an audit report with cited findings alongside a stamped certificate of origin",
    cards: [
      { variant: "report", pos: "front" },
      { variant: "certificate", pos: "back" },
    ],
  },
];

// Each item fades in independently, so the hook lives in a child component.
function ProjectItem({ project }) {
  const [ref, inView] = useInViewAnimation();
  return (
    <article
      ref={ref}
      className={inView ? "st-fade-up" : "st-hidden"}
      style={{ animationDelay: "0.1s" }}
    >
      <div className="st-project-text">
        <h3 className="st-project-name st-serif">{project.name}</h3>
        <p className="st-project-desc">{project.desc}</p>
      </div>
      <div
        className="st-project-visual"
        role="img"
        aria-label={project.visualLabel}
      >
        <div className={`st-project-stage st-stage--${project.stage}`}>
          {project.cards.map((card) => (
            <DocCard
              key={card.variant}
              variant={card.variant}
              className={`st-stage-card st-stage-card--${card.pos}`}
            />
          ))}
        </div>
      </div>
    </article>
  );
}

export default function ProjectsSection() {
  return (
    <section id="work" className="st-projects" aria-label="What Tamga does">
      {PROJECTS.map((p) => (
        <ProjectItem key={p.name} project={p} />
      ))}
    </section>
  );
}