/* ==========================================================================
   AX 10 Consulting — ax-10.com
   Brand: Indigo #3D2FE8 · Familjen Grotesk 700 · IBM Plex Mono (labels)
   ========================================================================== */

:root {
  --indigo: #3D2FE8;
  --indigo-hover: #2E22C0;
  --indigo-mid: #6B5FF0;
  --indigo-light: #9A91F5;
  --indigo-body: #DAD6FB;
  --ink: #121316;
  --paper: #F8F8F5;
  --white: #FFFFFF;
  --body: #46463F;
  --muted: #84847C;
  --muted-light: #9A9A92;
  --hairline: #E6E6E0;
  --dot-sub: #C9CCD2;
  --radius-pill: 999px;
  --radius-card: 12px;
  --maxw: 1160px;
  --gutter: 32px;
  --font-sans: 'Familjen Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--indigo); color: #fff; }

a { text-decoration: none; color: inherit; }

img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--indigo);
}

/* --------------------------------------------------------- logo lockup --- */
.logo {
  display: flex;
  align-items: baseline;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.logo .logo-a { font-size: 1.18em; line-height: 1; }
.logo .logo-mark {
  width: 0.72em;
  height: 0.72em;
  flex: none;
  margin: 0 0.05em;
  align-self: center;
  position: relative;
  top: 0.12em;
}
.logo .dot-sub { fill: var(--dot-sub); }
.logo .dot-main { fill: var(--indigo); }

/* ---------------------------------------------------------------- nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 248, 245, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ax-link { transition: color 0.15s ease; }
.ax-link:hover { color: var(--indigo); }

/* ------------------------------------------------------------ buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, opacity 0.15s ease;
}
.btn-primary {
  background: var(--indigo);
  color: #fff;
  padding: 15px 26px;
}
.btn-primary:hover { background: var(--indigo-hover); }
.btn-nav { padding: 11px 20px; }
.btn-ghost {
  padding: 15px 8px;
  color: var(--body);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}
.btn-ghost:hover { color: var(--indigo); }
.btn-invert {
  background: #fff;
  color: var(--indigo);
  padding: 16px 30px;
}
.btn-invert:hover { opacity: 0.86; }

/* --------------------------------------------------------------- hero --- */
.hero { padding-top: 96px; padding-bottom: 84px; }
.hero .eyebrow { display: block; margin-bottom: 28px; }
.hero h1 {
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 82px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 30px;
  max-width: 16ch;
  text-wrap: balance;
}
.hero .lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  color: var(--body);
  max-width: 60ch;
  margin: 0 0 38px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------- proof -- */
.proof {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: #fff;
}
.proof-inner {
  padding-top: 30px;
  padding-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 20px 64px;
  flex-wrap: wrap;
}

/* Two separate claims. Each label ends in "at" so the logo completes the
   phrase -- no body text ever trails a logo. */
.proof-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}
.proof-item + .proof-item { position: relative; }
.proof-item + .proof-item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 30px;
  background: var(--hairline);
}

.proof-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  white-space: nowrap;
}

/* Client logos are INLINE <svg> in index.html -- no external files, so nothing
   can be overwritten or cached stale. Sizes are cap-height matched, not
   box-height matched: each logo's height="" is set so the LETTERFORMS render
   the same size, compensating for the padding and extra glyphs (LaunchDarkly's
   arrow, Heavybit's hexagon) baked into each original file.
   To retune, change the height="" on the <svg> in index.html. */
.proof-logo {
  display: inline-flex;
  align-items: center;
}
.proof-logo .brand-logo {
  display: block;
  width: auto;
  fill: var(--ink);
}

/* ------------------------------------------------------------ approach -- */
.approach { padding-top: 96px; padding-bottom: 40px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 18ch;
}
.section-head p {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--muted);
  max-width: 34ch;
  margin: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 34px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.card:hover { border-color: var(--indigo); transform: translateY(-2px); }
.card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--indigo);
  margin-bottom: 20px;
}
.card h3 {
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
}

/* --------------------------------------------------------------- about -- */
.about { padding-top: 88px; padding-bottom: 88px; }
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.portrait {
  width: 220px;
  height: 264px;
  border-radius: 12px;
  overflow: hidden;
  background: #ECECE4;
  flex: none;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about h2 {
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}
.about .eyebrow { display: block; font-size: 12px; margin-bottom: 22px; }
.about p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  max-width: 62ch;
  margin: 0 0 18px;
}
.about p:last-of-type { margin-bottom: 30px; }
.stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat-num {
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ----------------------------------------------------------------- cta -- */
.cta {
  background: var(--indigo);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-mark {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  pointer-events: none;
  width: 340px;
  height: 340px;
}
.cta-mark .dot-sub { fill: var(--indigo-mid); }
.cta-mark .dot-main { fill: var(--indigo-light); }
.cta-inner {
  padding-top: 92px;
  padding-bottom: 92px;
  position: relative;
}
.cta h2 {
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 18ch;
}
.cta p {
  font-size: 19px;
  line-height: 1.55;
  color: var(--indigo-body);
  max-width: 50ch;
  margin: 0 0 34px;
}

/* -------------------------------------------------------------- footer -- */
.footer { background: var(--ink); color: #fff; }
.footer-inner {
  padding-top: 48px;
  padding-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer .logo { color: #fff; }
.footer .logo .dot-sub { fill: #3A4250; }
.footer .logo .dot-main { fill: var(--indigo-mid); }
.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6E7176;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #6E7176;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #6E7176;
}
.footer-links a { color: #6E7176; white-space: nowrap; }
.footer-links a:hover { color: #fff; }

/* ---------------------------------------------------------- responsive -- */
@media (max-width: 860px) {
  :root { --gutter: 22px; }
  .nav-links { gap: 20px; }
  .nav-links .ax-link { display: none; }
  .cards { grid-template-columns: 1fr; }
  .proof-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .proof-item + .proof-item::before { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 64px; padding-bottom: 56px; }
  .approach { padding-top: 64px; }
  .about { padding-top: 64px; padding-bottom: 64px; }
  .cta-inner { padding-top: 64px; padding-bottom: 64px; }
  .cta-mark { width: 220px; height: 220px; right: -70px; opacity: 0.35; }
  .footer-inner { justify-content: flex-start; }
}

/* ==========================================================================
   Contact — CTA actions + dialog
   ========================================================================== */

.cta-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-alt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.62);
}
.cta-alt a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.cta-alt a:hover { border-bottom-color: #fff; }

button.btn { border: 0; cursor: pointer; font-family: var(--font-mono); }

/* ------------------------------------------------------------- dialog --- */
.contact-dialog {
  border: 0;
  padding: 0;
  width: min(480px, calc(100vw - 32px));
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  color: var(--ink);
  position: relative;
  overflow: visible;
}
.contact-dialog::backdrop {
  background: rgba(18, 19, 22, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.contact-dialog[open] { animation: cd-in 0.24s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes cd-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.contact-form { padding: 38px 36px 32px; }

.cd-title {
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.cd-sub {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--body);
  margin: 0 0 26px;
}

.cd-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted-light);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.15s ease, background 0.15s ease;
}
.cd-close:hover { color: var(--ink); background: #E9E9E1; }

/* ------------------------------------------------------------- fields --- */
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #DCDCD4;
  border-radius: 7px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(61, 47, 232, 0.12);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #D4674A; }

.form-submit { width: 100%; margin-top: 6px; }
.form-submit[disabled] { opacity: 0.6; cursor: default; }

.form-error {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: #C0492A;
  margin: 14px 0 0;
}
.form-error a { border-bottom: 1px solid currentColor; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------ success state --- */
.form-done { text-align: center; padding: 46px 32px 38px; }
.form-done-mark { width: 52px; height: 52px; margin: 0 auto 20px; }
.form-done-mark .dot-sub { fill: var(--dot-sub); }
.form-done-mark .dot-main { fill: var(--indigo); }
.form-done h3 {
  font-weight: 700;
  font-size: 27px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.form-done p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  margin: 0 auto 22px;
  max-width: 30ch;
}
.cd-done-close { background: transparent; border: 0; cursor: pointer; }

@media (max-width: 560px) {
  .contact-form { padding: 32px 22px 26px; }
  .cd-title { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-dialog[open] { animation: none; }
}

/* ==========================================================================
   Easter egg — how to say Echstenkamper
   Understated: a dotted underline on the surname in the bio. Clicking it
   plays the GIF. The image is lazy-loaded by script.js on first open.
   To remove: delete this block, the .name-trigger / .name-pop markup in
   index.html, and script.js.
   ========================================================================== */

.name-wrap { position: relative; display: inline-block; }

.name-trigger {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  border-bottom: 2px dotted #C6C6BC;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.name-trigger:hover { border-bottom-color: var(--indigo); }
.name-trigger:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }

.name-pop {
  position: absolute;
  z-index: 40;
  top: calc(100% + 18px);
  left: 0;
  width: 340px;
  max-width: min(340px, calc(100vw - 44px));
  background: var(--ink);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}
.name-pop.is-open { opacity: 1; transform: none; }

/* little pointer up to the name */
.name-pop::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 34px;
  width: 12px;
  height: 12px;
  background: var(--ink);
  transform: rotate(45deg);
  border-radius: 2px;
}

.name-pop-media {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: #26282D;
  aspect-ratio: 16 / 9;
}
.name-pop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 860px) {
  .name-pop { left: auto; right: 0; }
  .name-pop::before { left: auto; right: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .name-pop { transition: none; }
}
