/* ==========================================================================
   janberanek.ai: design tokens
   ========================================================================== */
:root {
  --bg: #0B1120;
  --bg-raised: #111A2E;
  --surface: rgba(148, 163, 184, 0.05);
  --surface-hover: rgba(148, 163, 184, 0.08);
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);

  --text: #E2E8F0;
  --text-muted: #94A3B8;
  --text-faint: #7C8AA0;

  --accent: #F2C811;          /* Power BI yellow */
  --accent-ink: #1A1400;      /* text on accent */
  --accent-soft: rgba(242, 200, 17, 0.12);
  --accent-line: rgba(242, 200, 17, 0.45);
  --ok: #34D399;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --header-h: 68px;
  --gutter: 16px;
  --container: 1180px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 600ms;

  color-scheme: dark;
}

@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.mono { font-family: var(--font-mono); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast);
}
.skip-link:focus { top: 12px; }

svg[viewBox="0 0 24 24"] {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   Background lamp + star-schema network
   ========================================================================== */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  --mx: 70vw;
  --my: 30vh;
}

.bg__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(460px circle at var(--mx) var(--my), rgba(242, 200, 17, 0.10), transparent 65%),
    radial-gradient(900px circle at var(--mx) var(--my), rgba(59, 91, 168, 0.24), transparent 70%);
}

/* The lamp also lights the content above the background (cards, chips…) */
.spotlight {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(380px circle at var(--mx, 70vw) var(--my, 30vh), rgba(96, 120, 190, 0.13), rgba(242, 200, 17, 0.025) 45%, transparent 70%);
  transition: opacity var(--dur-slow);
}

.bg__network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  -webkit-mask-image: radial-gradient(300px circle at var(--mx) var(--my), #000 0%, rgba(0,0,0,0.55) 45%, transparent 100%);
          mask-image: radial-gradient(300px circle at var(--mx) var(--my), #000 0%, rgba(0,0,0,0.55) 45%, transparent 100%);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background var(--dur), border-color var(--dur), backdrop-filter var(--dur);
}
.header.is-scrolled {
  background: rgba(11, 17, 32, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo__tld { color: var(--accent); }
.logo__caret {
  display: inline-block;
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.nav { display: flex; gap: 4px; }
.nav__link {
  position: relative;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 5px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { transform: scaleX(1); }

.header__tools { display: flex; align-items: center; gap: 10px; }

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.lang__btn {
  min-width: 44px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.lang__btn:hover { color: var(--text); }
.lang__btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 899px) {
  .menu-btn { display: grid; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: rgba(11, 17, 32, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__link { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--accent); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur);
}
.btn svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { box-shadow: 0 8px 30px -8px rgba(242, 200, 17, 0.55); }

.btn--ghost { border-color: var(--line-strong); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent-line); color: var(--accent); }

.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 56px;
  display: grid;
  align-items: center;
  gap: 48px;
}

.hero__query {
  font-size: 0.9rem;
  color: var(--text-faint);
  margin-bottom: 22px;
}
.hero__query .prompt { color: var(--accent); margin-right: 4px; }

.hero__title { font-family: var(--font-display); color: var(--text); letter-spacing: -0.03em; }
.hero__name {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--accent);
  margin-bottom: 10px;
}
.hero__claim {
  display: block;
  font-size: clamp(2.5rem, 6.4vw, 5.1rem);
  font-weight: 700;
  line-height: 1.02;
  text-wrap: balance;
}
.hero__claim em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(100deg, var(--accent) 10%, #FFE680 60%, var(--accent) 90%);
  -webkit-background-clip: text;
          background-clip: text;
}

.hero__role {
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--text);
}
.hero__lead {
  margin-top: 14px;
  max-width: 52ch;
  font-size: 1.08rem;
  color: var(--text-muted);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__photo {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
}
.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  aspect-ratio: 1;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
/* Corner brackets, like a selected visual in Power BI */
.hero__photo::before, .hero__photo::after {
  content: "";
  position: absolute;
  width: 34px; height: 34px;
  border: 2px solid var(--accent);
  z-index: 2;
  transition: transform var(--dur) var(--ease-out);
}
.hero__photo::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.hero__photo::after { bottom: -10px; right: -10px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.hero__photo:hover::before { transform: translate(-4px, -4px); }
.hero__photo:hover::after { transform: translate(4px, 4px); }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.25fr 0.9fr; gap: 64px; }
  .hero__photo { justify-self: end; }
}
@media (max-width: 899px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 32px); }
  .hero__photo { width: min(62%, 260px); order: -1; justify-self: start; }
}

/* ==========================================================================
   KPI cards (Power BI "card" visual)
   ========================================================================== */
.kpis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-bottom: 40px;
}
@media (min-width: 480px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .kpis { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

.kpi {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 18px;
  background: linear-gradient(180deg, #121B30, #0F172A);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur), transform var(--dur) var(--ease-out);
}
.kpi:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.kpi::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0.85;
}
.kpi__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-right: 72px;
}
.kpi__value {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.kpi__prefix, .kpi__suffix { color: var(--accent); }
.kpi__value--text { color: var(--accent); }
.kpi__note { margin-top: 4px; font-size: 0.86rem; color: var(--text-faint); }
.kpi__spark {
  position: absolute;
  right: 14px; top: 18px;
  width: 64px; height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
}
.kpi__spark--bars { fill: var(--accent); stroke: none; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: clamp(72px, 10vw, 128px); }

.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow span {
  color: var(--text-faint);
  padding-right: 10px;
  border-right: 1px solid var(--line-strong);
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
}
.section__intro { margin-top: 16px; font-size: 1.08rem; max-width: 60ch; }

/* About */
.about { display: grid; gap: 40px; }
.about__text p { font-size: 1.06rem; max-width: 62ch; }
.about__text p + p { margin-top: 18px; }
.stack__title { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 14px; }
.stack { display: grid; gap: 20px; }
.stack__label {
  margin-bottom: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.stack__label::before { content: "/* "; }
.stack__label::after { content: " */"; }
.stack__group--core .chips li { border-color: var(--accent-line); background: #24261F; }
.stack__group--core .stack__label { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  background: #121A2C;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.chips li:hover { border-color: var(--accent-line); color: var(--accent); }
@media (min-width: 900px) {
  .about { grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
  .about__stack { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* Engagement models */
.engage {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}
@media (min-width: 720px) { .engage { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.engage__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: #0F172A;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.engage__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px; height: 40px;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 50%;
}
.engage__icon svg { width: 20px; height: 20px; }
.engage__title { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; color: var(--text); }
.engage__text { margin-top: 2px; font-size: 0.94rem; }

/* Services */
.services { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.card {
  --cx: 50%;
  --cy: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transition: border-color var(--dur), transform var(--dur) var(--ease-out);
}
/* Each card carries its own small lamp */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(360px circle at var(--cx) var(--cy), rgba(242, 200, 17, 0.09), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur);
}
.card:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }

.card__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 20px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(242, 200, 17, 0.22);
}
.card__icon svg { width: 22px; height: 22px; }
.card__title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
}
.card__text { margin-top: 10px; font-size: 0.96rem; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags li {
  padding: 4px 10px;
  font-size: 0.74rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}
.card__price {
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.card .tags { margin-bottom: 0; }

.card--feature {
  background: linear-gradient(135deg, #2A2A1E, #0F172A 55%);
  border-color: var(--accent-line);
}
.card__cta { margin-top: 24px; align-self: flex-start; }
@media (min-width: 640px) {
  .card--feature { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .card--feature {
    grid-column: span 3;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 30px 32px;
  }
  .card--feature .card__icon { margin-bottom: 0; flex-shrink: 0; width: 60px; height: 60px; }
  .card--feature .card__icon svg { width: 28px; height: 28px; }
  .card--feature .card__body { flex: 1; }
  .card--feature .card__title { font-size: 1.5rem; }
  .card--feature .card__cta { margin-top: 0; align-self: center; flex-shrink: 0; }
}

/* Process: ETL pipeline */
.pipeline {
  position: relative;
  display: grid;
  gap: 18px;
  counter-reset: step;
}
.pipeline::before {
  content: "";
  position: absolute;
  left: 23px; top: 24px; bottom: 24px;
  width: 2px;
  background: linear-gradient(var(--accent-line), var(--line));
}
.pipeline::after {
  /* data packet travelling along the pipe */
  content: "";
  position: absolute;
  left: 20px;
  top: 24px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px 3px rgba(242, 200, 17, 0.6);
  animation: packet-v 5s var(--ease-out) infinite;
}
@keyframes packet-v {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(var(--pipe-len, 520px)); opacity: 0; }
}

.step { position: relative; padding-left: 72px; }
.step__key {
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--bg-raised);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
}
.step__phase { font-size: 0.76rem; color: var(--text-faint); letter-spacing: 0.04em; padding-top: 2px; }
.step__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--text); margin-top: 2px; }
.step__text { margin-top: 6px; font-size: 0.96rem; max-width: 46ch; }

@media (min-width: 1024px) {
  .pipeline { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .pipeline::before {
    left: 24px; right: 24px; top: 23px; bottom: auto;
    width: auto; height: 2px;
    background: linear-gradient(90deg, var(--accent-line), var(--line));
  }
  .pipeline::after { left: 24px; top: 20px; animation-name: packet-h; }
  .step { padding-left: 0; padding-top: 72px; }
}
@keyframes packet-h {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(var(--pipe-len, 900px)); opacity: 0; }
}

/* Career timeline */
.section__intro + .section__intro { margin-top: 12px; }
.timeline { display: grid; gap: 4px; max-width: 860px; }
.timeline + .timeline__group { margin-top: 32px; }
.timeline__group {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 860px;
  margin-bottom: 4px;
  padding-left: 24px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.timeline__group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.timeline__company { margin-top: 2px; font-size: 0.82rem; color: var(--text-muted); }
.timeline__item {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background var(--dur), border-color var(--dur);
}
.timeline__item:hover { background: var(--surface); border-color: var(--line); }
.timeline__date { font-size: 0.82rem; color: var(--accent); padding-top: 4px; }
.timeline__role { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--text); }
.timeline__text { margin-top: 6px; font-size: 0.98rem; max-width: 60ch; }
@media (min-width: 720px) {
  .timeline__item { grid-template-columns: 190px 1fr; gap: 24px; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  margin-left: 24px;
  min-height: 44px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--accent-line);
  transition: color var(--dur-fast), gap var(--dur) var(--ease-out);
}
.link-arrow svg { width: 18px; height: 18px; color: var(--accent); }
.link-arrow:hover { color: var(--accent); gap: 12px; }

/* SQL console */
.console {
  max-width: 900px;
  background: #0A0F1C;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.console__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  font-size: 0.78rem;
  color: var(--text-faint);
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line);
}
.console__dots { display: inline-flex; gap: 6px; }
.console__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.console__dots i:first-child { background: var(--accent); }

.console__examples {
  display: flex;
  gap: 8px;
  padding: 14px 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.console__examples::-webkit-scrollbar { display: none; }
.chip-btn {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.chip-btn:hover { color: var(--accent); border-color: var(--accent-line); }

.console__output {
  min-height: 180px;
  max-height: 380px;
  overflow: auto;
  padding: 16px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text);
  white-space: pre;
}
.console__output .q { color: var(--accent); }
.console__output .muted { color: var(--text-faint); }
.console__output .err { color: #F87171; }
.console__output .ok { color: var(--ok); }
.console__output a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.console__form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}
.console__prompt { font-size: 0.85rem; color: var(--accent); }
.console__input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 16px; /* prevents iOS zoom */
  color: var(--text);
  outline: none;
}
.console__input::placeholder { color: var(--text-faint); opacity: 0.7; }
.console__form:focus-within { box-shadow: inset 0 0 0 1px var(--accent-line); }
.console__run {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.console__hint { padding: 10px 16px 14px; font-size: 0.74rem; color: var(--text-faint); background: var(--bg-raised); }

/* Contact */
.contact { padding-block: clamp(80px, 12vw, 150px); }
.contact__inner {
  position: relative;
  padding: clamp(36px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px circle at 85% 0%, rgba(242, 200, 17, 0.10), transparent 60%),
    linear-gradient(180deg, #111A2E, #0E1628);
  overflow: hidden;
}
.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
}
.contact__title em { font-style: normal; color: var(--accent); }
.contact__text { margin-top: 18px; font-size: 1.1rem; max-width: 50ch; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.contact__actions .btn svg { width: 20px; height: 20px; }
.contact__actions .btn:hover svg { transform: none; }
@media (max-width: 520px) {
  .contact__actions .btn { width: 100%; }
  [data-email-label] { overflow: hidden; text-overflow: ellipsis; }
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--text-faint);
}
.footer__legal { margin-top: 4px; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .pipeline::after { display: none; }
}
