/* Play2Business — Business meets play */

@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/dm-sans.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/assets/fonts/space-grotesk.woff2) format("woff2"); }

:root {
  --bg: #0B1020;
  --bg-2: #10172C;
  --surface: #151D35;
  --surface-2: #1B2542;
  --line: rgba(245, 246, 241, 0.09);
  --line-strong: rgba(245, 246, 241, 0.18);
  --text: #F5F6F1;
  --muted: #A9B3C7;
  --paper: #F5F6F1;
  --paper-2: #FFFFFF;
  --ink: #0E1424;
  --ink-muted: #4A5568;
  --ink-line: #E1E4DC;
  --lime: #8CD321;
  --lime-ink: #3F7A0A;
  --cyan: #14C3D0;
  --blue: #1F5BE0;
  --blue-light: #5B8CFF;
  --gradient: linear-gradient(90deg, var(--lime) 0%, var(--cyan) 50%, var(--blue) 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--lime); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap;
  padding: 8px 9px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(245,246,241,.06); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--lime); border-radius: 8px 8px 0 0; background: none; }
.lang { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; letter-spacing: .06em; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.lang a, .lang span { text-decoration: none; padding: 4px 9px; border-radius: 999px; color: var(--muted); }
.lang span { background: var(--text); color: var(--ink); }
.lang a:hover { color: var(--text); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); color: var(--text); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: .01em;
  text-decoration: none; padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn .tri { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .25s var(--ease); }
.btn:hover .tri { transform: translateX(3px); }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(140, 211, 33, .6); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { transform: translateY(-2px); }
.nav-links a.btn { padding: 10px 18px; font-size: 14px; margin-left: 8px; color: var(--ink); background: var(--lime); box-shadow: none; border-radius: 999px; }
.nav-links a.btn:hover { color: var(--ink); background: var(--lime); }
.muted { color: var(--muted); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: currentColor; border-radius: 2px; }
.eyebrow.cyan { color: var(--cyan); }
.eyebrow.blue { color: var(--blue-light); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 640px; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 780px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 58px); }
.hl { color: var(--lime); }
.grad-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

section { position: relative; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section.alt { background: var(--bg-2); }
.section.paper { background: var(--paper); color: var(--ink); }
.section.paper .lead, .section.paper .muted { color: var(--ink-muted); }
.section.paper .eyebrow { color: var(--lime-ink); }
.section.paper .eyebrow.cyan { color: #0B7F88; }
.section.paper .eyebrow.blue { color: var(--blue); }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 9vw, 120px); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(52px, 8.4vw, 116px); font-weight: 700; letter-spacing: -0.035em; line-height: .95; margin: 22px 0 26px; }
.hero h1 .play { color: var(--lime); position: relative; white-space: nowrap; }
.hero h1 .play::after {
  content: ""; display: inline-block; width: .32em; height: .32em; margin-left: .12em; vertical-align: .08em;
  background: var(--lime); clip-path: polygon(0 0, 100% 50%, 0 100%);
  animation: blink 1.4s steps(2, jump-none) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero .lead { margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* interactive tile board */
.board {
  position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; justify-self: end;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px;
}
.tile { border-radius: 6px; background: rgba(245,246,241,.035); border: 1px solid rgba(245,246,241,.05); transition: background 1.2s var(--ease), transform .6s var(--ease), border-color 1.2s; }
.tile.on { transition: background .15s, transform .15s, border-color .15s; transform: scale(.92); }
.tile.on.c1 { background: var(--lime); border-color: var(--lime); }
.tile.on.c2 { background: var(--cyan); border-color: var(--cyan); }
.tile.on.c3 { background: var(--blue); border-color: var(--blue); }
.tile.piece { pointer-events: none; }
.tile.p-sq { background: none; border: 4px solid var(--lime); }
.tile.p-ci { background: var(--cyan); border-color: var(--cyan); border-radius: 50%; }
.tile.p-tr { background: none; border-color: transparent; position: relative; }
.tile.p-tr::before { content: ""; position: absolute; inset: 14%; background: var(--blue-light); clip-path: polygon(10% 0, 100% 50%, 10% 100%); }
.tile.p-ring { background: none; border: 4px solid var(--blue-light); border-radius: 50%; }
.board-caption { position: absolute; left: 0; bottom: -34px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }

/* inner page hero */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero .hero-grid { grid-template-columns: 1.3fr 1fr; }
.page-hero h1 { font-size: clamp(44px, 6.4vw, 84px); letter-spacing: -0.03em; margin: 20px 0 24px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-strong); padding: 6px 12px; border-radius: 999px; color: var(--text); margin-left: 12px; vertical-align: middle; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-light); box-shadow: 0 0 0 4px rgba(91,140,255,.2); }

/* geometric compositions */
.shapes { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 420px; justify-self: end; }
.shapes > * { position: absolute; transition: transform 1s var(--ease); }
.shapes .s-sq { border-radius: 18px; }
.shapes .s-ci { border-radius: 50%; }
.shapes .s-tr { clip-path: polygon(0 0, 100% 50%, 0 100%); }
.shapes .s-ring { border-radius: 50%; border: 10px solid; }
.shapes .s-grid { inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 12.5% 12.5%; border: 1px solid var(--line); border-radius: 12px; }
.shapes:hover .s-a { transform: translate(-10px, -10px) rotate(-8deg); }
.shapes:hover .s-b { transform: translate(12px, 6px); }
.shapes:hover .s-c { transform: translate(-6px, 12px) rotate(10deg); }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.service {
  position: relative; display: flex; flex-direction: column; gap: 16px; min-height: 420px;
  padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.service:hover { transform: translateY(-6px); border-color: var(--accent, var(--lime)); background: var(--surface-2); }
.service .num { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--accent, var(--lime)); letter-spacing: .1em; }
.service h3 { font-size: clamp(28px, 2.6vw, 36px); }
.service p { color: var(--muted); }
.service .more { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); }
.service .more::after { content: ""; width: 0; height: 0; border-left: 8px solid var(--accent, var(--lime)); border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .25s var(--ease); }
.service:hover .more::after { transform: translateX(4px); }
.service .glyph { position: absolute; right: 28px; top: 28px; width: 44px; height: 44px; background: var(--accent, var(--lime)); transition: transform .5s var(--ease); }
.service:hover .glyph { transform: rotate(90deg) scale(1.08); }
.glyph.sq { border-radius: 10px; }
.glyph.ci { border-radius: 50%; }
.glyph.tr { clip-path: polygon(10% 0, 100% 50%, 10% 100%); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); align-self: flex-start; }

.feature { padding: 28px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--ink-line); display: grid; gap: 12px; align-content: start; transition: transform .35s var(--ease), box-shadow .35s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(14,20,36,.35); }
.feature .k { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1; }
.feature h3 { font-size: 22px; letter-spacing: -0.01em; }
.feature p { color: var(--ink-muted); font-size: 16px; }
.section:not(.paper) .feature { background: var(--surface); border-color: var(--line); }
.section:not(.paper) .feature p { color: var(--muted); }

.k.c1 { color: var(--lime-ink); } .k.c2 { color: #0B9AA5; } .k.c3 { color: var(--blue); } .k.c4 { color: var(--ink); }
.section:not(.paper) .k.c1 { color: var(--lime); } .section:not(.paper) .k.c2 { color: var(--cyan); } .section:not(.paper) .k.c3 { color: var(--blue-light); } .section:not(.paper) .k.c4 { color: var(--text); }

/* list rows */
.rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 64px 1fr 1.4fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: background .3s, padding .3s var(--ease); }
.row:hover { padding-left: 12px; }
.row .i { font-family: var(--font-display); font-weight: 700; color: var(--accent, var(--lime)); font-size: 15px; letter-spacing: .1em; }
.row h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.01em; }
.row p { color: var(--muted); }
.section.paper .rows { border-color: var(--ink-line); }
.section.paper .row { border-color: var(--ink-line); }
.section.paper .row p { color: var(--ink-muted); }

/* problem / solution */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 14px; align-content: start; }
.panel h3 { font-size: clamp(24px, 2.4vw, 30px); }
.panel p { color: var(--muted); }
.panel.accent { background: var(--accent, var(--lime)); border-color: transparent; color: var(--ink); }
.panel.accent p { color: #1B2638; }
.panel.accent .eyebrow { color: var(--ink); }

/* portfolio */
.work { display: grid; gap: 14px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); align-content: start; transition: transform .35s var(--ease), border-color .35s; }
.work:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.work .thumb { aspect-ratio: 16 / 10; border-radius: 10px; position: relative; overflow: hidden; margin-bottom: 8px; }
.work .thumb > i { position: absolute; display: block; }
.work .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work:hover .thumb img { transform: scale(1.04); }
.work h3 { font-size: 24px; letter-spacing: -0.01em; }
.work .meta { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.work p { color: var(--muted); font-size: 16px; }
a.work { text-decoration: none; color: inherit; }
.work .more { margin-top: 4px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); }
.work .more::after { content: ""; width: 0; height: 0; border-left: 8px solid var(--lime); border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .25s var(--ease); }
a.work:hover .more::after { transform: translateX(4px); }
.work .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.work .links a { font-size: 14px; font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); transition: border-color .2s, background .2s; }
.work .links a:hover { border-color: var(--lime); }
.work .links a.primary { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.work .why { font-size: 15px; color: var(--text); border-left: 3px solid var(--lime); padding-left: 12px; }
.work:target { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(140,211,33,.25); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { font: 600 14px var(--font-display); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--muted); cursor: pointer; transition: all .2s; }
.filters button:hover { color: var(--text); border-color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }
.work[hidden] { display: none; }
.work { scroll-margin-top: 100px; }
.badge { display: inline-flex; align-self: flex-start; justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.badge.live { background: rgba(140,211,33,.14); color: var(--lime); }
.badge.demo { background: rgba(91,140,255,.16); color: var(--blue-light); }
.note { font-size: 14px; color: var(--muted); margin-top: 24px; max-width: 760px; }
.section.paper .note { color: var(--ink-muted); }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 4px; border-radius: 4px; background: var(--gradient); opacity: .9; }
.step { position: relative; display: grid; gap: 12px; align-content: start; padding-top: 64px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; background: var(--bg); color: var(--text); border: 2px solid var(--line-strong);
  transition: background .3s, color .3s, border-color .3s;
}
.step:hover::before { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.step h3 { font-size: 26px; }
.step p { color: var(--muted); font-size: 16px; }
.section.alt .step::before { background: var(--bg-2); }

/* team */
.person { display: grid; gap: 18px; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent, var(--lime)); align-content: start; }
.person .avatar { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--ink); background: var(--accent, var(--lime)); }
.person h3 { font-size: clamp(28px, 3vw, 38px); }
.person .role { font-family: var(--font-display); font-weight: 600; color: var(--accent, var(--lime)); font-size: 17px; }
.person ul { display: grid; gap: 12px; }
.person li { position: relative; padding-left: 22px; color: var(--muted); font-size: 16px; }
.person li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent, var(--lime)); }
.person .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.person .links a { font-size: 14px; font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); transition: border-color .2s; }
.person .links a:hover { border-color: var(--text); }

/* quote / statement */
.statement { font-family: var(--font-display); font-size: clamp(28px, 3.8vw, 48px); line-height: 1.15; letter-spacing: -0.02em; max-width: 1000px; }
.statement em { font-style: normal; color: var(--lime); }
.section.paper .statement em { color: var(--lime-ink); }

/* flow diagram (academy) */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; }
.flow .node { padding: 28px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--ink-line); display: grid; gap: 10px; align-content: start; }
.flow .node h3 { font-size: 22px; }
.flow .node p { color: var(--ink-muted); font-size: 16px; }
.flow .node .dot { width: 36px; height: 36px; border-radius: 10px; }
.flow .arrow { align-self: center; width: 0; height: 0; border-left: 16px solid var(--lime-ink); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }

/* photos in team cards */
.person img.avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: var(--surface-2); box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--accent, var(--lime)); }
.person .head { display: flex; align-items: center; gap: 24px; }
.faces { display: flex; }
.faces img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--paper); }
.faces img + img { margin-left: -16px; }

/* portfolio credit */
.credit { margin-top: 28px; font-size: 14px; color: var(--muted); }
.credit a { color: var(--text); }
.section.paper .credit, .section.paper .credit a { color: var(--ink-muted); }

/* timeline (business case) */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.moment { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 2px solid var(--ink-line); }
.moment .y { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; color: var(--blue); }
.moment h3 { font-size: 22px; letter-spacing: -0.01em; }
.moment p { color: var(--ink-muted); font-size: 16px; }

/* stats */
.stats { display: grid; gap: 16px; align-content: start; }
.stat { padding: 24px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.stat .n { font-family: var(--font-display); font-size: clamp(36px, 4vw, 52px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--text); }
.stat .n i { font-style: normal; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 12px; vertical-align: middle; background: var(--accent, var(--lime)); }
.stat p { color: var(--muted); font-size: 16px; }
.stat .src { font-size: 13px; color: var(--muted); opacity: .8; }

.section.paper .stat { background: var(--paper-2); border-color: var(--ink-line); }
.section.paper .stat .n { color: var(--ink); }
.section.paper .stat p, .section.paper .stat .src { color: var(--ink-muted); }

/* chart */
.chart-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 18px; position: relative; }
.chart-card h3 { font-size: 22px; letter-spacing: -0.01em; }
.chart-card .sub { color: var(--muted); font-size: 15px; margin-top: -10px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid line { stroke: rgba(245,246,241,.08); stroke-width: 1; }
.chart .base { stroke: rgba(245,246,241,.3); stroke-width: 1; }
.chart .bar { fill: var(--lime); transition: opacity .2s; cursor: default; outline: none; }
.chart .bar.f { fill: url(#hatch); }
.chart .bars:hover .bar, .chart .bars:focus-within .bar { opacity: .45; }
.chart .bars .bar:hover, .chart .bars .bar:focus { opacity: 1; }
.chart text { font-family: var(--font-body); fill: var(--muted); font-size: 13px; }
.chart text.v { fill: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend i { width: 14px; height: 14px; border-radius: 3px; background: var(--lime); display: inline-block; }
.chart-legend i.f { background: repeating-linear-gradient(135deg, var(--lime) 0 3px, #4E7A12 3px 6px); }
.tip { position: absolute; pointer-events: none; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.4; padding: 8px 12px; border-radius: 8px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); opacity: 0; transform: translate(-50%, -110%); transition: opacity .15s; white-space: nowrap; z-index: 5; }
.tip.show { opacity: 1; }
.tip b { font-family: var(--font-display); }
details.data { font-size: 14px; color: var(--muted); }
details.data summary { cursor: pointer; }
details.data table { width: 100%; border-collapse: collapse; margin-top: 10px; }
details.data th, details.data td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
details.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
.sources { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.sources a { color: var(--text); }

/* CTA band */
.cta-band { background: var(--lime); color: var(--ink); padding: clamp(64px, 9vw, 112px) 0; overflow: hidden; }
.cta-band .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.cta-band h2 { font-size: clamp(40px, 6vw, 80px); letter-spacing: -0.035em; }
.cta-band p { font-size: 19px; color: #1B2638; max-width: 520px; }
.cta-band .contact-lines { display: grid; gap: 14px; justify-items: start; }
.cta-band .contact-lines a.line { font-family: var(--font-display); font-weight: 600; font-size: 20px; text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }

/* Footer */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-grid img { height: auto; width: 240px; margin-bottom: 16px; }
.footer-grid h4, .footer-grid .footer-h { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.footer-grid ul { display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--text); opacity: .85; }
.footer-grid a:hover { opacity: 1; color: var(--lime); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

.footer-base { align-items: center; }
.legal { display: grid; gap: 4px; }
.dev { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--muted); }
.dev b { color: var(--text); font-weight: 600; }
.dev img { height: 48px; width: auto; }
.dev:hover b { color: var(--lime); }

/* then / now comparison */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 22px 24px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.5; }
.compare thead th { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-strong); }
.compare thead th.now { color: var(--ink); background: var(--lime); border-radius: 12px 12px 0 0; }
.compare tbody th { font-family: var(--font-display); font-weight: 600; color: var(--text); width: 22%; }
.compare td.then { color: var(--muted); width: 34%; }
.compare td.now { color: var(--text); font-weight: 500; background: rgba(140, 211, 33, .08); }
.proof { display: flex; align-items: center; gap: 28px; margin-top: 28px; padding: 24px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.proof .n { font-family: var(--font-display); font-size: clamp(44px, 5vw, 64px); font-weight: 700; line-height: 1; color: var(--lime); }
.proof p { font-size: 18px; color: var(--text); }
.proof .src { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
@media (max-width: 700px) {
  .compare thead { display: none; }
  .compare tr { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .compare th, .compare td { display: block; width: auto; border: 0; padding: 4px 0; }
  .compare tbody th { font-size: 18px; margin-bottom: 6px; width: auto; }
  .compare td.then, .compare td.now { width: auto; background: none; }
  .compare td::before { content: attr(data-label) ": "; font-weight: 700; }
  .compare td.now::before { color: var(--lime); }
  .proof { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0 24px; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 19px; letter-spacing: -0.01em; margin: 0; }
.faq-item summary::after { content: "+"; font: 700 26px var(--font-display); color: var(--lime); transition: transform .25s var(--ease); flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding-bottom: 22px; max-width: 75ch; }

/* Blog: elenco */
.blog-hero h1 { font-size: clamp(40px, 5.6vw, 72px); }
.blog-hero .eyebrow a { color: inherit; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.cat-nav a { font: 600 14px var(--font-display); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); text-decoration: none; transition: all .2s; }
.cat-nav a:hover { color: var(--text); border-color: var(--text); }
.cat-nav a[aria-current] { background: var(--text); color: var(--ink); border-color: var(--text); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card a { display: grid; grid-template-rows: auto 1fr; height: 100%; text-decoration: none; color: inherit; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), border-color .35s; }
.post-card a:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.post-card__media { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--surface-2); }
.post-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card a:hover .post-card__img { transform: scale(1.04); }
.post-card__body { display: grid; gap: 10px; padding: 24px; align-content: start; }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.post-cat { font: 700 12px var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--lime); text-decoration: none; }
.post-card__title { font: 700 22px/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--text); }
.post-card__desc { color: var(--muted); font-size: 16px; }
.post-card .more { display: inline-flex; align-items: center; gap: 10px; font: 600 15px var(--font-display); color: var(--text); }
.post-card .more::after { content: ""; width: 0; height: 0; border-left: 8px solid var(--lime); border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .25s var(--ease); }
.post-card a:hover .more::after { transform: translateX(4px); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; color: var(--muted); }

/* Blog: articolo */
.post-hero { padding: clamp(48px, 7vw, 88px) 0 32px; }
.post-wrap { max-width: 920px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.post-hero h1 { font-size: clamp(36px, 4.8vw, 60px); letter-spacing: -0.03em; margin: 14px 0 18px; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--surface); }
.byline-name { font-weight: 600; }
.byline-meta { font-size: 14px; color: var(--muted); }
.byline-lang { margin-left: auto; font-size: 14px; font-weight: 600; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; }
.byline-lang:hover { border-color: var(--text); }
.post-cover { margin: 0 auto; }
.post-cover__img { width: 100%; height: auto; border-radius: var(--radius); aspect-ratio: 1200 / 630; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 88px; }
.post-aside .toc { position: sticky; top: 96px; }
.toc-title { font: 700 13px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { padding-left: 18px; margin: 0; display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--lime); }
.prose { max-width: 70ch; font-size: 18px; line-height: 1.75; color: #D9DEE8; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 2em 0 .6em; color: var(--text); scroll-margin-top: 96px; }
.prose h3 { font-size: 22px; margin: 1.6em 0 .5em; color: var(--text); scroll-margin-top: 96px; letter-spacing: -0.01em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose .table-wrap { margin: 0 0 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; list-style: revert; }
.prose li { margin: .35em 0; }
.prose ul li::marker { color: var(--lime); }
.prose a { color: var(--lime); text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose blockquote { border-left: 3px solid var(--lime); padding: 4px 0 4px 20px; color: var(--text); font-size: 20px; }
.prose img { border-radius: 12px; height: auto; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose .table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); font-family: var(--font-display); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose code { background: var(--surface); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 32px 0 0; font-size: 14px; color: var(--muted); }
.post-tags li { border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.author-box { display: flex; gap: 20px; align-items: flex-start; margin-top: 40px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); max-width: 70ch; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-name { font: 700 18px var(--font-display); margin-bottom: 6px; }
.author-box p { color: var(--muted); font-size: 16px; }
.author-box a { display: inline-block; margin-top: 10px; font-weight: 600; text-decoration: none; color: var(--lime); }
.post-back { margin-top: 28px; }
.post-back a { text-decoration: none; color: var(--muted); font-weight: 600; }
.post-back a:hover { color: var(--text); }
@media (max-width: 1060px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  .post-aside { display: none; }
}
@media (max-width: 560px) {
  .post-grid { grid-template-columns: 1fr; }
  .byline-lang { margin-left: 0; }
  .prose { font-size: 17px; }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .nav-links a { padding: 8px 8px; }
}
@media (max-width: 1280px) {
  .menu-toggle { display: block; }
  .nav { gap: 12px; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a[aria-current="page"] { box-shadow: none; color: var(--lime); }
  .nav-links .lang { align-self: flex-start; margin-top: 16px; }
  .nav-links .lang a, .nav-links .lang span { border: 0; padding: 6px 12px; font-size: 14px; }
  .nav-links a.btn { margin: 16px 0 0; align-self: flex-start; border-bottom: 0; padding: 12px 20px; font-size: 16px; }
}
@media (max-width: 900px) {
  .hero-grid, .page-hero .hero-grid { grid-template-columns: 1fr; }
  .board { max-width: 420px; justify-self: start; }
  .shapes { max-width: 320px; justify-self: start; }
  .grid-3, .grid-2, .split { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .row { grid-template-columns: 48px 1fr; }
  .row p { grid-column: 2; }
  .flow { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .flow .arrow { justify-self: center; transform: rotate(90deg); }
  .cta-band .wrap { grid-template-columns: 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .grid-4, .steps, .timeline { grid-template-columns: 1fr; }
  .person img.avatar { width: 80px; height: 80px; }
  .person .head { gap: 16px; }
  .board { gap: 4px; }
  .board-caption { display: none; }
  .hero h1 { font-size: clamp(46px, 13vw, 64px); }
  .status { margin: 12px 0 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
