/* ============================================================
   AGENCY WEBSITE — boutique software consultancy
   Editorial premium system
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* paper / ink (deep cool charcoal) */
  --paper:      oklch(0.166 0.008 245);
  --paper-2:    oklch(0.205 0.010 245);
  --paper-3:    oklch(0.255 0.012 245);
  --ink:        oklch(0.965 0.004 240);
  --ink-soft:   oklch(0.788 0.008 240);
  --ink-muted:  oklch(0.612 0.010 242);
  --line:       oklch(0.312 0.012 245);
  --line-soft:  oklch(0.255 0.010 245);

  /* accent — luminous emerald (brightened for dark) */
  --accent:      oklch(0.745 0.135 168);
  --accent-deep: oklch(0.668 0.125 168);
  --accent-2:    oklch(0.825 0.110 168);
  --accent-soft: oklch(0.340 0.058 170);
  --accent-tint: oklch(0.250 0.034 172);
  --on-accent:   oklch(0.155 0.030 168);

  /* dark sections (recessed deeper band) */
  --ink-deep:   oklch(0.122 0.010 245);
  --ink-deep-2: oklch(0.205 0.012 245);
  --on-deep:    oklch(0.965 0.004 240);
  --on-deep-soft: oklch(0.748 0.010 240);
  --line-deep:  oklch(0.288 0.012 245);

  /* type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* metrics */
  --container: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(5rem, 11vh, 9rem);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4), 0 2px 6px oklch(0 0 0 / 0.35);
  --shadow-md: 0 8px 22px oklch(0 0 0 / 0.45), 0 2px 6px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 28px 70px oklch(0 0 0 / 0.6), 0 10px 26px oklch(0 0 0 / 0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3.5rem, 7vh, 6rem); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 1.6em; height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.eyebrow--center { justify-content: center; }

h1, h2, h3 { font-family: var(--serif); font-weight: 450; line-height: 1.08; letter-spacing: -0.012em; color: var(--ink); }
.h-display { font-size: clamp(2.7rem, 5.6vw, 4.7rem); line-height: 1.04; letter-spacing: -0.02em; }
.h-section { font-size: clamp(2rem, 3.9vw, 3.15rem); }
.h-sub     { font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.18; }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.16; }

.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); }
.muted { color: var(--ink-muted); }
em.accent, .ital { font-style: italic; color: var(--accent-deep); }
.measure { max-width: 42ch; }
.measure-wide { max-width: 58ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem;
  letter-spacing: -0.005em;
  padding: 0.92em 1.5em;
  border-radius: 100px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 1px 2px oklch(0.4 0.07 168 / 0.3), 0 8px 22px oklch(0.4 0.07 168 / 0.18);
}
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 2px 4px oklch(0.4 0.07 168 / 0.3), 0 14px 30px oklch(0.4 0.07 168 / 0.24); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn--light { background: var(--on-deep); color: var(--ink-deep); }
.btn--light:hover { background: #fff; transform: translateY(-2px); }
.btn--on-deep-ghost { background: transparent; color: var(--on-deep); border-color: var(--line-deep); }
.btn--on-deep-ghost:hover { border-color: var(--on-deep); }

.btn--sm { padding: 0.6em 1.05em; font-size: 0.86rem; }

.textlink {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; color: var(--accent-deep);
  border-bottom: 1px solid transparent; padding-bottom: 1px;
  transition: gap 0.25s var(--ease), border-color 0.25s var(--ease);
}
.textlink:hover { gap: 0.75em; border-color: currentColor; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav.is-scrolled {
  background: oklch(0.166 0.008 245 / 0.72);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: var(--line-soft);
}
.nav.is-scrolled .nav__inner { height: 64px; }

.logo { display: inline-flex; align-items: center; gap: 0.6em; }
.logo__mark { width: 30px; height: 30px; flex: none; overflow: visible; }
.logo__stroke {
  fill: none; stroke-width: 3.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 60; stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.7s var(--ease), stroke 0.3s var(--ease);
}
.logo__stroke--j { stroke: var(--accent); }
.logo__stroke--l { stroke: var(--ink); }
.logo:hover .logo__stroke { stroke-dashoffset: 60; animation: logo-draw 0.9s var(--ease) forwards; }
.logo:hover .logo__stroke--l { animation-delay: 0.12s; }
@keyframes logo-draw { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .logo:hover .logo__stroke { animation: none; stroke-dashoffset: 0; }
}
.logo__name { font-family: var(--serif); font-size: 1.32rem; font-weight: 500; letter-spacing: -0.01em; }
.logo__name b { font-weight: 600; }
.logo__tld {
  font-family: var(--mono); font-size: 0.66em; font-weight: 500;
  color: var(--accent); margin-left: 0.12em; letter-spacing: 0;
}

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav__link {
  font-size: 0.95rem; font-weight: 500; color: var(--ink-soft);
  position: relative; transition: color 0.2s var(--ease); white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0;
  background: var(--accent); transition: width 0.28s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 1.25rem; }

.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center; }
.nav__toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; transition: 0.3s var(--ease); }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink); transition: 0.3s var(--ease); }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav__toggle span::after { top: 0; transform: rotate(-45deg); }

/* mobile menu */
.nav__mobile {
  position: fixed; inset: 0 0 auto 0; top: 0; z-index: 99;
  background: var(--paper); padding: 88px var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: 0.25rem;
  transform: translateY(-100%); transition: transform 0.4s var(--ease);
  box-shadow: var(--shadow-lg); border-bottom: 1px solid var(--line);
}
.nav.is-open .nav__mobile { transform: translateY(0); }
.nav__mobile a { font-family: var(--serif); font-size: 1.6rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line-soft); }
.nav__mobile .btn { margin-top: 1.25rem; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(8rem, 16vh, 11rem); padding-bottom: clamp(3.5rem, 7vh, 6rem); position: relative; }
.hero::before { content: ""; position: absolute; top: -8%; right: 0; width: min(660px, 78vw); height: min(660px, 78vw); border-radius: 50%; background: radial-gradient(circle, oklch(0.745 0.135 168 / 0.16), transparent 60%); pointer-events: none; z-index: 0; }
.hero .hero__grid { position: relative; z-index: 1; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__title { margin: 1.4rem 0 0; }
.hero__title .ital { display: inline; }
.hero__sub { margin-top: 1.6rem; max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; align-items: center; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.hero__stat { display: flex; flex-direction: column; gap: 0.15rem; }
.hero__stat b { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; line-height: 1; }
.hero__stat span { font-size: 0.82rem; color: var(--ink-muted); }

/* hero visual — "this week" demo card cluster */
.hero__visual { position: relative; }
.demo-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.5rem 1.5rem 1.6rem;
  position: relative; z-index: 2;
}
.demo-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.demo-card__week { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.pill { display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.75rem; font-weight: 600; padding: 0.32em 0.7em; border-radius: 100px; }
.pill--live { background: var(--accent-soft); color: var(--accent-deep); }
.pill--scope { background: var(--paper-3); color: var(--ink-soft); }
.pill--live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 oklch(0.475 0.072 168 / 0.5);} 70% { box-shadow: 0 0 0 7px oklch(0.475 0.072 168 / 0);} 100% { box-shadow: 0 0 0 0 oklch(0.475 0.072 168 / 0);} }

.demo-thumb {
  border-radius: 12px; aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--paper-2) 0 11px, var(--paper-3) 11px 22px);
  border: 1px solid var(--line); display: grid; place-items: center;
}
.demo-thumb__play { width: 54px; height: 54px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-md); display: grid; place-items: center; }
.demo-thumb__play::after { content: ""; width: 0; height: 0; border-left: 13px solid var(--accent); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.demo-thumb__label { position: absolute; left: 12px; bottom: 11px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); background: oklch(0.166 0.008 245 / 0.85); padding: 0.25em 0.55em; border-radius: 6px; }
.demo-card__cap { font-size: 0.92rem; color: var(--ink-soft); margin-top: 1.05rem; line-height: 1.45; }
.demo-card__cap b { color: var(--ink); font-weight: 600; }
.demo-card--scope { padding-bottom: 1.55rem; }
.scope-board {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, oklch(0.19 0.01 245), oklch(0.172 0.01 245));
  border: 1px solid var(--line-soft);
}
.scope-board__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem 0.95rem;
  border-radius: 16px;
  background: oklch(0.174 0.01 245);
  border: 1px solid var(--line-soft);
}
.scope-board__item--featured {
  background: linear-gradient(180deg, oklch(0.255 0.04 168), oklch(0.215 0.03 168));
  border-color: oklch(0.745 0.135 168 / 0.32);
  box-shadow: 0 14px 28px oklch(0.02 0.01 240 / 0.3);
}
.scope-board__num {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: oklch(0.22 0.01 245);
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.scope-board__item--featured .scope-board__num {
  background: var(--accent);
  color: var(--on-accent);
}
.scope-board__copy strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
}
.scope-board__copy p {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.budget { margin-top: 1.2rem; padding-top: 1.15rem; border-top: 1px solid var(--line-soft); }
.budget__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.84rem; margin-bottom: 0.55rem; }
.budget__row span { color: var(--ink-muted); }
.budget__row b { font-family: var(--mono); font-weight: 500; color: var(--ink); font-size: 0.88rem; }
.budget__bar { height: 8px; border-radius: 100px; background: var(--paper-3); overflow: hidden; }
.budget__fill { height: 100%; width: 0; border-radius: 100px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.4s var(--ease); }

.demo-card--mini {
  position: absolute; z-index: 3; right: -22px; bottom: -34px; width: 230px;
  padding: 1rem 1.15rem; z-index: 4;
}
.demo-card--scope-mini { bottom: -30px; }
.demo-card--mini .mini__title { font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 0.5em; }
.demo-card--mini .mini__title .check { width: 17px; height: 17px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; }
.demo-card--mini .mini__title .check::after { content: ""; width: 4px; height: 7px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg) translateY(-1px); }
.demo-card--mini ul { list-style: none; margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.4rem; }
.demo-card--mini li { font-size: 0.78rem; color: var(--ink-soft); display: flex; gap: 0.5em; align-items: center; }
.demo-card--mini li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); flex: none; }
.hero__visual-tag {
  position: absolute; top: -18px; left: -14px; z-index: 5;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted); background: var(--paper); border: 1px solid var(--line); padding: 0.4em 0.7em; border-radius: 100px; box-shadow: var(--shadow-sm); white-space: nowrap;
}

/* marquee of capabilities under hero */
.logos { border-block: 1px solid var(--line); padding-block: 1.6rem; }
.logos__label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); text-align: center; margin-bottom: 1.1rem; }
.logos__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 0.7rem; }
.cap-chip { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); padding: 0.5em 1em; border: 1px solid var(--line); border-radius: 100px; background: var(--paper); transition: 0.25s var(--ease); }
.cap-chip:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.sec-head { max-width: 760px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head .eyebrow { margin-bottom: 1.1rem; }
.sec-head__title { margin-bottom: 1.1rem; }
.sec-head__sub { color: var(--ink-soft); }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem { background: var(--paper-2); }
.problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.problem__list { display: flex; flex-direction: column; }
.frustration {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: baseline;
  padding: 1.25rem 0; border-bottom: 1px solid var(--line);
}
.frustration:first-child { padding-top: 0; }
.frustration:last-child { border-bottom: none; }
.frustration__num { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-muted); padding-top: 0.2rem; }
.frustration__txt strong { display: block; font-weight: 600; font-size: 1.08rem; margin-bottom: 0.15rem; }
.frustration__txt span { color: var(--ink-muted); font-size: 0.95rem; }
.problem__pull {
  font-family: var(--serif); font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.32;
  color: var(--ink); margin-top: 1.8rem; padding-left: 1.3rem; border-left: 2px solid var(--accent);
}

/* ============================================================
   APPROACH — timeline
   ============================================================ */
.timeline { margin-top: clamp(2.5rem, 5vw, 4rem); position: relative; }
.timeline__track { position: relative; }
.timeline__line { position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: var(--line); }
.timeline__line-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--accent); transition: width 1.5s var(--ease); }
.timeline__steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; position: relative; }
.tstep { position: relative; }
.tstep__dot {
  width: 46px; height: 46px; border-radius: 50%; background: var(--paper);
  border: 2px solid var(--line); display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.9rem; font-weight: 500; color: var(--ink-muted);
  position: relative; z-index: 2; transition: 0.4s var(--ease); margin-bottom: 1.1rem;
}
.tstep.is-on .tstep__dot { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-tint); }
.tstep__title { font-family: var(--serif); font-size: 1.12rem; font-weight: 500; margin-bottom: 0.4rem; }
.tstep__desc { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.45; }
.timeline__loop {
  margin-top: 2.4rem; display: inline-flex; align-items: center; gap: 0.7em;
  font-size: 0.92rem; color: var(--accent-deep); font-weight: 500;
  background: var(--accent-tint); border: 1px solid var(--accent-soft);
  padding: 0.7em 1.1em; border-radius: 100px;
}
.timeline__loop .loop-ico { width: 16px; height: 16px; border: 1.6px solid var(--accent); border-radius: 50%; border-right-color: transparent; transform: rotate(-45deg); flex: none; position: relative; }
.timeline__loop .loop-ico::after { content:""; position:absolute; right:-3px; top:-1px; width:0;height:0; border-left:5px solid var(--accent); border-top:3px solid transparent; border-bottom:3px solid transparent; transform: rotate(58deg);}

/* ============================================================
   TRANSPARENCY — feature cards
   ============================================================ */
.transparency { background: var(--ink-deep); color: var(--on-deep); }
.transparency h2, .transparency .sec-head__title { color: var(--on-deep); }
.transparency .eyebrow { color: var(--accent-2); }
.transparency .sec-head__sub { color: var(--on-deep-soft); }
.tcards { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.tcard {
  background: var(--ink-deep-2); border: 1px solid var(--line-deep); border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.8rem; transition: 0.3s var(--ease);
  display: flex; flex-direction: column;
}
.tcard:hover { transform: translateY(-4px); border-color: var(--accent); background: oklch(0.285 0.022 165); }
.tcard__ico { width: 40px; height: 40px; margin-bottom: 1.3rem; color: var(--accent-2); }
.tcard h3 { color: var(--on-deep); margin-bottom: 0.5rem; font-size: 1.2rem; }
.tcard p { color: var(--on-deep-soft); font-size: 0.95rem; line-height: 1.5; }
.tcard--wide { grid-column: span 1; }
.tcard:nth-child(4), .tcard:nth-child(5) { grid-column: span 1; }
.tcards--5 { grid-template-columns: repeat(6, 1fr); }
.tcards--5 .tcard { grid-column: span 2; }
.tcards--5 .tcard:nth-child(4) { grid-column: 2 / span 2; }
.tcards--5 .tcard:nth-child(5) { grid-column: 4 / span 2; }

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.9rem 1.8rem 2rem; display: flex; flex-direction: column;
  transition: 0.3s var(--ease); position: relative; overflow: hidden;
}
.service::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.service:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--line); }
.service:hover::before { transform: scaleX(1); }
.service__num { font-family: var(--mono); font-size: 0.78rem; color: var(--accent-deep); letter-spacing: 0.1em; margin-bottom: 1.4rem; }
.service h3 { font-size: 1.4rem; margin-bottom: 0.7rem; }
.service__desc { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.55; }
.service__list { list-style: none; margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 0.6rem; }
.service__list li { font-size: 0.9rem; color: var(--ink-soft); display: flex; gap: 0.6em; align-items: flex-start; }
.service__list li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); margin-top: 0.5em; flex: none; transform: rotate(45deg); }

/* ============================================================
   COMPARISON
   ============================================================ */
.compare { background: var(--paper-2); }
.compare__table { margin-top: clamp(2.5rem, 5vw, 3.5rem); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-md); }
.compare__head { display: grid; grid-template-columns: 1fr 1fr; }
.compare__head > div { padding: 1.3rem 1.8rem; }
.compare__head .col-trad { color: var(--ink-muted); border-right: 1px solid var(--line); }
.compare__head .col-us { background: var(--accent); color: var(--on-accent); }
.compare__head h3 { color: inherit; font-size: 1.15rem; font-family: var(--sans); font-weight: 600; }
.compare__head .col-trad h3 { color: var(--ink-soft); }
.compare__head small { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; display: block; margin-bottom: 0.3rem; }
.compare__row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.compare__row > div { padding: 1.15rem 1.8rem; display: flex; align-items: center; gap: 0.8em; font-size: 1rem; }
.compare__row .col-trad { color: var(--ink-muted); border-right: 1px solid var(--line); }
.compare__row .col-us { color: var(--ink); font-weight: 500; background: var(--accent-tint); }
.compare__row:hover .col-us { background: var(--accent-soft); }
.mark { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.mark--x { color: var(--ink-muted); }
.mark--x::before, .mark--x::after { content: ""; position: absolute; width: 11px; height: 1.5px; background: currentColor; }
.mark--x { position: relative; }
.mark--x::before { transform: rotate(45deg); }
.mark--x::after { transform: rotate(-45deg); }
.mark--check { background: var(--accent); }
.mark--check::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg) translateY(-1px); }

/* ============================================================
   ENGAGEMENT — stepper
   ============================================================ */
.engage__layout { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.engage__tabs { display: flex; flex-direction: column; gap: 0.6rem; }
.etab {
  text-align: left; padding: 1.3rem 1.4rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--paper); transition: 0.3s var(--ease);
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center;
}
.etab:hover { border-color: var(--ink-muted); }
.etab.is-active { border-color: var(--accent); background: var(--accent-tint); box-shadow: var(--shadow-sm); }
.etab__num { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: 0.85rem; color: var(--ink-muted); transition: 0.3s var(--ease); }
.etab.is-active .etab__num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.etab__label small { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); display: block; margin-bottom: 0.2rem; }
.etab__label b { font-family: var(--serif); font-size: 1.18rem; font-weight: 500; }

.engage__panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.8rem, 3vw, 2.6rem); box-shadow: var(--shadow-md); min-height: 340px; }
.epanel { display: none; animation: fadeUp 0.5s var(--ease); }
.epanel.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.epanel__phase { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 0.8rem; }
.epanel h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: 0.9rem; }
.epanel p { color: var(--ink-soft); font-size: 1.02rem; max-width: 50ch; }
.epanel__deliver { margin-top: 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.epanel__deliver li { list-style: none; font-size: 0.92rem; display: flex; gap: 0.6em; align-items: flex-start; color: var(--ink-soft); }
.epanel__deliver li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--accent-soft); position: relative; margin-top: 0.15em; }
.epanel__deliver li { position: relative; }
.epanel__deliver li::after { content: ""; position: absolute; left: 5px; top: calc(0.15em + 4px); width: 4px; height: 7px; border: solid var(--accent-deep); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

.engage__note {
  margin-top: 1.6rem; display: flex; gap: 0.9em; align-items: center;
  padding: 1.1rem 1.3rem; border-radius: var(--radius); background: var(--ink-deep); color: var(--on-deep);
}
.engage__note .ico { width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
.engage__note .ico::after { content: ""; width: 10px; height: 10px; border: 1.6px solid #fff; border-radius: 2px; }
.engage__note p { color: var(--on-deep-soft); font-size: 0.95rem; }
.engage__note b { color: var(--on-deep); font-weight: 600; }

/* ============================================================
   WHO IT'S FOR
   ============================================================ */
.who__grid { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.who-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem;
  background: var(--paper); display: flex; gap: 1rem; align-items: flex-start; transition: 0.25s var(--ease);
}
.who-card:hover { border-color: var(--accent); background: var(--accent-tint); }
.who-card__check { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--accent-soft); position: relative; }
.who-card__check::after { content: ""; position: absolute; left: 9px; top: 6px; width: 5px; height: 9px; border: solid var(--accent-deep); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.who-card p { font-size: 1rem; font-weight: 500; line-height: 1.35; }

/* ============================================================
   FOUNDER
   ============================================================ */
.founder { background: var(--ink-deep); color: var(--on-deep); overflow: hidden; }
.founder__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.founder .eyebrow { color: var(--accent-2); }
.founder__portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); position: relative; overflow: hidden;
  border: 1px solid var(--line-deep);
  background: repeating-linear-gradient(135deg, var(--ink-deep-2) 0 13px, oklch(0.245 0.02 165) 13px 26px);
  display: grid; place-items: center;
}
.founder__portrait-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.founder__name { font-size: clamp(2rem, 3vw, 2.7rem); color: var(--on-deep); margin: 1rem 0 0.4rem; }
.founder__role { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 1.5rem; }
.founder__bio { color: var(--on-deep-soft); font-size: 1.05rem; line-height: 1.6; max-width: 56ch; }
.founder__bio p + p { margin-top: 1rem; }
.founder__tags { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.7rem; }
.ftag { font-size: 0.85rem; font-weight: 500; padding: 0.45em 0.95em; border-radius: 100px; border: 1px solid var(--line-deep); color: var(--on-deep); transition: 0.25s var(--ease); }
.ftag:hover { border-color: var(--accent-2); color: var(--accent-2); }
.founder__certs { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; padding-top: 1.7rem; border-top: 1px solid var(--line-deep); }
.cert { display: flex; align-items: center; gap: 0.6em; font-size: 0.86rem; color: var(--on-deep-soft); }
.cert__badge { width: 30px; height: 30px; flex: none; border-radius: 7px; background: var(--ink-deep-2); border: 1px solid var(--line-deep); display: grid; place-items: center; color: var(--accent-2); font-family: var(--mono); font-size: 0.6rem; font-weight: 600; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final { background: var(--ink-deep); color: var(--ink); text-align: center; position: relative; overflow: hidden; }
.final::before, .final::after { content: ""; position: absolute; border-radius: 50%; }
.final::before { width: 720px; height: 720px; top: -360px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, oklch(0.745 0.135 168 / 0.22), transparent 62%); border: none; }
.final::after { width: 520px; height: 520px; bottom: -300px; right: -100px; border: 1px solid oklch(1 0 0 / 0.05); }
.final__inner { position: relative; z-index: 2; max-width: 760px; margin-inline: auto; }
.final .eyebrow { color: var(--accent-2); justify-content: center; }
.final h2 { color: var(--ink); font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin: 1rem 0 1.2rem; }
.final p { color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 52ch; margin: 0 auto 2.2rem; line-height: 1.55; }
.final .btn--light { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 1px oklch(0.745 0.135 168 / 0.4), 0 14px 40px oklch(0.745 0.135 168 / 0.28); }
.final .btn--light:hover { background: var(--accent-2); }
.final__positioning {
  margin-top: 1.6rem;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
}
.eu-mark {
  display: inline-block;
  flex: none;
}
.eu-mark__ring {
  fill: none;
  stroke: oklch(0.82 0.08 95 / 0.28);
  stroke-width: 1.5;
}
.eu-mark__stars {
  fill: oklch(0.88 0.11 96);
}
.eu-mark--sm {
  width: 1.1rem;
  height: 1.1rem;
}
.eu-mark--lg {
  width: 3rem;
  height: 3rem;
}
.final__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55em 1em;
  border-radius: 999px;
  border: 1px solid oklch(1 0 0 / 0.12);
  background: oklch(1 0 0 / 0.05);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.final__positioning-copy {
  margin: 0;
  max-width: 36ch;
  font-size: 0.98rem;
  color: var(--ink);
}
.final__micro { margin-top: 1.5rem; font-size: 0.86rem; color: var(--ink-muted); display: inline-flex; gap: 0.5em; align-items: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink-deep); color: var(--on-deep-soft); padding-block: clamp(3rem, 6vh, 4.5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-deep); }
.footer .logo__name { color: var(--on-deep); }
.footer__tagline { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin-top: 1.1rem; }
.footer__blurb { margin-top: 1rem; max-width: 34ch; font-size: 0.95rem; }
.footer__origin { margin-top: 1rem; max-width: 38ch; font-size: 0.88rem; color: var(--on-deep-soft); }
.footer__seal { display: inline-grid; place-items: center; }
.footer__seal .eu-mark__ring { display: none; }
.footer__seal .eu-mark__stars {
  fill: oklch(0.84 0.09 95);
}
.footer__col h4 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-deep-soft); margin-bottom: 1rem; font-weight: 500; }
.footer__col a { display: block; padding: 0.35rem 0; color: var(--on-deep); font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--accent-2); }
.footer__bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding-top: 1.8rem;
  font-size: 0.85rem;
}
.footer__bottom > span:nth-child(2) { justify-self: center; text-align: center; }
.footer__meta { justify-self: end; text-align: right; }

/* ============================================================
   MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__scrim { position: absolute; inset: 0; background: oklch(0.2 0.02 165 / 0.45); backdrop-filter: blur(4px); }
.modal__box {
  position: relative; z-index: 2; width: 100%; max-width: 520px; background: var(--paper);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(1.8rem, 3vw, 2.6rem);
  transform: translateY(16px) scale(0.98); transition: transform 0.35s var(--ease);
  max-height: 90vh; overflow-y: auto;
}
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; top: 1.2rem; right: 1.2rem; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-muted); transition: 0.2s var(--ease); }
.modal__close:hover { background: var(--paper-3); color: var(--ink); }
.modal__close::before, .modal__close::after { content: ""; position: absolute; width: 15px; height: 1.5px; background: currentColor; }
.modal__close::before { transform: rotate(45deg); }
.modal__close::after { transform: rotate(-45deg); }
.modal .eyebrow { margin-bottom: 0.8rem; }
.modal h3 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.modal__intro { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 1.5rem; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: 0.83rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 0.96rem; padding: 0.8em 0.9em; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper-3); color: var(--ink); transition: 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.has-error input, .field.has-error textarea { border-color: oklch(0.55 0.16 25); }
.field__err { display: none; font-size: 0.78rem; color: oklch(0.52 0.17 25); margin-top: 0.35rem; }
.field.has-error .field__err { display: block; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.modal__submit { width: 100%; justify-content: center; margin-top: 0.5rem; }
.modal__submit[disabled] { opacity: 0.7; cursor: wait; transform: none; }
.modal__status { min-height: 1.2rem; margin-top: 0.9rem; font-size: 0.82rem; color: oklch(0.52 0.17 25); }
.modal__status.is-success { color: var(--accent-2); }
.modal__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.modal__fine { text-align: center; font-size: 0.8rem; color: var(--ink-muted); margin-top: 1rem; }

.modal__success { text-align: center; padding: 1rem 0; display: none; }
.modal.is-success .modal__form { display: none; }
.modal.is-success .modal__success { display: block; animation: fadeUp 0.5s var(--ease); }
.success__ring { width: 70px; height: 70px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; margin: 0 auto 1.3rem; }
.success__ring::after { content: ""; width: 16px; height: 28px; border: solid var(--accent-deep); border-width: 0 3px 3px 0; transform: rotate(45deg) translateY(-3px); }
.modal__success h3 { margin-bottom: 0.6rem; }
.modal__success p { color: var(--ink-soft); max-width: 38ch; margin: 0 auto; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }

.reveal-instant .reveal, .reveal-instant .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .pill--live .dot { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero__visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .problem__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .timeline__steps { grid-template-columns: repeat(3, 1fr); row-gap: 2.2rem; }
  .timeline__line { display: none; }
  .tcards, .tcards--5 { grid-template-columns: 1fr 1fr; }
  .tcards--5 .tcard, .tcards--5 .tcard:nth-child(4), .tcards--5 .tcard:nth-child(5) { grid-column: auto; }
  .services__grid { grid-template-columns: 1fr; }
  .engage__layout { grid-template-columns: 1fr; }
  .who__grid { grid-template-columns: 1fr 1fr; }
  .founder__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .founder__portrait { max-width: 320px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav__links, .nav__right .btn { display: none; }
  .nav__toggle { display: flex; }
  .nav__right { gap: 0; }
  .timeline__steps { grid-template-columns: 1fr; row-gap: 1.6rem; }
  .tstep { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
  .tstep__dot { margin-bottom: 0; }
  .tcards, .tcards--5 { grid-template-columns: 1fr; }
  .who__grid { grid-template-columns: 1fr; }
  .compare__head h3 { font-size: 1rem; }
  .compare__row > div, .compare__head > div { padding-inline: 1.1rem; font-size: 0.92rem; }
  .epanel__deliver { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.85rem;
  }
  .footer__bottom > span:nth-child(2), .footer__meta { justify-self: center; text-align: center; }
  .hero__visual { max-width: 380px; }
  .demo-card--mini { right: 0; width: 200px; }
}
