/* ScaleUp Agency — design system v4 "Linee"
   Black surfaces and the neon spectrum, used as lines: every tool, service or
   source has its own colour, and the lines merge into one system — the idea the
   3D journey tells on the home page. Fonts are self-hosted (no third parties). */

@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #000000;
  --bg-2: #05040b;
  --panel: #09080f;
  --panel-2: #0f0d19;
  --panel-3: #171424;
  --line: rgba(206,200,255,.085);
  --line-2: rgba(206,200,255,.15);
  --line-3: rgba(206,200,255,.27);
  --text: #f4f4fa;
  --text-2: #a8a7c0;
  --text-3: #6e6d87;

  /* the lines: one colour per source, service or phase */
  --l1: #4cc9f0; --l2: #4895ef; --l3: #6f7cff; --l4: #a15cff; --l5: #db3fc6; --l6: #f72585;
  --c: var(--l1);
  --cyan: #4cc9f0; --blue: #4895ef; --blue-2: #4361ee; --indigo: #3f37c9; --pink: #f72585;
  /* aliases still used by the home journey */
  --s1: var(--l1); --s2: var(--l2); --s3: var(--l3); --s4: var(--l4); --s5: var(--l5); --s6: var(--l6);
  --surface: var(--panel); --surface-2: var(--panel-2); --surface-3: var(--panel-3);

  --grad-text: linear-gradient(92deg, #4cc9f0 0%, #4895ef 28%, #7b6bff 58%, #db3fc6 82%, #f72585 100%);
  --grad-line: linear-gradient(90deg, #4cc9f0, #4361ee 35%, #7209b7 70%, #f72585);
  --grad-wire: linear-gradient(90deg, #4cc9f0, #6f7cff 45%, #a15cff 75%, #db3fc6);
  --dots: radial-gradient(rgba(206,200,255,.22) 1px, transparent 1.4px);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --r: 14px;
  --r-sm: 10px;
  --nav-h: 68px;

  --f-d: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-b: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-m: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
.c1 { --c: var(--l1); } .c2 { --c: var(--l2); } .c3 { --c: var(--l3); }
.c4 { --c: var(--l4); } .c5 { --c: var(--l5); } .c6 { --c: var(--l6); }
.cn { --c: var(--text-3); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.menu-open { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-b); font-size: 16.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: rgba(76,201,240,.32); color: #fff; }
h1, h2, h3, h4 { font-family: var(--f-d); font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; margin: 0; color: var(--text); }
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
img { display: block; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(84px, 10vw, 136px); position: relative; }
.section.tight { padding-block: clamp(60px, 7vw, 96px); }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grad-text, .glow { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
section[id] { scroll-margin-top: 128px; }

/* a station: the ring every line starts from */
.st { display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--c); flex: none; box-shadow: 0 0 14px -2px color-mix(in srgb, var(--c) 80%, transparent); transition: background .2s; }

/* ---------- navigation: the bar is a line, the current page a station on it ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(0,0,0,.7); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--grad-wire); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; pointer-events: none; }
.nav .wrap { display: flex; align-items: center; height: var(--nav-h); gap: 10px; }
.brand { margin-right: auto; display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand img { display: block; height: 26px; width: auto; transition: filter .25s; }
.brand:hover img { filter: drop-shadow(0 0 10px rgba(76,201,240,.45)); }
.nav-links { display: flex; align-self: stretch; margin-right: 16px; }
.nav-links a { position: relative; display: flex; align-items: center; padding: 0 15px; color: var(--text-2); text-decoration: none; font-size: .94rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: #000; border: 2px solid var(--cyan); box-shadow: 0 0 12px rgba(76,201,240,.9); z-index: 2; }
.nav-end { display: flex; align-items: center; gap: 10px; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; padding: 9px 16px; border-radius: var(--r-sm); border: 1px solid rgba(76,201,240,.55); background: rgba(76,201,240,.08); white-space: nowrap; transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
.nav-cta:hover { background: var(--cyan); color: #03030a; border-color: var(--cyan); box-shadow: 0 0 30px -6px rgba(76,201,240,.75); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: rgba(255,255,255,.03); cursor: pointer; padding: 0; place-items: center; }
.nav-toggle { position: relative; }
.nav-toggle span { position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; margin: -.75px 0 0 -9px; background: #fff; transition: transform .25s; }
.nav-toggle span:first-child { transform: translateY(-3.5px); }
.nav-toggle span:last-child { transform: translateY(3.5px); }
.nav.open .nav-toggle span:first-child { transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { transform: rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav-links { position: fixed; left: 0; right: 0; top: var(--nav-h); height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h)); margin: 0; flex-direction: column; padding: 30px var(--gutter) 40px; background: #030307; border-top: 1px solid var(--line); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
  .nav.open .nav-links { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .nav-links a { padding: 16px 0 16px 42px; font-family: var(--f-d); font-size: 1.9rem; letter-spacing: -0.02em; color: var(--text-2); }
  .nav-links a::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid var(--line-3); background: #030307; z-index: 1; }
  .nav-links a::after, .nav-links a.active::after { content: ""; position: absolute; left: 7px; top: calc(50% + 8px); bottom: auto; width: 2px; height: calc(100% - 16px); margin: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--line-2); }
  .nav-links a:last-child::after { display: none; }
  .nav-links a.active::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 16px rgba(76,201,240,.8); }
}
@media (max-width: 420px) { .nav-cta { padding: 8px 12px; font-size: .84rem; } .brand img { height: 22px; } }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--f-b); font-weight: 600; font-size: .97rem; line-height: 1.2; text-decoration: none; padding: 14px 20px; border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s, color .2s; }
.btn .arr { display: inline-grid; place-items: center; width: 26px; height: 26px; margin: -4px -8px -4px 0; border-radius: 7px; transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary, .btn-glass { background: var(--cyan); color: #03030a; }
.btn-primary .arr, .btn-glass .arr { background: rgba(3,3,10,.13); }
.btn-primary:hover, .btn-glass:hover { background: #82dbf6; box-shadow: 0 14px 44px -14px rgba(76,201,240,.9); }
.btn-ghost { background: rgba(255,255,255,.02); color: #fff; border-color: var(--line-2); }
.btn-ghost:hover { border-color: rgba(76,201,240,.55); background: rgba(76,201,240,.06); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-weight: 600; font-size: .94rem; text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- labels & section heads ---------- */
.kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-m); font-weight: 500; font-size: .8rem; line-height: 1.4; letter-spacing: 0; color: var(--text-2); margin: 0 0 20px; }
.kicker::before { content: ""; flex: none; width: 32px; height: 12px;
  background: radial-gradient(circle at 6px 6px, transparent 2.6px, var(--c) 3.1px 5px, transparent 5.5px), linear-gradient(var(--c), var(--c)) 12px 5px / 20px 2px no-repeat; }
:is(.sec-head, .split, .about-copy, .form-card, .detail-main, .page-hero, .cta-band) p.kicker { margin-top: 0; font-size: .8rem; color: var(--text-2); max-width: none; }
.sec-head { max-width: 780px; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); letter-spacing: -0.03em; }
.sec-head p { color: var(--text-2); font-size: 1.08rem; margin-top: 18px; max-width: 62ch; }
.sec-head.center { text-align: left; }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 18px 40px; flex-wrap: wrap; }
.sec-head.row > div { max-width: 640px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(60px, 8vw, 112px) 0 clamp(64px, 8vw, 104px); border-bottom: 1px solid var(--line);
  background: radial-gradient(90% 120% at 84% -12%, #1f0e48 0%, #0c0722 38%, rgba(0,0,0,0) 72%), #000; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55; background-image: var(--dots); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(55% 70% at 78% 45%, #000, transparent 74%); mask-image: radial-gradient(55% 70% at 78% 45%, #000, transparent 74%); }
.page-hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.crumb { font-family: var(--f-m); font-size: .76rem; color: var(--text-3); margin-bottom: 30px; }
.crumb a { color: var(--text-2); text-decoration: none; }
.crumb a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(2.4rem, 4.8vw, 4.1rem); max-width: 15ch; letter-spacing: -0.04em; line-height: 1.03; }
.page-hero.plain h1 { max-width: 18ch; }
.page-hero p.lead { color: var(--text-2); font-size: clamp(1.04rem, 1.4vw, 1.17rem); max-width: 54ch; margin-top: 24px; }
.page-hero .actions { margin-top: 34px; }
.page-hero .facts { display: flex; flex-wrap: wrap; gap: 16px 34px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.page-hero .facts .k { font-family: var(--f-m); font-size: .74rem; color: var(--text-3); margin-bottom: 5px; }
.page-hero .facts .v { font-family: var(--f-d); font-weight: 500; font-size: 1.04rem; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- line diagram: sources (coloured lines) merging into one system ---------- */
.metro { position: relative; margin: 0; width: 100%; max-width: 540px; justify-self: end; aspect-ratio: var(--ar); container-type: inline-size; }
.metro svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.metro .wire, .metro .halo { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s cubic-bezier(.65,0,.35,1) forwards; animation-delay: calc(var(--i) * 90ms + 150ms); }
.metro .wire { stroke-width: 2.4; }
.metro .halo { stroke-width: 7; opacity: .2; filter: blur(3px); }
.metro .stn { fill: #000; stroke-width: 2.3; transform-box: fill-box; transform-origin: center; animation: pop .5s cubic-bezier(.2,.9,.3,1.3) backwards; animation-delay: calc(var(--i) * 90ms); }
.metro .pulse { fill: #fff; }
.metro .lab { text-shadow: 0 0 10px #000, 0 0 3px #000; position: absolute; right: calc(100% - var(--x)); top: var(--y); transform: translateY(-50%); font-size: clamp(11px, 3.3cqw, 15px); font-weight: 500; line-height: 1; color: var(--text-2); white-space: nowrap; }
.metro .term { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); transform: translateY(-50%); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 clamp(8px, 2.6cqw, 18px); border-radius: 12px; background: linear-gradient(180deg, #15121f, #0a0912); border: 1px solid var(--line-3); box-shadow: 0 24px 60px -20px rgba(76,201,240,.5), inset 0 1px 0 rgba(255,255,255,.07); }
.metro .term b { font-family: var(--f-d); font-weight: 500; font-size: clamp(13px, 3.9cqw, 19px); line-height: 1.15; letter-spacing: -0.015em; color: #fff; }
.metro .term small { font-family: var(--f-m); font-size: clamp(9px, 2.6cqw, 12.5px); line-height: 1.3; color: var(--cyan); }
.metro .term small::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); margin-right: 7px; vertical-align: .12em; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); opacity: 0; } }
@media (max-width: 960px) { .metro { justify-self: start; } }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--panel-2), var(--panel) 70%); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; color: inherit; text-decoration: none; transition: border-color .25s, transform .25s; }
a.card:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); transform: translateY(-2px); }
.card > .st { margin-bottom: 22px; }
a.card:hover > .st { background: var(--c); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px; flex: none; border: 1px solid color-mix(in srgb, var(--c) 42%, transparent); background: color-mix(in srgb, var(--c) 9%, transparent); }
.card .ico svg { width: 21px; height: 21px; stroke: var(--c); }
.card .num { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-m); font-size: .76rem; line-height: 1.4; color: var(--text-2); margin-bottom: 16px; }
.card .num::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--c); flex: none; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; letter-spacing: -0.015em; }
.card p { color: var(--text-2); font-size: .96rem; }
.card .more { margin-top: auto; padding-top: 22px; color: var(--c); font-weight: 600; font-size: .92rem; }
.card .more::after { content: " →"; }
.card ul.mini { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.card ul.mini li { position: relative; padding-left: 17px; color: var(--text-2); font-size: .93rem; line-height: 1.5; }
.card ul.mini li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--c); }
.card .ref { margin-top: auto; padding-top: 18px; }
.card .ref span { display: flex; gap: 9px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; font-family: var(--f-m); font-size: .76rem; line-height: 1.5; color: var(--text-2); }
.card .ref span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); flex: none; }
.card .stack { font-family: var(--f-m); font-size: .78rem; color: var(--c); margin-top: auto; padding-top: 16px; }
@media (max-width: 1000px) { .cards, .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards, .cards.two, .cards.four { grid-template-columns: 1fr; } }

/* ---------- intro split ---------- */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); letter-spacing: -0.035em; }
.split .copy p { color: var(--text-2); font-size: 1.05rem; margin-bottom: 18px; }
.split .copy .link-arrow { margin-top: 6px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- numbers: three stations on one line ---------- */
.stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); }
.stats::before { content: ""; position: absolute; left: calc(var(--gutter) + 7px); right: var(--gutter); top: 7px; height: 2px; opacity: .6; background: linear-gradient(90deg, var(--l1), var(--l4) 55%, var(--l6)); }
.stats .stat { position: relative; padding: 42px 24px 0 0; }
.stats .stat::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: #000; border: 2px solid var(--c); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 60%, transparent); }
.stats .stat:nth-child(1) { --c: var(--l1); } .stats .stat:nth-child(2) { --c: var(--l4); } .stats .stat:nth-child(3) { --c: var(--l6); }
.stats .n { font-family: var(--f-d); font-weight: 500; font-size: clamp(3.2rem, 6.4vw, 5rem); line-height: 1; letter-spacing: -0.05em; color: #fff; }
.stats .l { margin-top: 14px; color: var(--text-2); font-family: var(--f-m); font-size: .8rem; line-height: 1.5; max-width: 26ch; }
@media (max-width: 680px) {
  .stats { grid-template-columns: 1fr; }
  .stats::before { left: calc(var(--gutter) + 7px); right: auto; top: 8px; bottom: 30px; width: 2px; height: auto; background: linear-gradient(180deg, var(--l1), var(--l4) 55%, var(--l6)); }
  .stats .stat { padding: 0 0 34px 42px; }
}

/* ---------- sectors ---------- */
.cells { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cells > div { display: flex; align-items: center; gap: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 22px; color: var(--text); font-size: .98rem; font-weight: 500; transition: background .25s; }
.cells > div::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--line-3); flex: none; transition: border-color .25s, background .25s; }
.cells > div:hover { background: rgba(255,255,255,.025); }
.cells > div:hover::before { border-color: var(--cyan); background: var(--cyan); }
@media (max-width: 820px) { .cells { grid-template-columns: 1fr 1fr; } .cells > div { padding: 20px 16px; font-size: .94rem; } }

/* ---------- projects (anonymous works) ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.project { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .25s, transform .25s; --c: var(--l1); }
.project:nth-child(2) { --c: var(--l5); }
.project:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); transform: translateY(-2px); }
.project .visual { position: relative; height: 210px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(60% 90% at 70% 35%, color-mix(in srgb, var(--c) 20%, transparent), transparent 70%), #07060d; }
.project .visual::before { content: ""; position: absolute; inset: 0; background-image: var(--dots); background-size: 22px 22px; opacity: .45; }
.project .visual svg { position: absolute; left: 28px; top: 38px; width: 58%; height: auto; }
.project .visual .status { position: absolute; right: 18px; top: 18px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-m); font-size: .74rem; color: #fff; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.6); border: 1px solid var(--line-2); }
.project .visual .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.project .body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.project .sector { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-m); font-size: .76rem; color: var(--text-2); }
.project .sector::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--c); flex: none; }
.project h3 { font-size: 1.5rem; margin: 12px 0 10px; letter-spacing: -0.02em; }
.project p { color: var(--text-2); font-size: .98rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-family: var(--f-m); font-size: .72rem; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 9px; }
.project .go { margin-top: auto; padding-top: 22px; color: var(--c); font-weight: 600; font-size: .94rem; }
.project .go::after { content: " →"; }
.privacy-note { margin-top: 26px; color: var(--text-3); font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; }
.privacy-note svg { width: 18px; height: 18px; stroke: var(--text-3); flex: none; margin-top: 2px; }
@media (max-width: 820px) { .projects { grid-template-columns: 1fr; } }

/* ---------- services: sub-navigation (one station per service) ---------- */
.subnav { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(0,0,0,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { position: relative; flex: none; display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--f-m); font-size: .78rem; color: var(--text-2); padding: 15px 0; transition: color .2s; }
.subnav a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--c); flex: none; transition: background .2s, box-shadow .2s; }
.subnav a:hover, .subnav a.on { color: #fff; }
.subnav a.on::before { background: var(--c); box-shadow: 0 0 10px var(--c); }
.subnav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--c); }

/* ---------- service detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.detail-main h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 18ch; letter-spacing: -0.03em; }
.detail-main .lead { color: var(--text-2); font-size: 1.06rem; margin-top: 20px; max-width: 56ch; }
.mini-h { font-family: var(--f-m); font-size: .78rem; font-weight: 500; letter-spacing: 0; color: var(--text-3); margin: 36px 0 16px; }
.for-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.for-list li { position: relative; padding-left: 26px; }
.for-list li::before { content: ""; position: absolute; left: 1px; top: .5em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--c); box-sizing: border-box; }
.detail-side { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; position: sticky; top: 140px; }
.detail-side h3 { display: flex; align-items: center; gap: 10px; font-family: var(--f-m); font-size: .8rem; font-weight: 500; letter-spacing: 0; color: var(--text-2); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.detail-side h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--c); flex: none; }
.detail-side .btn { width: 100%; }
.checklist { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; color: var(--text-2); font-size: .96rem; line-height: 1.5; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .1em; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--c) 70%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); box-sizing: border-box; }
.checklist li::after { content: ""; position: absolute; left: 7.5px; top: calc(.1em + 5px); width: 5px; height: 8px; border: solid var(--c); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checklist li b { color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } .detail-side { position: static; } }
.mod-head { margin: clamp(60px, 7vw, 92px) 0 26px; }
.proof { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; padding: 16px 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.proof .proof-k { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-m); font-size: .76rem; color: var(--text-2); margin-right: 6px; }
.proof .proof-k::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.proof a { color: var(--text); text-decoration: none; font-size: .92rem; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 13px; transition: border-color .2s, background .2s; }
.proof a:hover { border-color: var(--cyan); background: rgba(76,201,240,.06); }

/* Growly: the pink line */
.growly { position: relative; overflow: hidden; background: #040308; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); --c: var(--l6); }
.growly::before { content: ""; position: absolute; width: 760px; height: 760px; left: -260px; top: -300px; background: radial-gradient(circle, rgba(114,9,183,.32), transparent 62%); pointer-events: none; }
.growly::after { content: ""; position: absolute; width: 640px; height: 640px; right: -240px; bottom: -280px; background: radial-gradient(circle, rgba(247,37,133,.15), transparent 62%); pointer-events: none; }
.growly .wrap { position: relative; z-index: 1; }
.growly .detail-side { background: rgba(15,13,25,.9); }
.mini-steps { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 18px; counter-reset: st; }
.mini-steps li { counter-increment: st; position: relative; padding-left: 44px; color: var(--text-2); font-size: .95rem; line-height: 1.5; }
.mini-steps li::before { content: counter(st); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-m); font-weight: 600; font-size: .76rem; color: #fff; background: #000; border: 2px solid var(--c); box-sizing: border-box; z-index: 1; }
.mini-steps li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 27px; bottom: -19px; width: 2px; background: color-mix(in srgb, var(--c) 45%, transparent); }
.mini-steps li b { display: block; color: #fff; font-family: var(--f-d); font-weight: 500; font-size: 1rem; margin-bottom: 2px; }
.g-mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(52px, 6vw, 80px); }
.g-mod { background: rgba(10,9,17,.88); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; transition: border-color .2s; }
.g-mod:hover { border-color: rgba(247,37,133,.45); }
.g-mod .g-k { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-m); font-size: .72rem; color: #ff6fb0; }
.g-mod .g-k::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 2px solid #f72585; }
.g-mod h4 { font-size: 1.05rem; margin: 8px 0 6px; font-weight: 500; }
.g-mod p { color: var(--text-2); font-size: .92rem; line-height: 1.5; }
@media (max-width: 900px) { .g-mods { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .g-mods { grid-template-columns: 1fr; } }
.compare-wrap { margin-top: clamp(52px, 6vw, 80px); }
.compare-wrap h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 22px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; font-size: .97rem; }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--f-d); font-weight: 500; background: var(--panel-2); }
.compare thead th.hl { color: #ff6fb0; }
.compare tbody th { color: var(--text-3); width: 20%; font-family: var(--f-m); font-size: .78rem; font-weight: 500; }
.compare td { color: var(--text-2); line-height: 1.5; }
.compare td + td { background: rgba(247,37,133,.04); color: var(--text); }
.compare-note { color: var(--text-2); margin-top: 16px; font-size: .96rem; }
@media (max-width: 720px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border-bottom: 1px solid var(--line); padding: 16px 18px; }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th { padding: 0 0 6px; border: 0; width: auto; }
  .compare td { padding: 4px 0; border: 0; }
  .compare td + td { background: none; }
  .compare td::before { content: attr(data-l); display: block; font-family: var(--f-m); font-size: .72rem; color: var(--cyan); margin-top: 8px; }
  .compare td + td::before { color: #ff6fb0; }
}

/* automations: event ──● action */
.flows { display: grid; gap: 10px; }
.flow { display: grid; grid-template-columns: 1fr 72px 1fr; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; }
.flow .ev { font-weight: 500; font-size: .96rem; }
.flow .arrow { position: relative; height: 12px; font-size: 0; color: transparent; }
.flow .arrow::before { content: ""; position: absolute; left: 0; right: 8px; top: 5px; height: 2px; background: linear-gradient(90deg, var(--line-3), var(--c)); }
.flow .arrow::after { content: ""; position: absolute; right: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.flow .ac { color: var(--c); font-weight: 600; font-size: .96rem; }
.flow .ac small { display: block; color: var(--text-3); font-family: var(--f-m); font-weight: 500; font-size: .72rem; margin-top: 4px; }
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; gap: 6px; }
  .flow .arrow { width: 12px; height: 22px; }
  .flow .arrow::before { left: 5px; right: auto; top: 0; bottom: 10px; width: 2px; height: auto; background: linear-gradient(180deg, var(--line-3), var(--c)); }
  .flow .arrow::after { top: auto; bottom: 0; }
}
.honest { margin-top: 28px; padding: 16px 18px 16px 20px; border-left: 2px solid var(--c); background: color-mix(in srgb, var(--c) 6%, transparent); border-radius: 0 10px 10px 0; color: var(--text-2); font-size: .96rem; max-width: 58ch; }
.honest b { color: var(--text); }

/* ---------- method: four stations, the last one continues ---------- */
.tl { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.tl::before { content: ""; position: absolute; left: 8px; width: calc(75% + 21px - 8px); top: 7px; height: 2px; background: linear-gradient(90deg, var(--l1), var(--l3) 45%, var(--l4) 80%, var(--l5)); }
.tl::after { content: ""; position: absolute; left: calc(75% + 21px); right: 0; top: 7px; height: 2px; background: repeating-linear-gradient(90deg, var(--l5) 0 6px, transparent 6px 13px); opacity: .8; }
.tl-item { position: relative; padding-top: 42px; }
.tl-item::after { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: #000; border: 2px solid var(--c); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 60%, transparent); z-index: 1; }
.tl-item:nth-child(1) { --c: var(--l1); } .tl-item:nth-child(2) { --c: var(--l3); } .tl-item:nth-child(3) { --c: var(--l4); } .tl-item:nth-child(4) { --c: var(--l5); }
.tl-num { font-family: var(--f-m); font-size: .78rem; color: var(--c); }
.tl-card h3 { font-size: 1.35rem; margin: 10px 0 8px; }
.tl-card p { color: var(--text-2); font-size: .97rem; }
@media (max-width: 860px) {
  .tl { grid-template-columns: 1fr; gap: 0; }
  .tl::before { left: 7px; width: 2px; top: 8px; bottom: 60px; height: auto; background: linear-gradient(180deg, var(--l1), var(--l3) 45%, var(--l4) 80%, var(--l5)); }
  .tl::after { left: 7px; right: auto; top: auto; bottom: 0; width: 2px; height: 60px; background: repeating-linear-gradient(180deg, var(--l5) 0 6px, transparent 6px 13px); }
  .tl-item { padding: 0 0 36px 44px; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-family: var(--f-d); font-weight: 500; font-size: 1.12rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .mk { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; color: var(--cyan); font-family: var(--f-m); font-size: 1rem; line-height: 1; transition: transform .2s, border-color .2s; }
.faq details[open] summary .mk { transform: rotate(45deg); border-color: rgba(76,201,240,.5); }
.faq details p { margin: 0 0 22px; color: var(--text-2); max-width: 70ch; }

/* ---------- final call to action ---------- */
.cta-band { position: relative; padding-block: clamp(64px, 8vw, 112px); background: #000; }
.cta-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px 56px; align-items: end; padding: clamp(30px, 5vw, 64px); border-radius: 22px; border: 1px solid var(--line-2);
  background: radial-gradient(70% 130% at 100% 0%, rgba(114,9,183,.42), transparent 62%), radial-gradient(60% 120% at 0% 110%, rgba(67,97,238,.2), transparent 65%), #07060e; }
.cta-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--dots); background-size: 24px 24px; opacity: .45;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.cta-panel > * { position: relative; }
.cta-band h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); max-width: 15ch; letter-spacing: -0.04em; line-height: 1.04; }
.cta-copy > p:not(.kicker) { color: var(--text-2); max-width: 52ch; margin-top: 18px; font-size: 1.06rem; }
.cta-act { justify-self: end; display: grid; gap: 14px; justify-items: start; }
.cta-act small { color: var(--text-3); font-family: var(--f-m); font-size: .76rem; }
@media (max-width: 820px) { .cta-panel { grid-template-columns: 1fr; } .cta-act { justify-self: start; } }

/* ---------- footer: the services list is the legend of the lines ---------- */
.footer { background: #000; border-top: 1px solid var(--line); padding: 72px 0 32px; color: var(--text-2); font-size: .92rem; }
.footer .top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand img { height: 30px; }
.footer .about p { margin-top: 18px; max-width: 34ch; line-height: 1.6; }
.footer h4 { font-family: var(--f-m); font-size: .78rem; font-weight: 500; letter-spacing: 0; color: var(--text-3); margin: 0 0 18px; }
.footer a { color: var(--text-2); text-decoration: none; }
.footer .col a { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; width: fit-content; }
.footer .col a.lg::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--c); flex: none; }
.footer .col span { display: block; }
.footer a:hover { color: #fff; }
.footer .legal { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: .8rem; color: var(--text-3); font-family: var(--f-m); }
.footer .legal a { color: var(--text-3); margin-left: 18px; }
.footer .legal a:first-child { margin-left: 0; }
@media (max-width: 880px) { .footer .top { grid-template-columns: 1fr 1fr; } .footer .about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer .top { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 22px; letter-spacing: -0.03em; }
.about-copy p { color: var(--text-2); margin-bottom: 16px; max-width: 54ch; }
.about-copy p strong { color: var(--text); font-weight: 600; }
.creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cred { display: inline-flex; align-items: center; gap: 9px; font-size: .86rem; font-weight: 500; color: var(--text); background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 13px; }
.cred::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.about-card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; position: relative; overflow: hidden; }
.bio { display: flex; align-items: center; gap: 15px; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.avatar { width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--f-d); font-weight: 600; color: #fff; font-size: 1.05rem; border: 2px solid transparent; background: linear-gradient(#0d0b17, #0d0b17) padding-box, conic-gradient(from 210deg, #4cc9f0, #4361ee, #7209b7, #f72585, #4cc9f0) border-box; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.bio-name { font-family: var(--f-d); font-weight: 500; font-size: 1.12rem; }
.bio-role { color: var(--text-2); font-size: .9rem; margin-top: 2px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 22px 30px; --c: var(--l3); }
.timeline li:nth-child(1) { --c: var(--l1); } .timeline li:nth-child(3) { --c: var(--l4); } .timeline li.now { --c: var(--cyan); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: -2px; width: 2px; background: color-mix(in srgb, var(--c) 40%, transparent); }
.timeline li:last-child::before { display: none; }
.t-dot { position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #000; border: 2px solid var(--c); box-sizing: border-box; }
.timeline li.now .t-dot { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.t-when { font-family: var(--f-d); font-weight: 500; font-size: .95rem; color: #fff; }
.t-what { color: var(--text-2); font-size: .94rem; margin-top: 3px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.form-card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 4vw, 38px); }
.form-card h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: 8px; }
.form-card > p { color: var(--text-2); margin-bottom: 26px; }
.form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-family: var(--f-m); font-size: .76rem; color: var(--text-2); font-weight: 500; margin-bottom: 8px; }
.field label .opt { color: var(--text-3); }
.field input, .field select, .field textarea { width: 100%; background: #05040a; border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--text); font: inherit; font-size: .98rem; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8a7c0' stroke-width='2' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(76,201,240,.2); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--text-2); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--cyan); flex: none; }
.check a { color: var(--cyan); }
.form .btn { width: 100%; }
.form-ok { border: 1px solid rgba(76,201,240,.4); background: rgba(76,201,240,.08); border-radius: var(--r-sm); padding: 14px 16px; color: var(--text); font-size: .94rem; }
.info-card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; position: relative; overflow: hidden; }
.info-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.info-card .row { padding: 15px 0; border-bottom: 1px solid var(--line); }
.info-card .row:last-of-type { border-bottom: 0; }
.info-card .k { display: flex; align-items: center; gap: 9px; font-family: var(--f-m); font-size: .74rem; color: var(--text-3); font-weight: 500; margin-bottom: 4px; }
.info-card .k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--cyan); }
.info-card .v, .info-card .v a { color: var(--text); text-decoration: none; }
.info-card .v a:hover { color: var(--cyan); }
.info-card + .info-card { margin-top: 18px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- article (project pages, privacy) ---------- */
.article { padding-block: clamp(64px, 8vw, 104px); }
.article .wrap { max-width: 780px; }
.article h2 { font-size: clamp(1.6rem, 2.8vw, 2rem); margin: 52px 0 18px; letter-spacing: -0.02em; }
.article h2:first-child { margin-top: 0; }
.article p { color: var(--text-2); margin-bottom: 18px; }
.article p a { color: var(--cyan); text-decoration: none; }
.article p a:hover { text-decoration: underline; }
.article ul { padding-left: 0; list-style: none; margin: 0 0 24px; display: grid; gap: 13px; }
.article li { padding-left: 28px; position: relative; color: var(--text-2); }
.article li strong { color: var(--text); font-weight: 600; }
.article li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--cyan); box-sizing: border-box; }
.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 12px 0 44px; }
.fact { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; --c: var(--l1); }
.fact::before { content: ""; display: block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--c); margin-bottom: 16px; box-shadow: 0 0 12px -2px var(--c); }
.fact:nth-child(2) { --c: var(--l4); } .fact:nth-child(3) { --c: var(--l5); }
.fact .t { font-family: var(--f-d); font-weight: 500; font-size: 1.15rem; color: #fff; }
.fact .d { color: var(--text-2); font-size: .9rem; margin-top: 6px; }
.callout { position: relative; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); padding: 28px 30px; margin: 26px 0 44px; overflow: hidden; }
.callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--l1), var(--l4)); }
.callout p { color: var(--text); margin: 0; font-size: 1.04rem; }
.callout .tiny { color: var(--text-3); font-size: .84rem; margin-top: 12px; }
@media (max-width: 680px) { .facts-row { grid-template-columns: 1fr; } }

/* ---------- 404: the line is interrupted ---------- */
.notfound { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; text-align: center; padding: 80px 0; position: relative; overflow: hidden; }
.notfound::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 40%, rgba(114,9,183,.28), transparent 70%); pointer-events: none; }
.notfound .wrap { position: relative; }
.notfound .code { font-family: var(--f-d); font-weight: 600; font-size: clamp(6rem, 18vw, 11rem); line-height: 1; letter-spacing: -0.06em; }
.notfound .broken { display: block; width: 240px; height: auto; margin: 22px auto 0; }
.notfound p { color: var(--text-2); margin: 22px auto 34px; max-width: 44ch; }
.notfound .actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .metro .wire, .metro .halo { animation: none; stroke-dashoffset: 0; }
  .metro .stn { animation: none; }
  .metro .pulse { display: none; }
}

/* ---------- immersive background on the inner pages (network.js) ---------- */
#net { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: -1; display: block; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
#net.on { opacity: 1; }
body.has-net .page-hero { background: radial-gradient(70% 100% at 86% -10%, rgba(40,16,96,.5), transparent 70%); }
body.has-net .page-hero::before { display: none; }
body.has-net .alt { background: transparent; }
body.has-net .growly { background: rgba(4,3,8,.42); }
body.has-net .page-hero h1, body.has-net .page-hero .lead, body.has-net .sec-head h2, body.has-net .detail-main h2 { text-shadow: 0 2px 28px rgba(0,0,0,.75); }
body.has-net .glow, body.has-net .grad-text { text-shadow: none; }
body.has-net .cta-band { background: transparent; }
body.has-net .footer { background: rgba(0,0,0,.8); }
body.has-net .notfound::before { background: radial-gradient(50% 60% at 50% 40%, rgba(114,9,183,.16), transparent 70%); }
/* home: the network takes over after the 3D journey (it fades in as the content rises) */
body.immersive #net { z-index: 1; transition: none; }
body.immersive.has-net .content { background: linear-gradient(180deg, rgba(0,0,0,.92) 0, rgba(0,0,0,.55) 240px, rgba(0,0,0,0) 560px); }
body.has-net .cells > div { background: rgba(5,4,11,.55); }
body.has-net .split h2 { text-shadow: 0 2px 28px rgba(0,0,0,.75); }
html.no-net #net { display: none; }
html.no-net body.has-net { background: #000 url("img/rete-neurale.webp") center top / cover no-repeat fixed; }

/* =====================================================================
   HOME — cinematic scroll journey (WebGL) above the content
   ===================================================================== */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
body.immersive { background: #000; }
body.no3d #scene { display: none; }
.journey-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 110% at 78% 6%, #24104f 0%, #0d0820 40%, #000 72%); }
.journey { position: relative; z-index: 1; }
.act { min-height: 100vh; display: flex; align-items: center; position: relative; }
.act .wrap { width: 100%; }
.act-inner { max-width: 46rem; will-change: opacity, transform; }
.act .eyebrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; row-gap: 4px; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 26px; text-shadow: 0 1px 20px rgba(0,0,0,.8); }
.act .eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(247,37,133,.6); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(247,37,133,.55); } 70% { box-shadow: 0 0 0 10px rgba(247,37,133,0); } 100% { box-shadow: 0 0 0 0 rgba(247,37,133,0); } }
.act h1.big { font-size: clamp(2.3rem, 5vw, 4.3rem); color: #fff; letter-spacing: -0.045em; line-height: 1.02; font-weight: 500; text-shadow: 0 2px 50px rgba(0,0,0,.6); }
.act h1.big .glow, .cap-title .glow { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.act p.big { color: #cfd0e6; font-size: clamp(1.06rem, 1.8vw, 1.32rem); margin-top: 22px; max-width: 44ch; line-height: 1.55; text-shadow: 0 1px 24px rgba(0,0,0,.8); }
.act-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-trust { margin-top: 30px; display: flex; gap: 10px 28px; flex-wrap: wrap; color: var(--text-2); font-size: .88rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 9px; }
.hero-trust span::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero-trust span:nth-child(2)::before { background: var(--s4); box-shadow: 0 0 10px var(--s4); }
.hero-trust span:nth-child(3)::before { background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.scrollhint { margin-top: 42px; color: var(--text-2); font-size: .86rem; display: flex; align-items: center; gap: 12px; transition: opacity .4s; }
.scrollhint .mouse { width: 23px; height: 36px; border: 1.5px solid var(--text-2); border-radius: 12px; position: relative; flex: none; }
.scrollhint .mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px; background: var(--cyan); transform: translateX(-50%); animation: scrolld 1.6s infinite; }
@keyframes scrolld { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 13px); } }

/* readability + film look */
.hero-scrim { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: var(--hs, 1);
  background: linear-gradient(100deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 34%, rgba(0,0,0,0) 64%); }
.vignette { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(125% 125% at 50% 42%, transparent 52%, rgba(0,0,0,.66) 100%), linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 36%); }
.letterbox { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: var(--lb, 0); }
.letterbox::before, .letterbox::after { content: ""; position: absolute; left: 0; right: 0; height: 12vh; }
.letterbox::before { top: 0; background: linear-gradient(to bottom, #000 35%, rgba(0,0,0,0)); }
.letterbox::after { bottom: 0; background: linear-gradient(to top, #000 35%, rgba(0,0,0,0)); }
.grain { position: fixed; inset: -50%; z-index: 0; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grain 1.1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-4%); } 60% { transform: translate(-4%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); } }

/* chapters: lower-third captions that enter like film titles */
.act.chapter { min-height: 120vh; align-items: flex-end; }
.act.chapter .wrap { padding-bottom: 26vh; }
.act.finale .wrap { text-align: center; padding-bottom: 14vh; }
.cap { max-width: min(44rem, 100%); opacity: 0; transition: opacity .8s ease; }
.act.finale .cap { max-width: 46rem; margin: 0 auto; }
.cap.on { opacity: 1; }
.act .tagnum { font-family: var(--f-m); color: var(--cyan); font-weight: 500; font-size: .82rem; letter-spacing: .06em; margin-bottom: 16px; display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase; }
.act .tagnum::before { content: ""; width: 28px; height: 1px; background: var(--grad-line); display: inline-block; transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.16,1,.3,1) .1s; }
.cap.on .tagnum::before { transform: none; }
.cap-title { color: #fff; font-size: clamp(1.95rem, 3.5vw, 3.1rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; text-shadow: 0 2px 40px rgba(0,0,0,.6); }
.cap-text { color: #cfd0e6; font-size: clamp(1rem, 1.45vw, 1.15rem); line-height: 1.55; margin-top: 14px; max-width: 36ch; text-shadow: 0 1px 20px rgba(0,0,0,.8); }
.act.finale .cap-title { font-size: clamp(1.95rem, 3.1vw, 2.85rem); }
.act.finale .cap-text { max-width: 40rem; margin-left: auto; margin-right: auto; }
.ln { display: block; overflow: hidden; padding-bottom: .08em; }
.ln > span { display: block; transform: translateY(110%); transition: transform 1.15s cubic-bezier(.16,1,.3,1); transition-delay: var(--d, 0s); }
.cap.on .ln > span { transform: none; }
.cap .act-actions { opacity: 0; transform: translateY(14px); transition: opacity .8s ease .4s, transform .8s ease .4s; }
.cap.on .act-actions { opacity: 1; transform: none; }
.act.finale .act-actions { justify-content: center; }

/* content after the journey */
.content { position: relative; z-index: 2; background: #000; box-shadow: 0 -60px 90px -10px #000; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* static states: no WebGL / reduced motion */
body.no3d .act { min-height: auto; padding-block: 11vh; }
body.no3d .act-inner { opacity: 1 !important; transform: none !important; }
body.no3d .cap, body.static3d .cap { opacity: 1; }
body.no3d .ln > span, body.static3d .ln > span { transform: none; }
body.no3d .cap .act-actions, body.static3d .cap .act-actions { opacity: 1; transform: none; }
body.no3d .tagnum::before, body.static3d .tagnum::before { transform: none; }
body.no3d .act.chapter { min-height: auto; }
body.no3d .act.chapter .wrap, body.no3d .act.finale .wrap { padding-bottom: 0; }
body.no3d .letterbox, body.no3d .hero-scrim, body.no3d .vignette { display: none; }
@media (prefers-reduced-motion: reduce) {
  .grain, .scrollhint .mouse::after, .act .eyebrow .pulse { animation: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 640px) { .act { min-height: 92vh; } .act.chapter { min-height: 110vh; } .act.chapter .wrap { padding-bottom: 20vh; } }
/* portrait screens: the gestionale sits in the upper half, copy at the bottom */
@media (max-aspect-ratio: 9/10) {
  body.immersive .act { align-items: flex-end; }
  body.immersive .act .wrap { padding-bottom: 9vh; }
  .hero-scrim { display: none; }
  .vignette { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,.25) 46%, rgba(0,0,0,.9) 74%); }
  body.immersive .act.chapter .wrap { padding-bottom: 22vh; }
  body.immersive .act.finale .wrap { padding-bottom: 10vh; }
  .letterbox::before, .letterbox::after { height: 7vh; }
  body.no3d .act { align-items: center; }
}
body.immersive .footer { position: relative; z-index: 2; }

/* === pagine settore e contributi === */
/* module cards: modules built on request carry a dashed "Su richiesta" badge */
.card .badge { position: absolute; top: 22px; right: 22px; font-family: var(--f-m); font-size: .7rem; line-height: 1; color: var(--text-2); padding: 6px 9px; border-radius: 999px; border: 1px dashed var(--line-3); background: rgba(0,0,0,.35); }
/* links inside FAQ answers */
.faq details p a { color: var(--cyan); text-decoration: none; }
.faq details p a:hover { text-decoration: underline; }
/* demo invitation band (sector pages) */
.demo-band { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; padding: clamp(26px, 4vw, 44px); border-radius: 22px; border: 1px solid var(--line-2);
  background: radial-gradient(80% 140% at 100% 0%, rgba(219,63,198,.16), transparent 60%), linear-gradient(180deg, var(--panel-2), var(--panel)); }
.demo-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; }
.demo-copy { max-width: 620px; }
.demo-copy > p:not(.kicker) { color: var(--text-2); margin-top: 14px; font-size: 1.04rem; }
/* incentives: one card per call, status chip on top */
.bandi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bando { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel) 70%); overflow: hidden; }
.bando::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--c), transparent 80%); }
.bando .chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-m); font-size: .74rem; line-height: 1.3; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); background: rgba(0,0,0,.4); }
.bando .chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.bando .chip.off { color: var(--text-2); }
.bando .chip.off::before { background: transparent; border: 1.5px solid var(--text-3); box-shadow: none; box-sizing: border-box; }
.bando-org { font-family: var(--f-m); font-size: .76rem; line-height: 1.4; color: var(--text-2); }
.bando h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.015em; margin-top: -6px; }
.bando dl { margin: 4px 0 0; display: grid; gap: 12px; }
.bando dl > div { padding-top: 12px; border-top: 1px solid var(--line); }
.bando dt { font-family: var(--f-m); font-size: .72rem; color: var(--text-3); margin-bottom: 4px; }
.bando dd { margin: 0; color: var(--text-2); font-size: .94rem; line-height: 1.55; }
.bando-note { padding: 12px 14px; border-left: 2px solid var(--c); background: color-mix(in srgb, var(--c) 7%, transparent); border-radius: 0 10px 10px 0; color: var(--text); font-size: .9rem; line-height: 1.5; }
.bando-links { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: auto; padding-top: 4px; }
.bando-links a { color: var(--text); text-decoration: none; font-size: .9rem; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 12px; transition: border-color .2s, background .2s; }
.bando-links a:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, transparent); }
.bandi-foot { margin-top: 22px; color: var(--text-2); font-size: .96rem; max-width: 70ch; }
@media (max-width: 1000px) { .bandi { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .bandi { grid-template-columns: 1fr; } .bando { padding: 22px; } }
/* official sources and disclaimer */
.sources { margin-top: 44px; padding: 22px 24px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(9,8,15,.72); max-width: 860px; }
.sources h3 { font-family: var(--f-m); font-size: .78rem; font-weight: 500; letter-spacing: 0; color: var(--text-3); margin-bottom: 12px; }
.sources ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.sources li { position: relative; padding-left: 18px; font-size: .93rem; line-height: 1.5; }
.sources li::before { content: ""; position: absolute; left: 1px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.sources a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(76,201,240,.45); text-underline-offset: 3px; }
.sources a:hover { color: var(--cyan); }
.sources p { color: var(--text-3); font-size: .86rem; line-height: 1.55; }
/* === fine pagine settore e contributi === */

/* === integrazione: footer a cinque colonne, moduli su richiesta, demo, scadenze dei bandi === */
.footer .top { grid-template-columns: 1.4fr 1fr 1fr 1.15fr 1fr; gap: 36px; }
@media (max-width: 1100px) { .footer .top { grid-template-columns: repeat(4, 1fr); } .footer .about { grid-column: 1 / -1; } }
@media (max-width: 880px) { .footer .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer .top { grid-template-columns: 1fr; } }
.cards.mod-req { margin-top: 16px; }
.proof + .proof { margin-top: 10px; }
.demo-band.mod-demo { margin-top: 28px; }
.cells > a { display: flex; align-items: center; gap: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 22px; color: var(--text); font-size: .98rem; font-weight: 500; text-decoration: none; transition: background .25s; }
.cells > a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--cyan); flex: none; transition: background .25s; }
.cells > a::after { content: "→"; margin-left: auto; color: var(--cyan); transition: transform .25s; }
.cells > a:hover { background: rgba(76,201,240,.06); }
.cells > a:hover::before { background: var(--cyan); }
.cells > a:hover::after { transform: translateX(3px); }
@media (max-width: 820px) { .cells > a { padding: 20px 16px; font-size: .94rem; } }
body.has-net .cells > a { background: rgba(5,4,11,.55); }
body.has-net .cells > a:hover { background: rgba(14,30,44,.7); }
/* testimonials (the section in lavori.html is switched off until there are real quotes) */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote { position: relative; margin: 0; padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.quote::before { content: "\201C"; position: absolute; top: 8px; right: 22px; font-family: var(--f-d); font-size: 4rem; line-height: 1; color: var(--cyan); opacity: .35; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--f-d); font-size: 1.2rem; line-height: 1.45; color: var(--text); }
.quote figcaption { margin-top: 18px; font-family: var(--f-m); font-size: .8rem; color: var(--text-2); }
.quote figcaption b { color: var(--text); font-weight: 500; }
.quotes-more { margin-top: 20px; }
.quotes-more a { color: var(--cyan); text-decoration: none; }
.quotes-more a:hover { text-decoration: underline; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }
