/* jproisin.be: the site as an automation workflow. Fonts from Google Fonts (Geist, Geist Mono). */

:root {
  --canvas: #101217;
  --dot:    #262A33;
  --node:   #191C23;
  --node-2: #20242D;
  --edge:   #2C313C;
  --text:   #ECEEF2;
  --muted:  #9097A6;
  --wire:   #4A5163;
  --blue:   #6E8BFF;
  --mint:   #3DDC97;
  --orange: #FF9F5A;
  --amber:  #E8A33D;
  --night:  #14162B;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--canvas);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { width: min(100% - 32px, 1240px); margin: 0 auto; }
@media (min-width: 720px) { .wrap { width: min(100% - 64px, 1240px); } }

/* ---- top bar, like an editor ---- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(16, 18, 23, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--edge); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; height: 60px; gap: 12px; }
.crumb { display: flex; align-items: center; }
.crumb img { height: 30px; width: 30px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--mint); padding: 3px 9px; border: 1px solid rgba(61, 220, 151, .3); border-radius: 999px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.top nav { display: flex; align-items: center; gap: 2px; }
.top nav a { text-decoration: none; font-size: 14px; padding: 7px 12px; border-radius: 8px; color: var(--muted); }
.top nav a:hover { color: var(--text); background: var(--node); }
.top nav a.cta { background: var(--orange); color: #1A1206; font-weight: 600; margin-left: 6px; }
@media (max-width: 720px) { .live { display: none; } .top nav a:not(.cta) { padding: 7px 8px; } }

/* ---- nodes ---- */
.node { position: relative; background: var(--node); border: 1px solid var(--edge); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; z-index: 1; }
.node .ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.node .ico svg { width: 20px; height: 20px; }
.node b { display: block; font-weight: 600; font-size: 15px; line-height: 1.25; }
.node small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.node .ok { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint); color: #062015; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.c-orange { background: var(--orange); } .c-blue { background: var(--blue); } .c-mint { background: var(--mint); color: #062015 !important; } .c-violet { background: #A77BFF; } .c-pink { background: #FF6FA8; }

/* A flow: nodes laid out by CSS, wires drawn by the script between them. */
.flow { position: relative; }
.flow > svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.wires path { fill: none; stroke: var(--wire); stroke-width: 2; }
.wires path.run { stroke: var(--blue); stroke-dasharray: 6 9; animation: run 1.2s linear infinite; }
.wires circle { fill: var(--canvas); stroke: var(--wire); stroke-width: 2; }
@keyframes run { to { stroke-dashoffset: -30; } }
@media (prefers-reduced-motion: reduce) { .wires path.run { animation: none; } }

/* ---- hero ---- */
.hero { display: grid; gap: 56px; padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 100px); align-items: center; }
@media (min-width: 1000px) { .hero { grid-template-columns: .9fr 1.2fr; } }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--muted); }
h1 { font-weight: 600; font-size: clamp(52px, 7.6vw, 104px); line-height: .95; letter-spacing: -0.045em; margin-top: 18px; }
h1 span { background: linear-gradient(90deg, var(--blue), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* While "Jean-Philippe" loads (script at the end of index.html), the letters wait under the pixels. */
.js-load h1 .jp { background: none; }
h1 .jp canvas { position: absolute; pointer-events: none; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: #C3C8D3; max-width: 40ch; margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--edge); background: var(--node); transition: border-color .2s, transform .2s; }
.btn:hover { border-color: var(--muted); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn.go { background: var(--orange); border-color: var(--orange); color: #1A1206; }
.btn.go:hover { border-color: #FFB985; background: #FFB985; }

.flow-hero { display: grid; grid-template-columns: .9fr 1.3fr .7fr; gap: 44px; align-items: center; --dir: row; }
.flow-hero .col { display: grid; gap: 18px; }
@media (max-width: 720px) {
  .flow-hero { grid-template-columns: 1fr; gap: 44px; --dir: column; }
  .flow-hero .col { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .flow-hero .col .node { flex-direction: column; text-align: center; padding: 12px 8px; gap: 8px; }
  .flow-hero .col .node b { font-size: 13px; }
  .flow-hero > .node { justify-self: center; }
}

/* ---- sections ---- */
section { padding: clamp(56px, 8vw, 100px) 0; border-top: 1px solid var(--edge); }
.label { font-family: var(--mono); font-size: 12.5px; color: var(--blue); }
.label::before { content: "// "; color: var(--wire); }
h2 { font-weight: 600; font-size: clamp(34px, 4.6vw, 58px); line-height: 1; letter-spacing: -0.035em; margin-top: 12px; max-width: 16ch; }
.intro { color: #C3C8D3; font-size: 18px; margin-top: 16px; max-width: 54ch; }

/* The six steps of the About paragraph, as an execution that went all the way. */
.run-steps { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; margin-top: 44px; --dir: row; }
.run-steps .node { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; height: 100%; }
.run-steps .node b { font-size: 14px; }
@media (max-width: 900px) { .run-steps { grid-template-columns: repeat(3, 1fr); gap: 28px 18px; } }

.services { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, 1fr); } }
.panel { background: var(--node); border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; }
.panel header { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--edge); background: var(--node-2); }
.panel header .ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.panel header .ico svg { width: 18px; height: 18px; }
.panel h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.panel .body { padding: 18px; }
.panel p { color: #C3C8D3; font-size: 15.5px; }
.params { margin-top: 18px; border-top: 1px dashed var(--edge); padding-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.params span { font-family: var(--mono); font-size: 12px; padding: 4px 9px; border-radius: 6px; background: #252A35; color: #D6DAE3; }

/* ---- clients: the execution log ---- */
.log { list-style: none; margin-top: 40px; border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; background: var(--node); }
.log li + li { border-top: 1px solid var(--edge); }
.log a { display: grid; grid-template-columns: 10px 92px 1fr 18px; grid-template-areas: "dot logo name arrow" "dot logo role arrow" ". what what what"; gap: 4px 16px; align-items: center; padding: 14px 18px; text-decoration: none; transition: background .15s; }
@media (min-width: 900px) { .log a { grid-template-columns: 10px 96px minmax(0, 1fr) 210px minmax(0, 1.5fr) 18px; grid-template-areas: "dot logo name role what arrow"; gap: 20px; } }
.log a:hover { background: var(--node-2); }
.log .dot { grid-area: dot; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px rgba(61, 220, 151, .6); }
.log .logo { grid-area: logo; width: 92px; height: 46px; border-radius: 8px; background: #fff; overflow: hidden; }
@media (min-width: 900px) { .log .logo { width: 96px; height: 48px; } }
/* The logos are 300×300 with the mark in a horizontal band: cover crops the empty top and bottom. */
.log .logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(.85); }
.log .logo.dark { background: #0B0C10; border: 1px solid var(--edge); }
.log .name { grid-area: name; font-weight: 600; font-size: 17px; }
.log .role { grid-area: role; justify-self: start; font-family: var(--mono); font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: rgba(110, 139, 255, .14); color: #AFC0FF; }
.log .role.c { background: rgba(61, 220, 151, .12); color: #8FEBC2; }
.log .role.e { background: rgba(255, 159, 90, .13); color: #FFC49A; }
.log .what { grid-area: what; color: var(--muted); font-size: 14.5px; }
.log .arrow { grid-area: arrow; color: var(--muted); }
.log a:hover .arrow { color: var(--text); }

/* ---- Second Shift: a small flow of its own ---- */
.ss { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .ss { grid-template-columns: 1fr 1.1fr; } }
.ss .label { color: var(--amber); }
.ss h2 { font-family: var(--mono); font-weight: 500; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.02em; }
.ss h2 span { color: var(--amber); }
.ss .intro a { color: var(--amber); }
.flow-ss { display: grid; grid-template-columns: .8fr .9fr 1.5fr; gap: 36px; align-items: center; --dir: row; }
.flow-ss .col { display: grid; gap: 16px; }
.flow-ss .node.ssnode { border-color: rgba(232, 163, 61, .45); background: var(--night); }
.flow-ss a.node { text-decoration: none; transition: border-color .2s; }
.flow-ss a.node:hover { border-color: var(--amber); }
.flow-ss a.node small { font-family: var(--sans); font-size: 13px; margin-top: 2px; }
.flow-ss .lamp { flex: none; width: 12px; height: 12px; border-radius: 3px; background: var(--amber); box-shadow: 0 0 12px rgba(232, 163, 61, .7); }
@media (max-width: 720px) { .flow-ss { grid-template-columns: 1fr; gap: 36px; --dir: column; } .flow-ss > .node { justify-self: center; } }

/* ---- footer: a status bar ---- */
footer { border-top: 1px solid var(--edge); background: rgba(16, 18, 23, .9); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding: 28px 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }
footer img { height: 29px; width: auto; }
footer a { text-decoration: none; color: var(--text); }
footer a:hover { color: var(--orange); }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
