/* =========================================================
   Excelized · site styles
   Palette from the logo: ledger green, bolt yellow, graphite
   ========================================================= */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo.woff2") format("woff2-variations"),
       url("../assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans.woff2") format("woff2-variations"),
       url("../assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jetbrains-mono.woff2") format("woff2-variations"),
       url("../assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  /* brand */
  --green: #037133;
  --green-700: #025b28;
  --green-800: #0b3d22;
  --canopy: #0a2e1b;
  --canopy-950: #061a10;
  --green-tint: #e4f1e7;
  --green-wash: #f1f7f2;
  --bolt: #f7d417;
  --bolt-fill: #fff0a3;
  --graphite: #5f6168;

  /* neutrals */
  --ink: #121613;
  --text-2: #464b47;
  --grid: #dde4db;
  --gridline: #ebefea;
  --sheet: #f5f8f4;
  --paper: #ffffff;
  --error: #c2412d;

  /* type */
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  /* shape */
  --radius: 12px;
  --radius-sm: 7px;
  --shadow-1: 0 1px 2px rgba(10, 46, 27, .06), 0 10px 28px -14px rgba(10, 46, 27, .22);
  --shadow-2: 0 2px 6px rgba(10, 46, 27, .06), 0 36px 70px -30px rgba(10, 46, 27, .45);

  /* layout */
  --container: 1200px;
  --pad: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --col-w: 120px;
  --row-h: 36px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-700); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; }
code { font-family: var(--font-mono); font-size: .88em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--canopy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }

.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.025em;
}
.h2 {
  font-family: var(--font-display);
  font-stretch: 110%;
  font-weight: 750;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}
h3 {
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 650;
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: -.005em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; flex: none;
  border: 2px solid currentColor; background: transparent;
  box-shadow: 3px 3px 0 -1px var(--bolt);
}
.lead { font-size: clamp(1.08rem, 1.4vw, 1.22rem); color: var(--text-2); max-width: 34em; }

/* the yellow "highlighted cell" and the red "error squiggle" */
.cell-fill {
  background: var(--bolt-fill);
  color: inherit;
  padding: 0 .12em;
  margin: 0 -.04em;
  box-shadow: inset 0 -.08em 0 var(--bolt);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.squiggle {
  position: relative; z-index: 1; /* paint above the next line's highlight */
  text-decoration: underline wavy var(--error);
  text-decoration-thickness: .055em;
  text-underline-offset: .14em;
  text-decoration-skip-ink: none;
}

/* ---------- buttons ---------- */
.btn {
  --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--grid);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 1.5px solid var(--b-bd); border-radius: var(--radius-sm);
  background: var(--b-bg); color: var(--b-fg);
  font-family: var(--font-body); font-weight: 600; font-size: .98rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.header-cta { white-space: nowrap; }
.btn:hover { color: var(--b-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .18s; }
.btn:hover .icon { transform: translateX(2px); }
.btn-primary { --b-bg: var(--green); --b-fg: #fff; --b-bd: var(--green); box-shadow: 0 6px 18px -8px rgba(3, 113, 51, .6); }
.btn-primary:hover { --b-bg: var(--green-700); --b-bd: var(--green-700); }
.btn-ghost { --b-bg: var(--paper); --b-fg: var(--ink); --b-bd: var(--grid); }
.btn-ghost:hover { --b-bd: var(--green); --b-fg: var(--green); }
.btn-lg { min-height: 52px; padding: 13px 22px; font-size: 1.03rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--grid); box-shadow: 0 6px 24px -18px rgba(10, 46, 27, .4); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }

/* language switcher */
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--grid); border-radius: 8px; background: var(--paper); flex: none; }
.lang-switch a {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600; line-height: 1;
  padding: 6px 7px; border-radius: 5px; color: var(--graphite); text-decoration: none;
  transition: background-color .15s, color .15s;
}
.lang-switch a:hover { color: var(--ink); background: var(--sheet); }
.lang-switch a[aria-current="page"] { background: var(--green); color: #fff; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { width: 34px; height: 34px; }
.wordmark { display: inline-flex; align-items: flex-end; font-family: var(--font-display); font-size: 1.62rem; line-height: 1; letter-spacing: -.02em; }
.wm-excel { color: var(--green); font-weight: 800; font-stretch: 105%; }
.wm-i { width: .42em; height: 1em; margin: 0 .01em -.02em .03em; }
.wm-zed { color: #6b6c73; font-weight: 300; font-stretch: 105%; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  position: relative;
  padding: 8px 12px; border-radius: 6px;
  color: var(--text-2); font-weight: 500; font-size: .97rem; text-decoration: none;
}
.site-nav a:hover { color: var(--ink); background: var(--green-wash); }
.site-nav a.is-active { color: var(--green); }
.site-nav a.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--green);
}
.nav-cta-mobile { display: none; }
.menu-btn {
  display: none; margin-left: auto;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1.5px solid var(--grid); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink);
}
.menu-btn .icon { width: 22px; height: 22px; }

/* ---------- HERO: the worksheet ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--grid);
}
.sheet-frame { position: absolute; inset: 0; pointer-events: none; }
.sheet-cols {
  position: absolute; top: 0; left: 40px; right: 0; height: 26px;
  display: flex; background: var(--sheet); border-bottom: 1px solid var(--grid);
  overflow: hidden;
}
.sheet-rows {
  position: absolute; top: 26px; left: 0; bottom: 0; width: 40px;
  display: flex; flex-direction: column; background: var(--sheet); border-right: 1px solid var(--grid);
  overflow: hidden;
}
.sheet-frame::before { /* corner cell */
  content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 26px;
  background: var(--sheet); border-right: 1px solid var(--grid); border-bottom: 1px solid var(--grid);
}
.sheet-cols span, .sheet-rows span {
  flex: none; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; color: #8a918b;
  transition: background-color .12s, color .12s;
}
.sheet-cols span { width: var(--col-w); height: 100%; border-right: 1px solid var(--grid); }
.sheet-rows span { height: var(--row-h); width: 100%; border-bottom: 1px solid var(--grid); }
.sheet-cols span.is-hot, .sheet-rows span.is-hot { background: var(--green-tint); color: var(--green); font-weight: 700; }
.sheet-cols span.is-hot { box-shadow: inset 0 -2px 0 var(--green); }
.sheet-rows span.is-hot { box-shadow: inset -2px 0 0 var(--green); }
.sheet-lines {
  position: absolute; top: 26px; left: 40px; right: 0; bottom: 0;
  background-image:
    linear-gradient(to right, var(--gridline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--gridline) 1px, transparent 1px);
  background-size: var(--col-w) var(--row-h);
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.sheet-cursor {
  position: absolute; top: 0; left: 0;
  width: var(--col-w); height: var(--row-h);
  border: 2px solid var(--green);
  opacity: 0; transition: opacity .2s, transform .09s ease-out;
}
.sheet-cursor::after {
  content: ""; position: absolute; right: -5px; bottom: -5px; width: 7px; height: 7px;
  background: var(--green); border: 1.5px solid #fff;
}
.sheet-cursor.is-on { opacity: .55; }

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: start; column-gap: clamp(32px, 5vw, 72px); row-gap: clamp(28px, 3.5vw, 44px);
  padding-top: clamp(56px, 7vw, 92px);
  padding-bottom: clamp(72px, 8vw, 112px);
  padding-left: calc(var(--pad) + 40px);
}
.hero-head { grid-column: 1 / -1; }
.hero-head .display { font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .98; }
html[lang="de"] .hero-head .display { font-size: clamp(2.2rem, 5vw, 4.5rem); } /* longer German words */
.hero-copy { padding-top: 6px; }
.hero-copy .lead { margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts {
  list-style: none; padding: 0; margin: 36px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: .9rem; color: var(--graphite);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 6px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; background: var(--bolt); outline: 1.5px solid var(--green); outline-offset: 0; }
.hero-facts strong { color: var(--ink); font-weight: 650; }

/* the workbook window */
.hero-visual { position: relative; margin: 0; padding: 0 0 104px 0; }
.wb {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  font-size: 13px;
}
.wb-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px;
  background: var(--green); color: #fff;
}
.wb-file { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-file .icon { width: 16px; height: 16px; }
.wb-status {
  flex: none;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 99px;
  background: rgba(255, 255, 255, .16);
  transition: background-color .3s, color .3s;
}
.wb-status[data-state="bad"]::before { content: "● "; color: #ffb4a6; }
.wb-status[data-state="busy"]::before { content: "◌ "; color: var(--bolt); }
.wb-status[data-state="good"] { background: var(--bolt); color: var(--canopy); }
.wb-status[data-state="good"]::before { content: "✓ "; }

.wb-fx {
  display: flex; align-items: stretch;
  border-bottom: 1px solid var(--grid);
  font-family: var(--font-mono); font-size: 12px;
  height: 32px;
}
.wb-name {
  flex: none; width: 74px; display: grid; place-items: center;
  border-right: 1px solid var(--grid); color: var(--text-2);
}
.wb-fxlabel {
  flex: none; width: 34px; display: grid; place-items: center;
  font-style: italic; color: var(--graphite); border-right: 1px solid var(--grid);
}
.wb-formula {
  flex: 1; min-width: 0;
  display: flex; align-items: center; padding: 0 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--ink); font-size: 12px;
}
.wb-formula.is-typing::after {
  content: ""; width: 1.5px; height: 15px; background: var(--green); margin-left: 1px;
  animation: caret .8s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.wb-grid {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1.1fr .85fr .95fr .95fr;
  grid-auto-rows: 34px;
  font-variant-numeric: tabular-nums;
}
.wb-corner, .wb-ch, .wb-rh {
  background: var(--sheet);
  font-family: var(--font-mono); font-size: 10.5px; color: #8a918b;
  display: grid; place-items: center;
  border-right: 1px solid var(--grid); border-bottom: 1px solid var(--grid);
  transition: background-color .2s, color .2s;
}
.wb-ch { height: 24px; align-self: start; }
.wb-grid > .wb-corner, .wb-grid > .wb-ch { height: 24px; }
.wb-grid { grid-template-rows: 24px; }
.wb-ch.is-hot, .wb-rh.is-hot { background: var(--green-tint); color: var(--green); font-weight: 700; }
.wb-c {
  position: relative;
  display: flex; align-items: center;
  padding: 0 9px;
  border-right: 1px solid var(--gridline); border-bottom: 1px solid var(--gridline);
  white-space: pre; overflow: hidden; text-overflow: ellipsis;
  color: var(--ink);
  transition: background-color .35s, color .35s, opacity .35s;
}
.wb-c.num { justify-content: flex-end; }
.wb-head { font-weight: 650; background: var(--green-wash); }
.wb-c.err { color: #8d3a2e; }
.wb-c.err::before { /* Excel's green error triangle */
  content: ""; position: absolute; top: 0; left: 0;
  border-top: 7px solid #1e8e4a; border-right: 7px solid transparent;
}
.wb-c.dup { background: #fdecea; }
.wb-c.is-clean { color: var(--ink); animation: cleanflash .6s ease-out; }
.wb-c.is-clean::before { display: none; }
@keyframes cleanflash { 0% { background: var(--bolt-fill); } 100% { background: transparent; } }
.wb-c.is-gone, .wb-rh.is-gone { opacity: .25; text-decoration: line-through; background: transparent; }

.wb-sel {
  position: absolute; top: 0; left: 0; width: 0; height: 0;
  border: 2px solid var(--green);
  background: rgba(3, 113, 51, .06);
  opacity: 0;
  transition: transform .45s cubic-bezier(.3, .7, .2, 1), width .45s cubic-bezier(.3, .7, .2, 1), height .45s cubic-bezier(.3, .7, .2, 1), opacity .25s;
  pointer-events: none;
}
.wb-sel.is-on { opacity: 1; }
.wb-handle {
  position: absolute; right: -5px; bottom: -5px; width: 8px; height: 8px;
  background: var(--green); border: 1.5px solid #fff;
}
.wb-tabs {
  display: flex; gap: 2px; padding: 0 0 0 30px;
  background: var(--sheet); border-top: 1px solid var(--grid);
  font-size: 11.5px; color: var(--graphite);
}
.wb-tabs span { padding: 6px 14px; }
.wb-tabs .is-active { background: var(--paper); color: var(--green); font-weight: 650; box-shadow: inset 0 -2px 0 var(--green); }

.wb-chart, .wb-ai {
  position: absolute; z-index: 2;
  background: var(--paper);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(14px) scale(.98);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.wb-chart { left: -28px; bottom: 0; width: min(300px, 62%); padding: 14px 16px 12px; }
.wb-chart-title { font-family: var(--font-display); font-weight: 650; font-size: .92rem; margin: 0 0 10px; }
.wb-bars { display: grid; gap: 7px; }
.wb-bar-row { display: grid; grid-template-columns: 44px 1fr 46px; align-items: center; gap: 8px; font-size: 12px; }
.wb-bar-row span { color: var(--text-2); }
.wb-bar-row b { text-align: right; font-family: var(--font-mono); font-weight: 600; font-size: 11.5px; }
.wb-bar-row i {
  display: block; height: 12px; border-radius: 2px;
  background: var(--green);
  transform-origin: left; transform: scaleX(0);
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
  width: calc(var(--v) * 100%);
}
.wb-bar-row:first-child i { background: linear-gradient(90deg, var(--green), #1c9a52); }
.wb-bar-row:not(:first-child) i { background: #9bb3a3; }
.wb-ai {
  right: -18px; bottom: 34px; width: min(290px, 58%);
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px;
  background: var(--canopy); color: #e8f1ea; border-color: var(--canopy);
  font-size: 13px; line-height: 1.45;
}
.wb-ai p { margin: 0; }
.wb-ai strong { color: #fff; }
.wb-ai .icon { color: var(--bolt); width: 18px; height: 18px; margin-top: 1px; }
.hero-visual.show-chart .wb-chart, .hero-visual.show-ai .wb-ai { opacity: 1; transform: none; }
.hero-visual.show-chart .wb-bar-row i { transform: scaleX(1); }
.hero-visual.show-chart .wb-bar-row:nth-child(2) i { transition-delay: .08s; }
.hero-visual.show-chart .wb-bar-row:nth-child(3) i { transition-delay: .16s; }
.hero-visual.show-chart .wb-bar-row:nth-child(4) i { transition-delay: .24s; }
.wb-replay {
  position: absolute; right: 0; bottom: -36px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border: 0; background: none;
  color: var(--graphite); font-size: .85rem; font-weight: 500;
  border-radius: 6px;
}
.wb-replay[hidden] { display: none; }
.wb-replay:hover { color: var(--green); background: var(--green-wash); }
.wb-replay .icon { width: 15px; height: 15px; }

/* ---------- tools strip ---------- */
.tools { background: var(--sheet); border-bottom: 1px solid var(--grid); }
.tools-inner { display: flex; align-items: center; gap: 12px 32px; padding-block: 22px; flex-wrap: wrap; }
.tools-label { margin: 0; font-size: .9rem; color: var(--graphite); flex: 0 1 auto; }
.tools-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tools-list li {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500;
  padding: 5px 11px; border: 1px solid var(--grid); background: var(--paper); border-radius: 4px; color: var(--text-2);
}

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-sheet { background: var(--sheet); border-block: 1px solid var(--grid); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .h2 { margin-bottom: 18px; }
.section-intro { font-size: 1.12rem; color: var(--text-2); margin: 0; max-width: 40em; }

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
}

/* hover = cell selection with fill handle */
.cell-select { transition: border-color .18s, box-shadow .18s, transform .18s; }
.cell-select::after {
  content: ""; position: absolute; right: -6px; bottom: -6px; width: 10px; height: 10px;
  background: var(--green); border: 2px solid var(--paper);
  opacity: 0; transform: scale(.4); transition: opacity .18s, transform .18s;
}
.cell-select:hover, .cell-select:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), var(--shadow-1);
}
.cell-select:hover::after, .cell-select:focus-within::after { opacity: 1; transform: none; }

.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 17px; height: 17px;
  border-radius: 4px; background: var(--green-tint);
}
.ticks li::after {
  content: ""; position: absolute; left: 5px; top: calc(.28em + 4px); width: 7px; height: 4px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tags span {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  padding: 3px 8px; border-radius: 4px; background: var(--sheet); border: 1px solid var(--grid); color: var(--text-2);
}

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.svc { grid-column: span 2; padding: 28px; display: flex; flex-direction: column; }
.svc-wide { grid-column: span 3; }
.svc h3 { margin: 18px 0 10px; }
.svc > p:not(.tags) { color: var(--text-2); }
.svc .tags { margin-top: auto; padding-top: 6px; }
.svc-icon {
  width: 46px; height: 46px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--green); color: #fff;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15);
}
.svc-icon .icon { width: 22px; height: 22px; }
.svc-wide { overflow: hidden; }
.svc-art { margin: 22px -28px -28px; padding: 18px 28px 22px; background: var(--sheet); border-top: 1px solid var(--grid); }
.svc-art-kpi { display: grid; grid-template-columns: auto auto 1fr; gap: 12px; align-items: end; }
.mini-kpi { background: var(--paper); border: 1px solid var(--grid); border-radius: 8px; padding: 10px 12px; display: grid; gap: 1px; min-width: 104px; }
.mini-kpi span { font-size: .72rem; color: var(--graphite); }
.mini-kpi b { font-family: var(--font-display); font-stretch: 105%; font-size: 1.2rem; font-weight: 750; }
.mini-kpi em { font-style: normal; font-family: var(--font-mono); font-size: .72rem; color: var(--green); font-weight: 600; }
.mini-line { width: 100%; height: 64px; }
.svc-art-flow { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.svc-art-flow li {
  position: relative; flex: 1;
  display: grid; justify-items: center; gap: 6px;
  font-size: .78rem; color: var(--text-2); text-align: center;
}
.svc-art-flow li:not(:last-child)::after {
  content: ""; position: absolute; top: 19px; left: calc(50% + 24px); right: calc(-50% + 24px);
  border-top: 2px dashed #b3c4b8;
}
.flow-dot {
  width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center;
  background: var(--paper); border: 1.5px solid var(--grid);
  font-family: var(--font-mono); font-weight: 700; font-size: .72rem; color: var(--green);
}
.flow-dot-hl { background: var(--bolt); border-color: var(--bolt); color: var(--canopy); font-size: 1rem; }

/* ---------- work (dashboards) ---------- */
.work { display: grid; gap: 22px; }
.work-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 5px; background: var(--paper); border: 1px solid var(--grid); border-radius: 10px;
  justify-self: start; max-width: 100%;
}
.work-tab {
  padding: 9px 15px; border: 0; border-radius: 7px; background: transparent;
  color: var(--text-2); font-weight: 600; font-size: .93rem;
  transition: background-color .15s, color .15s;
}
.work-tab:hover { color: var(--ink); background: var(--sheet); }
.work-tab[aria-selected="true"] { background: var(--canopy); color: #fff; }
.work-panel { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 40px); align-items: center; }
.work-panel[hidden] { display: none; }
.work-desc h3 { font-size: 1.5rem; font-stretch: 105%; margin-bottom: 12px; }
.work-desc > p { color: var(--text-2); }
.work-note { font-size: .82rem; color: var(--graphite); margin-top: 18px; font-family: var(--font-mono); }

/* dashboard "screenshot" frame */
.d-frame {
  position: relative; width: 100%; aspect-ratio: 960 / 600;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--grid);
  box-shadow: var(--shadow-2);
  background: var(--sheet);
}
.d-canvas {
  position: absolute; top: 0; left: 0; width: 960px; height: 600px;
  transform-origin: 0 0; transform: scale(var(--s, 1));
  display: flex; flex-direction: column;
  background: var(--d-bg); color: var(--d-ink);
  font-family: var(--font-body); font-size: 12px; line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.d-top {
  height: 34px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: var(--d-chrome); color: var(--d-chrome-ink); font-size: 12px; font-weight: 600;
}
.d-app { width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; font-size: 10px; font-weight: 800; background: rgba(255, 255, 255, .18); }
.d-top-r { margin-left: auto; display: flex; gap: 14px; opacity: .75; font-weight: 500; font-size: 11px; }
.d-main { flex: 1; display: flex; min-height: 0; }
.d-rail { width: 44px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 16px; background: var(--d-panel); border-right: 1px solid var(--d-line); }
.d-rail i { width: 18px; height: 18px; border-radius: 4px; background: var(--d-grid); }
.d-rail i.on { background: var(--d-a1); }
.d-body { flex: 1; min-width: 0; padding: 14px; display: grid; grid-template-rows: 40px 78px 200px 1fr; gap: 10px; }
.d-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.d-title { font-family: var(--font-display); font-weight: 750; font-stretch: 108%; font-size: 21px; letter-spacing: -.01em; }
.d-sub { font-size: 11px; color: var(--d-muted); margin-top: 2px; }
.d-filters { display: flex; gap: 6px; }
.d-chip { padding: 5px 10px; border-radius: 6px; background: var(--d-panel); border: 1px solid var(--d-line); font-size: 11px; color: var(--d-muted); white-space: nowrap; }
.d-chip b { color: var(--d-ink); font-weight: 600; }
.d-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.d-kpi { background: var(--d-panel); border: 1px solid var(--d-line); border-radius: var(--d-r, 8px); padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; column-gap: 8px; position: relative; overflow: hidden; }
.d-kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--d-a1); }
.d-kpi-l { font-size: 11px; color: var(--d-muted); grid-column: 1 / -1; }
.d-kpi-v { font-family: var(--font-display); font-weight: 750; font-stretch: 105%; font-size: 22px; align-self: center; letter-spacing: -.01em; }
.d-kpi-d { font-size: 10.5px; font-weight: 600; font-family: var(--font-mono); grid-column: 1; }
.d-kpi-d.good { color: var(--d-good, #1d8a4a); }
.d-kpi-d.bad { color: var(--d-bad, #c2412d); }
.d-kpi svg { grid-column: 2; grid-row: 2 / 4; align-self: end; }
.d-row { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; min-height: 0; }
.d-panel { background: var(--d-panel); border: 1px solid var(--d-line); border-radius: var(--d-r, 8px); padding: 12px; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.d-ptitle { font-size: 11.5px; font-weight: 650; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }
.d-ptitle span { color: var(--d-muted); font-weight: 500; }
.d-panel svg { overflow: visible; }
.d-gl { stroke: var(--d-grid); stroke-width: 1; }
.d-ax { fill: var(--d-muted); font-size: 9.5px; font-family: var(--font-body); }
.d-legend { display: flex; gap: 12px; font-size: 10px; color: var(--d-muted); }
.d-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: -0.5px; }
.d-hbars { display: grid; gap: 7px; align-content: start; }
.d-hbar { display: grid; grid-template-columns: 78px 1fr 46px; align-items: center; gap: 8px; font-size: 10.5px; }
.d-hbar span { color: var(--d-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-hbar i { display: block; height: 11px; border-radius: 2px; background: var(--d-a1); width: calc(var(--v) * 100%); }
.d-hbar b { text-align: right; font-weight: 600; font-family: var(--font-mono); font-size: 10px; }
.d-donut { display: flex; align-items: center; gap: 14px; flex: 1; }
.d-donut ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; font-size: 10.5px; }
.d-donut li { display: grid; grid-template-columns: 10px 1fr auto; gap: 6px; align-items: center; }
.d-donut li i { width: 8px; height: 8px; border-radius: 2px; }
.d-donut li b { font-family: var(--font-mono); font-size: 10px; font-weight: 600; }
.d-heat { display: grid; gap: 3px; flex: 1; }
.d-heat-row { display: grid; grid-template-columns: 30px repeat(var(--n), 1fr); gap: 3px; align-items: center; font-size: 9.5px; color: var(--d-muted); }
.d-heat-row i { height: 100%; min-height: 12px; border-radius: 2px; background: color-mix(in srgb, var(--d-a1) calc(var(--v) * 100%), var(--d-panel)); }
.d-table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.d-table th { text-align: left; font-weight: 600; color: var(--d-muted); padding: 4px 6px; border-bottom: 1px solid var(--d-line); }
.d-table td { padding: 5px 6px; border-bottom: 1px solid var(--d-grid); }
.d-table .r { text-align: right; font-family: var(--font-mono); font-size: 10px; }
.d-pill { display: inline-block; padding: 1px 7px; border-radius: 99px; font-size: 9.5px; font-weight: 600; }
.d-pill.ok { background: color-mix(in srgb, var(--d-a1) 18%, transparent); color: var(--d-a1); }
.d-pill.warn { background: color-mix(in srgb, var(--d-a2) 30%, transparent); color: color-mix(in srgb, var(--d-a2) 60%, var(--d-ink)); }
.d-pill.bad { background: rgba(194, 65, 45, .14); color: #c2412d; }
.d-progress { display: grid; gap: 10px; align-content: start; }
.d-prog { display: grid; gap: 4px; font-size: 10.5px; }
.d-prog div { display: flex; justify-content: space-between; }
.d-prog div b { font-family: var(--font-mono); font-size: 10px; }
.d-prog span { display: block; height: 7px; border-radius: 99px; background: var(--d-grid); overflow: hidden; }
.d-prog span i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--d-a1); border-radius: inherit; }
.d-stack { display: flex; height: 22px; border-radius: 4px; overflow: hidden; margin: 6px 0 10px; }
.d-stack i { height: 100%; }
.d-foot {
  height: 28px; flex: none; display: flex; align-items: stretch; gap: 2px; padding-left: 14px;
  background: var(--d-panel); border-top: 1px solid var(--d-line); font-size: 11px; color: var(--d-muted);
}
.d-foot span { display: flex; align-items: center; padding: 0 14px; }
.d-foot span.on { color: var(--d-ink); font-weight: 650; box-shadow: inset 0 -2px 0 var(--d-a1); background: var(--d-bg); }
/* nav-kit variant */
.d-nav { width: 170px; flex: none; background: var(--d-chrome); color: var(--d-chrome-ink); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.d-nav-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; margin-bottom: 14px; }
.d-nav-brand i { width: 22px; height: 22px; border-radius: 6px; background: var(--d-a2); }
.d-nav a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px; color: inherit; opacity: .8; font-size: 12px; text-decoration: none; }
.d-nav a i { width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid currentColor; }
.d-nav a.on { background: rgba(255, 255, 255, .14); opacity: 1; font-weight: 650; }
.d-drawer { position: absolute; top: 34px; right: 0; bottom: 0; width: 210px; background: var(--d-panel); border-left: 1px solid var(--d-line); box-shadow: -18px 0 40px -20px rgba(0, 0, 0, .35); padding: 16px 14px; display: grid; align-content: start; gap: 14px; font-size: 11px; }
.d-drawer h5 { margin: 0; font-size: 12.5px; font-weight: 700; display: flex; justify-content: space-between; }
.d-slicer { display: grid; gap: 6px; }
.d-slicer p { margin: 0; font-weight: 650; color: var(--d-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.d-slicer label { display: flex; align-items: center; gap: 7px; }
.d-slicer label i { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--d-line); }
.d-slicer label i.on { background: var(--d-a1); border-color: var(--d-a1); }
.d-btn { justify-self: start; padding: 6px 12px; border-radius: 6px; background: var(--d-a1); color: #fff; font-weight: 650; }

/* chart draw-in */
.d-path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.is-drawing .d-path:not(.is-dashed) { animation: draw 1.4s cubic-bezier(.3, .7, .2, 1) both; }
.is-drawing .d-barr { animation: grow .8s cubic-bezier(.2, .8, .2, 1) both; transform-box: fill-box; transform-origin: bottom; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- AI ---------- */
.section-dark {
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(247, 212, 23, .07), transparent 60%),
    linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / var(--col-w) var(--row-h),
    linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / var(--col-w) var(--row-h),
    var(--canopy);
  color: #e3ece5;
}
.section-dark .h2 { color: #fff; }
.section-dark .section-intro { color: #b7c9bc; }
.eyebrow-bolt { color: var(--bolt); }
.eyebrow-bolt::before { box-shadow: 3px 3px 0 -1px var(--green); }
.ai-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.ai-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.ai-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.ai-list .icon { width: 40px; height: 40px; padding: 9px; border-radius: 9px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: var(--bolt); }
.ai-list h3 { color: #fff; font-size: 1.08rem; margin-bottom: 4px; }
.ai-list p { margin: 0; color: #b7c9bc; font-size: .98rem; }

.chat {
  background: #0f3d25; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.chat-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-weight: 600; font-size: .92rem; color: #fff; }
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bolt); box-shadow: 0 0 0 4px rgba(247, 212, 23, .18); }
.chat-body { padding: 18px; display: grid; gap: 14px; }
.msg { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: .95rem; line-height: 1.5; }
.msg-user { justify-self: end; max-width: 80%; background: var(--bolt); color: var(--canopy); font-weight: 600; border-bottom-right-radius: 4px; }
.msg-ai { background: #fff; color: var(--ink); border-bottom-left-radius: 4px; }
.msg-ai p { margin: 0 0 12px; }
.chat-bars { display: grid; gap: 8px; margin-bottom: 12px; }
.chat-bars div { display: grid; grid-template-columns: 104px 1fr 64px; gap: 10px; align-items: center; font-size: .82rem; }
.chat-bars span { color: var(--text-2); }
.chat-bars i { display: block; height: 10px; border-radius: 2px; background: var(--error); width: calc(var(--v) * 100%); opacity: .85; }
.chat-bars div:not(:first-child) i { background: #e3a092; }
.chat-bars b { font-family: var(--font-mono); font-size: .76rem; text-align: right; }
.msg-ai .chat-src { margin: 0; font-size: .78rem; color: var(--graphite); }
.chat-src code { background: var(--sheet); border: 1px solid var(--grid); padding: 0 4px; border-radius: 3px; font-size: .74rem; }
.chat-input { margin: 0 18px 18px; display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); color: #8fb09a; font-size: .9rem; }

/* ---------- templates ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tpl { display: flex; flex-direction: column; }
.tpl-thumb { position: relative; aspect-ratio: 960 / 600; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--grid); background: var(--sheet); }
.tpl-thumb .d-frame { border: 0; border-radius: 0; box-shadow: none; }
.tpl-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.tpl-body h3 { margin-bottom: 8px; }
.tpl-body > p:not(.tpl-tag) { color: var(--text-2); font-size: .96rem; }
.tpl-tag { margin: 0 0 10px; font-family: var(--font-mono); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.tag-excel { color: var(--green); }
.tag-pbi { color: #8a6d00; }
.tpl-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; font-size: .95rem; }
.tpl-link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tpl-link .icon { transition: transform .18s; }
.tpl:hover .tpl-link .icon { transform: translateX(3px); }
.tpl-custom {
  margin-top: 22px; padding: 18px 22px; border: 1.5px dashed #b9c7bd; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.tpl-custom p { margin: 0; color: var(--text-2); }
.tpl-custom strong { color: var(--ink); }

/* ---------- process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
.step { position: relative; padding-top: 64px; }
.step::before { content: ""; position: absolute; top: 21px; left: 46px; right: -18px; border-top: 2px dashed #b9c7bd; }
.step:last-child::before { display: none; }
.step-no {
  position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--green); border-radius: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--green);
}
.step:last-child .step-no { background: var(--bolt); border-color: var(--bolt); color: var(--canopy); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-2); margin: 0; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.about-photo { position: relative; }
.about-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--radius);
  background:
    linear-gradient(to right, var(--grid) 1px, transparent 1px) 0 0 / 40px 24px,
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px) 0 0 / 40px 24px;
  border: 1px solid var(--grid);
}
.about-photo img, .photo-slot { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow-2); }
.photo-slot {
  display: grid; place-items: center;
  background: radial-gradient(120% 80% at 30% 20%, #0f5a32, var(--canopy));
  overflow: hidden;
}
.photo-slot span { font-family: var(--font-display); font-weight: 800; font-stretch: 125%; font-size: clamp(6rem, 14vw, 10rem); color: rgba(255, 255, 255, .92); line-height: 1; }
.photo-mark { position: absolute; top: 20px; left: 20px; width: 40px; height: 40px; }
.about-copy p:not(.eyebrow) { color: var(--text-2); }
.about-copy .h2 { margin-bottom: 20px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 30px 0 32px; border: 1px solid var(--grid); border-radius: var(--radius); overflow: hidden; }
.facts div { padding: 16px 18px; border-right: 1px solid var(--grid); }
.facts div:last-child { border-right: 0; }
.facts dt { font-family: var(--font-display); font-weight: 800; font-stretch: 108%; font-size: 1.35rem; color: var(--green); }
.facts dd { margin: 2px 0 0; font-size: .88rem; color: var(--graphite); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--paper); border: 1px solid var(--grid); border-radius: 10px; transition: border-color .15s; }
.faq-list details[open] { border-color: var(--green); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-weight: 600; font-size: 1.04rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { color: var(--green); transition: transform .2s; }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 20px 20px; color: var(--text-2); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact-copy > p:not(.eyebrow) { color: var(--text-2); }
.contact-copy .h2 { margin-bottom: 20px; }
.contact-copy .ticks { margin-top: 24px; }
.contact-lang { display: flex; align-items: flex-start; gap: 10px; color: var(--graphite) !important; font-size: .95rem; margin-bottom: .6em; }
.contact-lang .icon { margin-top: .22em; }
.contact-lang a { font-weight: 600; }
.contact-lang .icon { color: var(--green); }
.form { padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-1); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: .92rem; }
.opt { font-weight: 400; color: var(--graphite); font-size: .85rem; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 11px 13px; min-height: 46px;
  background: var(--paper); border: 1.5px solid var(--grid); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--graphite) 50%), linear-gradient(135deg, var(--graphite) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(3, 113, 51, .15); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--error); }
.field-check { grid-template-columns: 20px 1fr; align-items: start; gap: 10px; }
.field-check input { width: 18px; height: 18px; min-height: 0; margin: 3px 0 0; accent-color: var(--green); }
.field-check label { font-weight: 400; font-size: .9rem; color: var(--text-2); }
.hp { position: absolute; left: -9999px; }
/* shown by main.js (.is-shown) or, without JavaScript, when the server redirects to #contact-error */
.form-error {
  display: none; align-items: flex-start; gap: 10px; margin: 0;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: #fbeae6; border: 1.5px solid #efc3b9; color: #8f2c1d;
  font-size: .93rem; line-height: 1.45;
}
.form-error:target, .form-error.is-shown { display: flex; }
.form-error .icon { margin-top: .1em; }
.form-error a { color: inherit; font-weight: 600; }
.form.is-sending .btn { cursor: progress; opacity: .75; }

/* ---------- footer ---------- */
.site-footer { background: var(--canopy-950); color: #a9bcae; padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 16px; max-width: 30em; }
.brand-light .wm-zed { color: #c9d3cc; }
.brand-light .wm-excel { color: #3fbf74; }
.footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-nav div { display: grid; gap: 8px; align-content: start; }
.footer-h { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--bolt); margin: 0 0 4px; }
.footer-nav a { color: #d3dfd6; text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; color: #7f9585; }
.footer-base p { margin: 0; }

/* ---------- tool colour coding: Excel green, Power BI yellow, Power Query slate ---------- */
.tool-tag {
  display: inline-flex; align-items: center; width: max-content;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 8px; border-radius: 4px; white-space: nowrap;
}
.tool-excel { color: var(--green); background: var(--green-tint); }
.tool-pbi { color: #6d5200; background: #fdeeb0; }
.tool-pq { color: #24505f; background: #dfedf1; }

/* ---------- toolkit (Excel / Power BI / Power Query in detail) ---------- */
.toolkit { margin-top: clamp(64px, 9vw, 112px); }
.toolkit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tk { display: flex; flex-direction: column; overflow: hidden; border-top-width: 4px; }
.tk-excel { border-top-color: var(--green); }
.tk-pbi { border-top-color: #f2c811; }
.tk-pq { border-top-color: #2f5563; }
.tk-head { display: flex; align-items: center; gap: 12px; padding: 20px 24px 0; }
.tk-head h3 { font-size: 1.3rem; font-stretch: 105%; }
.tk-ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; }
.tk-ico .icon { width: 21px; height: 21px; }
.tk-excel .tk-ico { background: var(--green); }
.tk-pbi .tk-ico { background: #f2c811; color: var(--canopy); }
.tk-pq .tk-ico { background: #2f5563; }
.tk-body { padding: 14px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.tk-lead { color: var(--text-2); }
.tk .ticks { gap: 10px; font-size: .97rem; }
.tk-best { margin: auto 0 0; padding-top: 14px; border-top: 1px dashed var(--grid); font-size: .9rem; color: var(--graphite); }

/* ---------- formats ---------- */
.formats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fmt { padding: 26px; display: flex; flex-direction: column; }
.fmt h3 { margin-top: 18px; }
.fmt > p:not(.fmt-meta) { color: var(--text-2); }
.fmt-featured { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.fmt-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.fmt-meta span {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  padding: 3px 8px; border-radius: 4px; background: var(--sheet); border: 1px solid var(--grid); color: var(--text-2);
}
.fmt-meta span:last-child { background: var(--bolt-fill); border-color: var(--bolt); color: var(--ink); }
.fmt-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.fmt-link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.fmt-link .icon { transition: transform .18s; }
.fmt:hover .fmt-link .icon { transform: translateX(3px); }

/* ---------- training courses ---------- */
.training { margin-top: clamp(48px, 7vw, 80px); display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.h3-lg { font-family: var(--font-display); font-stretch: 108%; font-weight: 750; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.12; letter-spacing: -.015em; margin-bottom: 14px; }
.training-copy p { color: var(--text-2); }
.courses { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--grid); border-radius: var(--radius); overflow: hidden; }
.course {
  position: relative;
  display: grid; grid-template-columns: 112px minmax(0, 1fr) auto 28px; align-items: center; gap: 4px 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--grid);
  transition: background-color .15s;
}
.course:last-child { border-bottom: 0; }
.course:hover, .course:focus-within { background: var(--green-wash); }
.course .tool-tag { grid-row: 1 / span 2; }
.course h4 { grid-column: 2; font-family: var(--font-display); font-weight: 650; font-size: 1.04rem; margin: 0; }
.course p { grid-column: 2; margin: 0; color: var(--text-2); font-size: .93rem; line-height: 1.45; }
.course-dur { grid-column: 3; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .78rem; color: var(--graphite); white-space: nowrap; }
.course-dur .icon { width: 14px; height: 14px; }
.course-link { grid-column: 4; grid-row: 1 / span 2; display: grid; place-items: center; color: var(--green); }
.course-link::before { content: ""; position: absolute; inset: 0; }
.course-link .icon { transition: transform .18s; }
.course:hover .course-link .icon { transform: translateX(3px); }

/* ---------- templates: filter + meta ---------- */
.tpl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  padding: 8px 16px; border-radius: 99px; border: 1.5px solid var(--grid); background: var(--paper);
  font-weight: 600; font-size: .92rem; color: var(--text-2);
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip[aria-pressed="true"] { background: var(--canopy); border-color: var(--canopy); color: #fff; }
.tpl[hidden] { display: none; }
.tpl-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.tpl-price { font-family: var(--font-mono); font-weight: 700; font-size: .85rem; color: var(--ink); }
.tpl-price.is-free { color: var(--green); }
.tpl-custom-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Power Query editor mockup (inside a 960×600 canvas) ---------- */
.d-canvas.pq { font-size: 11px; }
.pq-ribbon { height: 50px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 10px; background: #fff; border-bottom: 1px solid var(--d-line); }
.pq-ribbon span { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 74px; font-size: 9.5px; color: var(--d-muted); text-align: center; line-height: 1.1; }
.pq-ribbon i { width: 18px; height: 16px; border-radius: 3px; background: #dfe8e3; }
.pq-ribbon span:first-child i { background: var(--d-a1); }
.pq-main { flex: 1; display: grid; grid-template-columns: 176px minmax(0, 1fr) 196px; min-height: 0; }
.pq-queries, .pq-settings { background: #fff; padding: 10px 12px; overflow: hidden; }
.pq-queries { border-right: 1px solid var(--d-line); }
.pq-settings { border-left: 1px solid var(--d-line); }
.pq-h { margin: 0 0 8px; font-weight: 700; font-size: 12px; }
.pq-group { margin: 8px 0 4px; font-weight: 600; color: var(--d-muted); }
.pq-q { margin: 0; padding: 4px 8px; display: flex; align-items: center; gap: 7px; border-radius: 4px; }
.pq-q i { width: 11px; height: 9px; border: 1.5px solid #6b8f7a; border-radius: 1px; }
.pq-q i.fx { border-color: #2f5563; border-radius: 50%; }
.pq-q.on { background: #e4f1e7; font-weight: 700; color: var(--d-a1); }
.pq-center { display: flex; flex-direction: column; min-width: 0; padding: 8px; gap: 8px; }
.pq-fx { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: #fff; border: 1px solid var(--d-line); border-radius: 4px; white-space: nowrap; overflow: hidden; }
.pq-fx b { font-style: italic; color: var(--d-muted); }
.pq-fx code { font-family: var(--font-mono); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; }
.pq-table { flex: 1; background: #fff; border: 1px solid var(--d-line); border-radius: 4px; overflow: hidden; }
.pq-tr { display: grid; grid-template-columns: 34px 92px 76px 84px 70px 1fr; }
.pq-tr span { padding: 4px 8px; border-right: 1px solid var(--d-grid); border-bottom: 1px solid var(--d-grid); white-space: nowrap; overflow: hidden; }
.pq-tr span.r { text-align: right; font-family: var(--font-mono); font-size: 10px; }
.pq-th span { font-weight: 700; background: #f3f6f2; display: flex; gap: 6px; align-items: center; }
.pq-th em { font-style: normal; font-family: var(--font-mono); font-size: 8.5px; color: var(--d-a1); border: 1px solid #b8d4c2; border-radius: 2px; padding: 0 3px; }
.pq-quality span { padding: 3px 8px; }
.pq-quality i { display: block; height: 3px; border-radius: 2px; background: var(--d-a1); }
.pq-sub { margin: 10px 0 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: var(--d-muted); }
.pq-name { margin: 0; line-height: 1.5; color: var(--d-muted); }
.pq-name b { color: var(--d-ink); }
.pq-settings ol { list-style: none; margin: 0; padding: 0; }
.pq-settings li { padding: 4px 8px; border-radius: 4px; }
.pq-settings li::before { content: "⚙ "; color: var(--d-muted); }
.pq-settings li.on { background: #e4f1e7; color: var(--d-a1); font-weight: 700; }
.pq-status { gap: 8px; }
.pq-status span:last-child { margin-left: auto; }
.pq-ok { color: var(--d-a1) !important; font-weight: 600; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- simple pages (legal, thanks, 404) ---------- */
.page { padding-block: clamp(56px, 8vw, 96px); }
.page .container { max-width: 820px; }
.page h1 { margin-bottom: 24px; }
.page h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; margin: 36px 0 10px; }
.page p, .page li { color: var(--text-2); }
.notice { padding: 14px 18px; border-left: 4px solid var(--bolt); background: #fffbe2; border-radius: 6px; color: var(--ink) !important; }
.page-center { min-height: calc(100vh - var(--header-h) - 120px); display: grid; place-items: center; text-align: center; }
.page-center .eyebrow { justify-content: center; }
.page-center .lead { margin: 20px auto 32px; }
.page-mark { margin: 0 auto 28px; }
.page-404 { font-size: clamp(3rem, 10vw, 6rem); }
.placeholder { background: var(--bolt-fill); padding: 0 4px; border-radius: 3px; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .site-nav a { padding: 8px 9px; }
  .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-panel { grid-template-columns: 1fr; }
  .work-desc { max-width: 680px; }
}

@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; margin-left: 0; }
  .header-cta { display: none; }
  .lang-switch { margin-left: auto; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--pad) 22px;
    background: var(--paper); border-bottom: 1px solid var(--grid);
    box-shadow: 0 30px 40px -30px rgba(10, 46, 27, .35);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s, transform .18s, visibility 0s .18s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .18s, transform .18s; }
  .site-nav a { padding: 13px 12px; font-size: 1.05rem; }
  .site-nav a.is-active::after { display: none; }
  .nav-cta-mobile { display: inline-flex; margin-top: 10px; color: #fff !important; }
  .nav-cta-mobile:hover { background: var(--green-700) !important; }
}

@media (max-width: 920px) {
  :root { --header-h: 62px; }
  .hero-inner { grid-template-columns: 1fr; padding-left: var(--pad); padding-top: 64px; }
  .sheet-rows, .sheet-frame::before { display: none; }
  .sheet-cols { left: 0; }
  .sheet-lines { left: 0; }
  .hero-visual { max-width: 620px; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .svc, .svc-wide { grid-column: span 1; }
  .svc-wide { grid-column: 1 / -1; }
  .toolkit-grid, .formats-grid { grid-template-columns: 1fr; max-width: 680px; }
  .training { grid-template-columns: 1fr; }
  .ai-inner, .about, .faq, .contact { grid-template-columns: 1fr; }
  .faq .section-head { position: static; }
  .about-photo { max-width: 360px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .step:nth-child(2)::before { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --col-w: 96px; --row-h: 32px; }
  body { font-size: 1rem; }
  .display { font-size: clamp(2.35rem, 11vw, 3rem); }
  .hero-actions .btn { width: 100%; }
  .hero-visual { padding-bottom: 0; }
  .wb { font-size: 12px; }
  .wb-grid { grid-template-columns: 24px 1.15fr .85fr .95fr .95fr; grid-auto-rows: 30px; }
  .wb-c { padding: 0 6px; }
  .wb-name { width: 56px; }
  .wb-chart, .wb-ai { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin-top: 12px; }
  .wb-replay { position: static; margin-top: 8px; }
  .services-grid { grid-template-columns: 1fr; }
  .svc-wide, .svc { grid-column: 1 / -1; }
  .svc { padding: 22px; }
  .svc-art { margin: 20px -22px -22px; padding: 16px 22px 18px; }
  .svc-art-kpi { grid-template-columns: 1fr 1fr; }
  .mini-line { grid-column: 1 / -1; }
  .tpl-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step::before { display: none; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-right: 0; border-bottom: 1px solid var(--grid); }
  .facts div:last-child { border-bottom: 0; }
  .field-row { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .work-tabs { justify-self: stretch; }
  .work-tab { flex: 1 1 auto; }
  .chat-bars div { grid-template-columns: 90px 1fr 58px; }
  .header-inner { gap: 10px; }
  .wordmark { font-size: 1.32rem; }
  .brand-mark { width: 30px; height: 30px; }
  .course { grid-template-columns: minmax(0, 1fr) 28px; gap: 6px 12px; padding: 16px; }
  .course .tool-tag { grid-row: auto; grid-column: 1; }
  .course h4, .course p, .course-dur { grid-column: 1; grid-row: auto; }
  .course-link { grid-column: 2; grid-row: 1 / span 4; }
  .tpl-custom-actions .btn { width: 100%; }
  .about-photo::before { inset: 12px -10px -12px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
