/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  color-scheme: dark;

  --bg: #0a0a0c;
  --bg-2: #111115;
  --bg-3: #17171c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #ededf0;
  --muted: #9a9aa3;
  --dim: #5f5f68;

  /* Language colors (GitHub linguist, tuned for a dark background) */
  --ruby: #e5484d;
  --ts: #4a8fe0;
  --js: #f1e05a;
  --py: #ffd43b;
  --shell: #89e051;
  --docker: #2496ed;
  --react: #61dafb;
  --php: #8892d0;
  --csharp: #b36ab0;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ts);
  outline-offset: 3px;
  border-radius: 6px;
}

strong {
  color: var(--text);
  font-weight: 600;
}

.mono {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
}

.skip:focus {
  left: 8px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.tag .dot {
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
}

/* ==========================================================================
   Progress + Nav
   ========================================================================== */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--js), var(--react), var(--ts), var(--ruby));
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px var(--gutter);
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}

.nav.is-hidden {
  transform: translateY(-100%);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav__logo span:last-child {
  margin-left: 6px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 2rem);
  font-size: 0.9rem;
  color: var(--muted);
}

.nav__links a {
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta {
  color: var(--text);
  border: 1px solid var(--line-2);
  padding: 6px 14px;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .nav__links li:not(:last-child) {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__glow span {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0%, transparent 62%);
  opacity: 0.13;
  filter: blur(40px);
}

.hero__glow span:nth-child(1) { top: -18vmax; right: -10vmax; }
.hero__glow span:nth-child(2) { bottom: -24vmax; left: -14vmax; }
.hero__glow span:nth-child(3) { top: 30%; right: 20%; width: 22vmax; height: 22vmax; opacity: 0.06; }

.hero::after {
  /* subtle grid */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  opacity: 0.5;
}

.hero__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px var(--gutter) 96px;
}

.status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--shell);
  box-shadow: 0 0 0 0 rgba(137, 224, 81, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(137, 224, 81, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(137, 224, 81, 0); }
  100% { box-shadow: 0 0 0 0 rgba(137, 224, 81, 0); }
}

.hero__title {
  font-size: clamp(4.2rem, 17vw, 13.5rem);
  line-height: 0.88;
  font-weight: 600;
  letter-spacing: -0.055em;
  margin-left: -0.05em;
}

.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.hero__line > span {
  display: inline-block;
}

.hero__title .accent {
  color: var(--ruby);
}

.hero__lead {
  max-width: 34rem;
  margin-top: 2rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  line-height: 1.55;
}

.langbar {
  margin-top: 3rem;
  max-width: 34rem;
}

.langbar__track {
  display: flex;
  gap: 3px;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
}

.langbar__track span {
  flex: var(--w) 1 0;
  background: var(--c);
  transform-origin: 0 50%;
}

.langbar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 0.9rem;
  color: var(--muted);
}

.langbar__legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.langbar__legend li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.66rem;
}

.hero__scroll i {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--muted), transparent);
  animation: drip 2.2s var(--ease) infinite;
  transform-origin: top;
}

@keyframes drip {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
section {
  position: relative;
}

.manifesto,
.oss,
.journey,
.work,
.quotes,
.contact {
  padding: clamp(96px, 14vw, 180px) 0;
}

.section-head {
  margin-bottom: clamp(48px, 7vw, 88px);
  max-width: 44rem;
}

.section-head h2 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.section-head__sub {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 36rem;
}

.subhead {
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: clamp(56px, 8vw, 96px) 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   Manifesto
   ========================================================================== */
.manifesto__text {
  font-size: clamp(1.7rem, 4.2vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 62rem;
}

.manifesto__text em {
  font-style: normal;
  color: var(--c);
}

.manifesto__text .w {
  display: inline;
}

.expertise {
  margin-top: clamp(72px, 10vw, 128px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.expertise__item {
  padding: 2rem 1.5rem 0 0;
  position: relative;
}

.expertise__item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--c);
}

.expertise__item .mono {
  color: var(--c);
}

.expertise__item h3 {
  margin: 0.6rem 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.expertise__item p {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .expertise {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
    border-top: 0;
  }

  .expertise__item {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  .expertise {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Open source — Feature (FerrumMCP)
   ========================================================================== */
.feature {
  position: relative;
}

.feature__stage {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: 100svh;
  padding-top: 80px;
  padding-bottom: 40px;
}

.feature__title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 600;
  margin: 1rem 0 1.5rem;
}

.feature__desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 32rem;
}

.stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 2.25rem 0;
}

.stats dt {
  color: var(--dim);
  order: 2;
}

.stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.2rem;
}

.stats dd {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: 500 0.92rem var(--font);
  border: 1px solid var(--text);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}

.btn--ghost:hover {
  border-color: var(--muted);
}

/* Terminal */
.terminal {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 120px -40px color-mix(in srgb, var(--c) 45%, transparent);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}

.terminal__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2d2d33;
}

.terminal__bar span {
  margin-left: auto;
  color: var(--dim);
}

.terminal__body {
  padding: 20px 20px 24px;
  font-size: 0.8rem;
  line-height: 1.75;
  min-height: 360px;
}

.t-line {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
}

.t-line + .t-line {
  margin-top: 2px;
}

.t-who {
  display: inline-block;
  min-width: 3.6em;
  color: var(--dim);
}

.t-user {
  color: var(--text);
  margin-bottom: 10px;
}

.t-call {
  color: var(--ruby);
}

.t-arg {
  color: var(--dim);
}

.t-ok {
  color: var(--shell);
  padding-left: 1.2em;
}

.t-agent {
  margin-top: 12px !important;
  color: var(--text);
}

.t-agent .t-who {
  color: var(--ts);
}

.caret {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  margin-left: 4px;
  vertical-align: -0.15em;
  background: var(--text);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (max-width: 900px) {
  .feature__stage {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 0;
  }

  .terminal__body {
    min-height: 0;
  }
}

/* ==========================================================================
   Cards
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cards--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 260px;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--c) 14%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  left: 1.75rem;
  right: 1.75rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c), transparent);
  opacity: 0.5;
}

.card:hover {
  border-color: color-mix(in srgb, var(--c) 40%, transparent);
  transform: translateY(-3px);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-top: 0.5rem;
}

.card p:not(.tag):not(.card__meta) {
  color: var(--muted);
  font-size: 0.97rem;
}

.card__meta {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--dim);
}

.card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card__link::after {
  content: "↗";
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--dim);
  transition: color 0.2s, transform 0.3s var(--ease);
}

.card:hover .card__link::after {
  color: var(--c);
  transform: translate(2px, -2px);
}

.card--origin {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--c) 6%, transparent), transparent 50%),
    var(--bg-2);
}

.also {
  margin-top: 2.5rem;
  color: var(--dim);
  line-height: 2;
}

.also a {
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  transition: color 0.2s, border-color 0.2s;
}

.also a:hover {
  color: var(--text);
  border-color: var(--text);
}

@media (max-width: 900px) {
  .cards,
  .cards--2 {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }
}

/* ==========================================================================
   Timeline
   ========================================================================== */
.tl {
  position: relative;
  max-width: 56rem;
}

.tl__rail {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 9.5rem;
  width: 1px;
  background: var(--line-2);
}

.tl__fill {
  position: absolute;
  inset: 0;
  transform-origin: top;
  background: linear-gradient(to bottom, var(--php), var(--react), var(--js), var(--ts), var(--ruby), var(--shell), var(--ruby), var(--ts));
}

.tl__item {
  position: relative;
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  padding-bottom: clamp(48px, 7vw, 80px);
}

.tl__item:last-child {
  padding-bottom: 0;
}

.tl__item::before {
  /* node */
  content: "";
  position: absolute;
  left: calc(9.5rem - 6px);
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.tl__item.is-active::before {
  background: var(--c);
  border-color: var(--c);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent), 0 0 24px var(--c);
}

.tl__year {
  color: var(--dim);
  padding-top: 2px;
  padding-right: 2rem;
  text-align: right;
  font-size: 0.85rem;
  transition: color 0.4s;
}

.tl__item.is-active .tl__year {
  color: var(--c);
}

.tl__body {
  padding-left: 2.5rem;
  max-width: 36rem;
  transition: opacity 0.5s;
}

/* Dimmed until reached — only when scroll animations are running */
.has-motion .tl__item:not(.is-active) .tl__body {
  opacity: 0.35;
}

.tl__body h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.2;
}

.tl__body p {
  color: var(--muted);
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .tl__rail {
    left: 6px;
  }

  .tl__item {
    grid-template-columns: 1fr;
    padding-left: 2rem;
  }

  .tl__item::before {
    left: 0;
  }

  .tl__year {
    text-align: left;
    padding: 0 0 0.35rem;
  }

  .tl__body {
    padding-left: 0;
  }
}

/* ==========================================================================
   Work list
   ========================================================================== */
.work__list {
  border-top: 1px solid var(--line);
}

.work__list li {
  position: relative;
  display: grid;
  grid-template-columns: 14rem 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease);
}

.work__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--c);
  transform: scale(0);
  transition: transform 0.4s var(--ease);
}

.work__list li:hover {
  padding-left: 1.5rem;
}

.work__list li:hover::before {
  transform: scale(1);
}

.work__name {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  letter-spacing: -0.03em;
  font-weight: 600;
}

.work__desc {
  color: var(--muted);
}

.work__type {
  color: var(--dim);
}

@media (max-width: 760px) {
  .work__list li {
    grid-template-columns: 1fr auto;
    gap: 0.25rem 1rem;
  }

  .work__desc {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   Quotes
   ========================================================================== */
.quotes .section-head {
  margin-bottom: 2rem;
}

.quotes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.quotes figure {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.quotes blockquote {
  font-size: 1.1rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.quotes figcaption {
  color: var(--dim);
}

@media (max-width: 760px) {
  .quotes__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  border-top: 1px solid var(--line);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

.contact__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.contact__mail {
  display: inline-block;
  margin-top: 2rem;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  background: linear-gradient(90deg, var(--ruby), var(--ts));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.socials a:hover {
  color: var(--text);
}

.form {
  display: grid;
  gap: 1.1rem;
}

.form label {
  display: grid;
  gap: 0.45rem;
}

.form label span {
  color: var(--dim);
}

.form input,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--ts);
  background: var(--bg-3);
}

.form .btn {
  justify-self: start;
  margin-top: 0.5rem;
}

.hp {
  position: absolute;
  left: -9999px;
}

@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--dim);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer__langs {
  display: flex;
  gap: 5px;
}

.footer__langs i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Hero heading wrapper (role + name share one h1)
   ========================================================================== */
.hero h1 {
  font-size: inherit;
  font-weight: inherit;
}

.hero h1 .eyebrow {
  display: flex;
  width: fit-content;
  font-weight: 400;
}

.hero__title {
  display: block;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  padding: clamp(96px, 14vw, 180px) 0;
  border-top: 1px solid var(--line);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service {
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.service::after {
  content: "";
  position: absolute;
  left: 1.75rem;
  right: 1.75rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c), transparent);
  opacity: 0.6;
}

.service .tag .dot {
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
}

.service h3 {
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.service > p:not(.tag) {
  color: var(--muted);
  font-size: 0.97rem;
}

.service ul {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.service li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.45;
}

.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c);
}

.services__audience {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.services__audience span {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  padding: clamp(96px, 14vw, 180px) 0;
}

.faq__list {
  max-width: 52rem;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--dim);
  transition: transform 0.3s var(--ease), color 0.2s;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
  color: var(--text);
}

.faq__item summary h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.faq__item p {
  color: var(--muted);
  padding: 0 3rem 1.5rem 0;
  max-width: 44rem;
}

/* ==========================================================================
   Contact identity
   ========================================================================== */
.contact__who {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.contact__who img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-2);
}

.contact__who p {
  font-weight: 500;
  line-height: 1.4;
}

.contact__who span {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.92rem;
}
