@font-face { font-family: "Space Grotesk"; font-weight: 300 700; font-display: swap; src: url(fonts/SpaceGrotesk-latin.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url(fonts/Inter-latin.woff2) format("woff2"); }

:root {
  --ink: #1B1A40;        /* deepest indigo: dark sections, footer */
  --indigo: #2A2858;     /* hero top */
  --indigo-2: #4A4685;   /* hero bottom */
  --panel: #26254F;      /* rows on dark */
  --orange: #EB6834;     /* DJEC accent: buttons, highlights */
  --blue: #3D8BF2;       /* secondary accent in charts */
  --light: #EEF3FE;      /* light sections */
  --text: #1B1A40;
  --muted: #5B5E78;
  --line: #D9DFEE;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font: 400 17px/1.6 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: "Space Grotesk", system-ui, sans-serif; letter-spacing: -0.025em; margin: 0; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; margin-bottom: 40px; }
h3 { font-size: 20px; margin-bottom: 8px; }
p { margin: 0 0 14px; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.section { padding: 110px 0; }
.light { background: var(--light); }
.dark { background: var(--ink); color: #fff; }
.darker { background: #201F49; color: #fff; }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--orange); color: #fff; text-decoration: none; font-weight: 600; font-size: 17px; padding: 15px 30px; border-radius: 8px; border: 0; cursor: pointer; font-family: inherit; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(235, 104, 52, .4); }
.arrow-link { display: inline-flex; gap: 12px; font-weight: 600; text-decoration: none; padding-bottom: 6px; border-bottom: 1.5px solid currentColor; }
.arrow-link span { transition: transform .2s; }
.arrow-link:hover span { transform: translateX(4px); }

/* ── Hero ─────────────────────────────────────────────── */
.hero { position: relative; color: #fff; background: linear-gradient(170deg, var(--indigo) 0%, #35336B 55%, var(--indigo-2) 100%); padding: 130px 0 0; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: var(--light); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: 560px; }
.hero h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.04; font-weight: 700; margin-bottom: 28px; }
.lead { font-size: 19px; color: #D5D6EC; max-width: 560px; margin-bottom: 36px; }
.hero-copy > * { animation: rise .8s ease-out both; }
.hero-copy > :nth-child(2) { animation-delay: .12s; }
.hero-copy > :nth-child(3) { animation-delay: .24s; }

/* The tilted dashboard */
.dash-stage { perspective: 1400px; margin-right: -180px; }
.dash { display: grid; grid-template-columns: 150px 1fr; border-radius: 18px; overflow: hidden; background: #1E1D46; box-shadow: 0 40px 80px rgba(10, 8, 40, .55); transform: rotateY(-16deg) rotateX(8deg) rotateZ(-4deg); transform-origin: left center; animation: dashIn 1.2s cubic-bezier(.2, .8, .2, 1) .2s both; }
@keyframes dashIn { from { opacity: 0; transform: rotateY(-30deg) rotateX(14deg) rotateZ(-6deg) translateY(40px); } }
.dash-side { background: linear-gradient(180deg, #2C2A62, #3D3A7A); padding: 22px 16px; display: grid; align-content: start; gap: 14px; }
.dash-logo { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .02em; margin-bottom: 18px; }
.dash-nav { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #9C9CCB; }
.dash-nav i { width: 10px; height: 10px; border-radius: 3px; background: currentColor; opacity: .7; }
.dash-nav.on { color: #7FB4FF; }
.dash-main { padding: 22px 26px 24px; }
.dash-title { font-family: "Space Grotesk", sans-serif; font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: rgba(255, 255, 255, .06); border-radius: 10px; padding: 10px 12px; font-size: 10.5px; color: #B9BADF; }
.kpi svg { display: block; width: 100%; height: 24px; margin-top: 6px; }
.kpi polyline { fill: none; stroke: #7FB4FF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; animation: draw 2.4s 1s ease-out both; }
.kpi.hot { background: linear-gradient(135deg, #2F86F6, #26C3E8); color: #fff; }
.kpi.hot polyline { stroke: #fff; }
.dash-chart { width: 100%; height: auto; display: block; }
.dash-chart .gridl line { stroke: rgba(255, 255, 255, .07); }
.dash-chart .l { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 520; animation: draw 2.6s ease-out both; }
.l1 { stroke: var(--orange); animation-delay: 1s !important; }
.l2 { stroke: #2F86F6; animation-delay: 1.2s !important; }
.l3 { stroke: #B26DF0; animation-delay: 1.4s !important; }
.dash-chart .pt { fill: var(--orange); transform-box: fill-box; transform-origin: center; animation: pop 2.4s 3.2s ease-in-out infinite both; }
@keyframes draw { from { stroke-dashoffset: 520; } to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(0); } 20% { transform: scale(1.6); } 40%, 100% { transform: scale(1); } }
.dash-rows { display: grid; gap: 8px; margin-top: 12px; }
.dash-rows div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; }
.dash-rows b { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .15); }
.dash-rows em { height: 7px; border-radius: 4px; background: linear-gradient(90deg, #2F86F6, #B26DF0); width: var(--w); animation: fill 1.6s 1.4s ease-out both; }
@keyframes fill { from { width: 0; } }

/* Tiles over the bottom edge of the hero */
.tiles { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 50px; max-width: 1040px; }
.tile { display: flex; align-items: center; gap: 16px; background: #2B2A5A; border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; padding: 26px 26px; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 18px; box-shadow: 0 18px 40px rgba(20, 18, 60, .25); transition: transform .25s; }
.tile:hover { transform: translateY(-4px); }
.tile svg { width: 36px; height: 36px; flex: none; fill: none; stroke: #7FB4FF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── About ────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-copy p { font-size: 18px; color: #34365A; max-width: 520px; }
.about-copy .arrow-link { margin-top: 18px; }
.about-photo { justify-self: end; position: relative; isolation: isolate; margin: 0 24px 70px 0; }
.about-photo img { width: 340px; height: 340px; object-fit: cover; border-radius: 16px; background: #fff; }
.about-photo::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: 16px; background: linear-gradient(135deg, var(--indigo), var(--indigo-2)); z-index: -1; }

/* A quote of Jimmy's, on the photo's lower left corner */
.founder-quote { position: absolute; left: -230px; bottom: -70px; max-width: 300px; margin: 0; background: #fff; border-radius: 14px; padding: 22px 24px 20px; box-shadow: 0 22px 50px rgba(27, 26, 64, .18); border-left: 4px solid var(--orange); }
.founder-quote blockquote { margin: 0 0 12px; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); }
.founder-quote figcaption { font-size: 14px; font-weight: 600; color: var(--ink); display: grid; }
.founder-quote figcaption span { font-weight: 400; color: var(--muted); }

/* ── Services ─────────────────────────────────────────── */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 26px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(27, 26, 64, .12); }
.card h3 { color: var(--ink); }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.icon { width: 76px; height: 76px; padding: 10px; margin-bottom: 20px; display: block; background: var(--light); border-radius: 16px; overflow: visible; }
.icon * { fill: none; stroke: var(--ink); stroke-width: 3; }
.ic-sliders line { stroke: var(--line); stroke-width: 4; }
.ic-sliders .k { fill: var(--orange); stroke: #fff; stroke-width: 2; animation: slide 3.2s ease-in-out infinite alternate; }
.ic-sliders .k2 { animation-delay: -1.1s; animation-duration: 2.6s; }
.ic-sliders .k3 { animation-delay: -2s; animation-duration: 3.8s; }
@keyframes slide { from { transform: translateX(-8px); } to { transform: translateX(12px); } }
.ic-bars .base { stroke: var(--line); }
.ic-bars .b { fill: rgba(27, 26, 64, .22); stroke: none; transform-box: fill-box; transform-origin: bottom; animation: 4s ease-in-out infinite; }
.ic-bars .b1 { animation-name: lose1; } .ic-bars .b3 { animation-name: lose3; }
.ic-bars .win { fill: var(--orange); animation-name: win; }
@keyframes win { 0% { transform: scaleY(.3); } 40% { transform: scaleY(.5); } 80%, 100% { transform: scaleY(1); } }
@keyframes lose1 { 0% { transform: scaleY(.35); } 40% { transform: scaleY(.45); } 80%, 100% { transform: scaleY(.15); } }
@keyframes lose3 { 0% { transform: scaleY(.25); } 40% { transform: scaleY(.4); } 80%, 100% { transform: scaleY(.1); } }
.ic-cards .c { fill: #fff; transform-box: view-box; transform-origin: 32px 56px; }
.ic-cards .c1 { stroke: var(--line); animation: fan1 3s ease-in-out infinite; }
.ic-cards .c2 { stroke: #A9AFD0; animation: fan2 3s ease-in-out infinite; }
.ic-cards .c3 rect { fill: #fff; }
.ic-cards .c3 circle { fill: var(--orange); stroke: none; }
.ic-cards .c3 path { fill: rgba(27, 26, 64, .22); stroke: none; }
.ic-cards .c3 { animation: fan3 3s ease-in-out infinite; }
@keyframes fan1 { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-14deg); } }
@keyframes fan2 { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-6deg); } }
@keyframes fan3 { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(8deg); } }
.ic-line .grid { stroke: var(--line); stroke-width: 1.5; }
.ic-line .ln { stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 70; animation: drawIcon 3.5s ease-in-out infinite; }
.ic-line .dot { fill: var(--orange); stroke: none; transform-box: fill-box; transform-origin: center; animation: pulse 3.5s ease-in-out infinite; }
@keyframes drawIcon { 0% { stroke-dashoffset: 70; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 55% { transform: scale(0); } 70% { transform: scale(1.4); } 85%, 100% { transform: scale(1); } }

/* ── Process ──────────────────────────────────────────── */
.process { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { border-bottom: 1px solid rgba(255, 255, 255, .25); position: relative; }
/* The orange line fills as the visitor scrolls through the steps (set from the script) */
.steps li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--orange); }
.steps li.done::after { width: 100%; }
.steps li.open::after { width: calc(var(--p, 0) * 100%); }
.steps button { all: unset; cursor: pointer; display: flex; align-items: baseline; gap: 32px; width: 100%; padding: 30px 0; }
.steps .n { font-family: "Space Grotesk", sans-serif; font-size: 18px; font-weight: 600; color: #A7A8D3; min-width: 28px; }
.steps .t { font-family: "Space Grotesk", sans-serif; font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -0.02em; transition: color .2s; }
.steps li:not(.open) .t { color: #CFD0EA; }
.steps button:hover .t { color: #fff; }
.steps .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; padding-left: 60px; }
.steps .body p { overflow: hidden; color: #C9CAE6; max-width: 620px; margin: 0; }
.steps li.open .body { grid-template-rows: 1fr; }
.steps li.open .body p { padding-bottom: 28px; }
.process-cta { grid-column: 2; padding-top: 36px; }

/* The light card with what you get */
.promise { margin-top: 110px; display: grid; grid-template-columns: 1fr 1.5fr; background: var(--light); color: var(--text); border-radius: 22px; overflow: hidden; }
.promise-list { display: grid; padding: 30px 60px; }
.promise-list div { padding: 34px 0; display: grid; gap: 6px; }
.promise-list div + div { border-top: 1px solid var(--line); }
.label { font-size: 15px; color: var(--muted); }
.promise-list strong { font-family: "Space Grotesk", sans-serif; font-size: 28px; line-height: 1.15; color: var(--orange); letter-spacing: -0.02em; }
.promise-rotator { position: relative; border-left: 1px solid var(--line); padding: 70px 70px 60px; min-height: 340px; display: flex; flex-direction: column; justify-content: center; }
.statement { position: absolute; left: 70px; right: 70px; top: 50%; transform: translateY(-60%); margin: 0; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-style: italic; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -0.02em; opacity: 0; transition: opacity .6s, transform .6s; }
.statement.on { opacity: 1; transform: translateY(-50%); }
.statement em { color: var(--blue); font-style: italic; }
.dots { position: absolute; left: 70px; bottom: 40px; display: flex; gap: 14px; }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: var(--ink); opacity: .35; cursor: pointer; }
.dots button.on { opacity: 1; box-shadow: 0 0 0 4px var(--light), 0 0 0 5.5px var(--ink); }

/* ── Specialisations ──────────────────────────────────── */
.specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.specs li { display: flex; align-items: center; gap: 16px; background: var(--panel); border-radius: 10px; padding: 18px 22px; font-weight: 500; transition: background .2s, transform .2s; }
.specs li:hover { background: #302F63; transform: translateX(4px); }
.specs svg { width: 26px; height: 26px; flex: none; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.specs .reveal:nth-child(even) { transition-delay: .08s; }

/* ── Testimonials ─────────────────────────────────────── */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { margin: 0; background: #fff; border-radius: 14px; padding: 30px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; border-left: 4px solid var(--orange); }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.6; }
.quote figcaption { display: grid; gap: 2px; font-size: 14px; }
.quote figcaption strong { color: var(--ink); font-size: 15px; }
.quote figcaption span { color: var(--muted); }

/* ── Contact ──────────────────────────────────────────── */
.contact-in { display: grid; grid-template-columns: 1fr 1.25fr; gap: 70px; align-items: start; }
.lead-dark { font-size: 20px; color: #34365A; max-width: 440px; }
.contact-in a { color: var(--ink); }
.form { background: #fff; border-radius: 18px; padding: 36px; display: grid; gap: 16px; box-shadow: 0 24px 60px rgba(27, 26, 64, .1); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form input:not([type=checkbox]), .form textarea { font: inherit; font-weight: 400; color: var(--text); background: #F7F9FE; border: 1px solid var(--line); border-radius: 8px; padding: 13px 14px; width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: transparent; background: #fff; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .check input { margin-top: 5px; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }

/* ── Footer ───────────────────────────────────────────── */
.footer { background: var(--ink); color: #C9CAE6; font-size: 15px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; padding-top: 70px; padding-bottom: 60px; flex-wrap: wrap; }
.foot-logo { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 30px; color: #fff; letter-spacing: -0.01em; margin-bottom: 20px; }
.social svg { width: 22px; height: 22px; fill: #fff; }
.foot-cols { display: flex; gap: 90px; }
.foot-cols div { display: grid; gap: 10px; align-content: start; }
.foot-cols h4 { color: #fff; font-size: 17px; margin-bottom: 6px; letter-spacing: 0; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: #fff; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0; font-size: 13.5px; text-align: center; color: #A7A8D3; }

/* Simple pages (privacy, thanks) */
.page { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.page h1 { color: var(--ink); font-size: 44px; margin-bottom: 12px; }
.page h2 { font-size: 22px; margin: 32px 0 10px; color: var(--ink); }
.page a { color: var(--ink); }

/* ── Motion helpers ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease-out, transform .7s ease-out; }
.reveal.in { opacity: 1; transform: none; }
.grid4 .reveal:nth-child(2) { transition-delay: .1s; } .grid4 .reveal:nth-child(3) { transition-delay: .2s; } .grid4 .reveal:nth-child(4) { transition-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

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

/* ── Smaller screens ──────────────────────────────────── */
@media (max-width: 1020px) {
  .hero-in, .about, .contact-in, .process, .promise { grid-template-columns: 1fr; }
  .dash-stage { margin-right: 0; max-width: 620px; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .about-photo { justify-self: start; margin-bottom: 40px; }
  .process-cta { grid-column: 1; }
  .promise-rotator { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .section { padding: 72px 0; }
  .hero { padding-top: 72px; }
  .hero-in { min-height: 0; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .tiles { grid-template-columns: 1fr; gap: 12px; padding-top: 36px; }
  .grid4, .specs, .quotes, .row2 { grid-template-columns: 1fr; }
  .about-photo img { width: 280px; height: 280px; }
  .about-photo::before { display: none; }
  .founder-quote { position: relative; left: 0; bottom: 0; margin-top: 36px; max-width: none; }
  .steps button { gap: 18px; padding: 22px 0; }
  .steps .body { padding-left: 46px; }
  .promise-list { padding: 10px 26px; }
  .promise-rotator { padding: 40px 26px 70px; min-height: 280px; }
  .statement { left: 26px; right: 26px; }
  .dots { left: 26px; bottom: 28px; }
  .form { padding: 24px; }
  .foot-cols { gap: 50px; }
}
