/* Harmoni-style — MC · software-consultation */
:root,
[data-theme="light"] {
  --bg: #f1ede4;
  --bg-elevated: #faf7f0;
  --text: #1a1814;
  --muted: #5e5a52;
  --dim: #8a8478;
  --line: rgba(26, 24, 20, 0.12);
  --card: #ffffff;
  --nav-links-bg: rgba(255, 255, 255, 0.55);
  --grain-opacity: 0.04;
  --accent: #d94a16;
  --accent-soft: rgba(217, 74, 22, 0.1);
  --btn-primary-bg: #1a1814;
  --btn-primary-fg: #f1ede4;
  --map-bg: rgba(255, 255, 255, 0.45);
  --wire-muted: rgba(26, 24, 20, 0.2);
  --wire-signal: #d94a16;
}

[data-theme="dark"] {
  --bg: #131118;
  --bg-elevated: #1c1a22;
  --text: #f1ede4;
  --muted: #a8a39a;
  --dim: #6f6b64;
  --line: rgba(241, 237, 228, 0.1);
  --card: #1e1c24;
  --nav-links-bg: rgba(255, 255, 255, 0.06);
  --grain-opacity: 0.08;
  --accent: #d94a16;
  --accent-soft: rgba(217, 74, 22, 0.15);
  --btn-primary-bg: #f1ede4;
  --btn-primary-fg: #131118;
  --map-bg: rgba(0, 0, 0, 0.25);
  --wire-muted: rgba(241, 237, 228, 0.15);
  --wire-signal: #e85d24;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Geist", "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  transition: background 0.35s, color 0.35s;
}
body.intro-done .home-intro { pointer-events: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 9999;
  padding: 0.5rem 1rem; background: var(--accent); color: #fff;
}
.skip-link:focus { left: 0; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Intro */
.home-intro {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.home-intro.is-done { opacity: 0; visibility: hidden; }
.home-intro__word {
  font-family: "Fraunces", "Instrument Serif", Georgia, serif;
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--text);
}
.home-intro__studio {
  font-size: 0.75rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--dim); margin-top: 0.5rem; text-align: center;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.5rem;
  max-width: 1280px; margin: 0 auto;
}
.nav__brand {
  display: flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: var(--text);
}
.nav__mark { width: 28px; height: 28px; color: var(--text); }
.nav__initials {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.nav__links {
  display: none;
  gap: 0.15rem; padding: 0.25rem;
  background: var(--nav-links-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}
.nav__links a {
  padding: 0.45rem 0.9rem; border-radius: 999px;
  font-size: 0.82rem; color: var(--muted); text-decoration: none;
}
.nav__links a:hover { color: var(--text); background: rgba(128,128,128,0.08); }
.nav__end { display: flex; align-items: center; gap: 0.5rem; }
.nav__lang {
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
  text-decoration: none; padding: 0.35rem 0.5rem;
}
.nav__theme {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  color: var(--text); cursor: pointer; display: grid; place-items: center;
}
.nav__theme-icon { width: 18px; height: 18px; }
[data-theme="dark"] .nav__theme-cut { fill: var(--bg); }
[data-theme="light"] .nav__theme-cut { fill: var(--bg); }
.nav__cta {
  display: none; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1rem; border-radius: 999px;
  background: var(--btn-primary-bg); color: var(--btn-primary-fg);
  font-size: 0.82rem; font-weight: 500; text-decoration: none;
}
.nav__cta svg { width: 14px; height: 14px; }
.nav__toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--nav-links-bg); cursor: pointer;
}
.nav__toggle-line { height: 2px; width: 18px; background: var(--text); margin: 0 auto; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

.mmenu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg); padding: 5rem 1.5rem 2rem;
  display: flex; flex-direction: column;
}
.mmenu[hidden] { display: none; }
.mmenu__nav { display: grid; gap: 0.5rem; flex: 1; }
.mmenu__nav a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0; font-size: 1.5rem;
  font-family: "Fraunces", Georgia, serif;
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mmenu__num { font-size: 0.75rem; color: var(--accent); font-family: monospace; }
.mmenu__foot { font-size: 0.85rem; color: var(--dim); display: flex; flex-wrap: wrap; gap: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.75rem 1.25rem; border-radius: 999px;
  font-weight: 500; font-size: 0.9rem; text-decoration: none;
  border: none; cursor: pointer; font-family: inherit;
}
.btn--primary {
  background: var(--btn-primary-bg); color: var(--btn-primary-fg);
}
.btn--primary svg { width: 14px; height: 14px; }
.hm-link {
  color: var(--muted); text-decoration: none; font-size: 0.9rem;
  border-bottom: 1px solid transparent;
}
.hm-link:hover { color: var(--text); border-bottom-color: var(--line); }

/* Hero */
.home-minimal { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem 4rem; }
.hm-hero { padding: 2rem 0 3rem; text-align: center; }
.hm-hero__title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.35rem, 6vw, 3.75rem);
  font-weight: 300; line-height: 1.08; letter-spacing: -0.03em;
  max-width: 16ch; margin: 0 auto 2rem;
}
.hm-hero__actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1.25rem; margin-bottom: 1.25rem;
}
.hm-hero__micro {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--dim); margin: 0;
}

/* Workflow pipeline */
.hm-artifact {
  margin-top: 2rem; text-align: left;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--map-bg); overflow: hidden;
  backdrop-filter: blur(8px);
}
.hm-artifact__top {
  display: flex; justify-content: space-between;
  padding: 0.85rem 1.15rem; font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim);
  border-bottom: 1px solid var(--line);
}

.hm-pipeline { padding: 1.15rem 1.35rem 0.95rem; }

.hm-pipeline__rail {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 1rem; padding: 0 0.25rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.hm-pipeline__stage-label {
  color: var(--dim); padding: 0.35rem 0.5rem;
  border-radius: 6px; transition: color 0.35s, background 0.35s;
  white-space: nowrap;
}
.hm-pipeline__rail-line {
  flex: 1; height: 2px; min-width: 12px; margin: 0 0.15rem;
  background: linear-gradient(90deg, var(--line), var(--wire-muted));
  position: relative;
}
.hm-pipeline__rail-line::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 0; height: 0; margin-top: -3px;
  border-top: 3px solid transparent; border-bottom: 3px solid transparent;
  border-left: 5px solid var(--dim);
}
.hm-pipeline[data-active="0"] .hm-pipeline__stage-label[data-rail-step="0"],
.hm-pipeline[data-active="1"] .hm-pipeline__stage-label[data-rail-step="1"],
.hm-pipeline[data-active="2"] .hm-pipeline__stage-label[data-rail-step="1"],
.hm-pipeline[data-active="3"] .hm-pipeline__stage-label[data-rail-step="2"],
.hm-pipeline[data-active="4"] .hm-pipeline__stage-label[data-rail-step="4"],
.hm-pipeline[data-active="5"] .hm-pipeline__stage-label[data-rail-step="5"],
.hm-pipeline[data-active="6"] .hm-pipeline__stage-label[data-rail-step="5"],
.hm-pipeline[data-active="7"] .hm-pipeline__stage-label[data-rail-step="5"] {
  color: var(--accent); background: var(--accent-soft, rgba(217, 74, 22, 0.12));
}

.hm-pipeline__canvas {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    auto
    auto
    minmax(0, 1fr)
    minmax(0, 1.05fr)
    minmax(0, 1.15fr);
  align-items: stretch;
  justify-items: stretch;
  gap: 0.75rem clamp(0.75rem, 2vw, 1.5rem);
  min-height: 360px;
  padding: 1rem 0.25rem;
}

.hm-pipeline__svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  color: var(--wire-muted);
}

.hm-pipe {
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.hm-pipe--trunk { stroke: var(--wire-muted); stroke-width: 2.5; opacity: 0.35; }
.hm-pipe--trunk-out { opacity: 0.28; }
.hm-pipe--branch { stroke-dasharray: 4 6; opacity: 0.55; }
.hm-pipe--muted { stroke: var(--wire-muted); }
.hm-pipe--signal { stroke: var(--wire-signal); stroke-width: 2.5; }
.hm-pipe--main { stroke: var(--wire-muted); stroke-width: 2.5; }

.hm-flow {
  fill: none; stroke-width: 2.5; stroke-dasharray: 5 8;
  animation: dash-flow 1s linear infinite;
}
.hm-flow--signal { stroke: var(--wire-signal); }
.hm-flow--main { stroke: var(--accent); opacity: 0.7; }
.hm-flow--slow { animation-duration: 1.6s; }
.hm-flow--delay { animation-delay: 0.35s; }
.hm-flow--out { animation-direction: reverse; animation-duration: 1.2s; }
@keyframes dash-flow { to { stroke-dashoffset: -26; } }

.hm-packet { fill: var(--wire-signal); }
.hm-packet--muted { fill: var(--muted); opacity: 0.55; }

.hm-pipeline__col {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 1rem; min-height: 320px; padding: 0.15rem 0;
}
.hm-pipeline__col--in { padding-right: 0.25rem; }
.hm-pipeline__col--out { padding-left: 0.25rem; }

.pipe-node {
  display: flex; align-items: flex-start; gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  flex: 1 1 0;
  min-height: 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; border-left: 3px solid var(--line);
  opacity: 0.4; transform: translateX(-6px);
  transition: opacity 0.4s, transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.pipe-node__led {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--dim); margin-top: 0.35rem; flex-shrink: 0;
  transition: background 0.35s, box-shadow 0.35s;
}
.pipe-node__body b {
  display: block; font-size: 0.76rem; color: var(--text); font-weight: 600;
}
.pipe-node__body small {
  display: block; font-size: 0.65rem; color: var(--dim); margin-top: 0.1rem;
}
.pipe-node--signal { border-left-color: rgba(217, 74, 22, 0.35); }

.hm-pipeline[data-active="0"] .pipe-node[data-map-step="0"],
.hm-pipeline[data-active="1"] .pipe-node[data-map-step="1"],
.hm-pipeline[data-active="2"] .pipe-node[data-map-step="2"],
.hm-pipeline[data-active="5"] .pipe-node[data-map-step="5"],
.hm-pipeline[data-active="6"] .pipe-node[data-map-step="6"],
.hm-pipeline[data-active="7"] .pipe-node[data-map-step="7"] {
  opacity: 1; transform: none;
  border-left-color: var(--accent);
  box-shadow: 0 4px 20px rgba(217, 74, 22, 0.12);
}
.hm-pipeline[data-active="0"] .pipe-node[data-map-step="0"] .pipe-node__led,
.hm-pipeline[data-active="1"] .pipe-node[data-map-step="1"] .pipe-node__led,
.hm-pipeline[data-active="2"] .pipe-node[data-map-step="2"] .pipe-node__led,
.hm-pipeline[data-active="5"] .pipe-node[data-map-step="5"] .pipe-node__led,
.hm-pipeline[data-active="6"] .pipe-node[data-map-step="6"] .pipe-node__led,
.hm-pipeline[data-active="7"] .pipe-node[data-map-step="7"] .pipe-node__led {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.pipe-hub,
.pipe-gateway {
  position: relative; z-index: 1;
  align-self: center;
  border: 2px solid var(--line); background: var(--card);
  display: grid; place-items: center;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--dim); opacity: 0.45;
  transition: opacity 0.4s, border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}
.pipe-hub {
  width: 56px; height: 56px; border-radius: 50%;
  font-size: 0.55rem;
}
.pipe-gateway {
  width: 48px; min-height: 48px; border-radius: 10px;
  font-size: 0.5rem; padding: 0.35rem;
}
.hm-pipeline[data-active="1"] .pipe-hub,
.hm-pipeline[data-active="2"] .pipe-hub,
.hm-pipeline[data-active="1"] .pipe-gateway,
.hm-pipeline[data-active="2"] .pipe-gateway,
.hm-pipeline[data-active="3"] .pipe-gateway {
  opacity: 1; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.hm-pipeline[data-active="1"] .pipe-hub,
.hm-pipeline[data-active="2"] .pipe-hub {
  transform: scale(1.06);
}

.pipe-stage {
  position: relative; z-index: 1;
  align-self: center;
  padding: 0.85rem 0.95rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; min-width: 0;
  opacity: 0.42; transition: opacity 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.pipe-stage--norm {
  border-top: 3px solid var(--muted);
}
.pipe-stage--rules {
  border-top: 3px solid var(--accent);
}
.hm-pipeline[data-active="3"] .pipe-stage--norm {
  opacity: 1; border-color: var(--muted);
  box-shadow: 0 6px 28px rgba(26, 24, 20, 0.12);
}
[data-theme="dark"] .hm-pipeline[data-active="3"] .pipe-stage--norm {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.hm-pipeline[data-active="4"] .pipe-stage--rules {
  opacity: 1; border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(217, 74, 22, 0.15);
}
.pipe-stage__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.55rem; gap: 0.5rem;
}
.pipe-stage__tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--dim);
}
.pipe-stage__live {
  font-style: normal; font-size: 0.58rem;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em;
}
.pipe-stage__ledger {
  display: grid; gap: 0.35rem; font-size: 0.68rem;
}
.pipe-stage__ledger div {
  display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.5rem;
}
.pipe-stage__ledger span { color: var(--dim); }
.pipe-stage__ledger strong { color: var(--text); font-weight: 500; }
.pipe-stage__chips {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.55rem;
}
.pipe-stage__chips span {
  font-size: 0.58rem; padding: 0.15rem 0.45rem;
  border: 1px dashed var(--line); border-radius: 4px; color: var(--dim);
}

.hm-pipeline__footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 0.5rem; margin-top: 0.85rem; padding: 0.65rem 0 0.15rem;
  border-top: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace; font-size: 0.62rem;
}
.hm-pipeline__status {
  display: flex; align-items: center; gap: 0.4rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.hm-pipeline__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.hm-pipeline__step-readout { color: var(--dim); }

.hm-artifact figcaption {
  padding: 0.85rem 1.15rem 1.15rem; font-size: 0.82rem;
  color: var(--muted); border-top: 1px solid var(--line);
}

@media (max-width: 960px) {
  .hm-pipeline__canvas {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "in in"
      "merge queue"
      "norm norm"
      "rules rules"
      "out out";
    min-height: auto;
    gap: 0.85rem;
  }
  .hm-pipeline__col--in { grid-area: in; min-height: auto; }
  .hm-pipeline__col--out { grid-area: out; min-height: auto; }
  .pipe-hub { grid-area: merge; margin: 0 auto; }
  .pipe-gateway { grid-area: queue; margin: 0 auto; }
  .pipe-stage--norm { grid-area: norm; }
  .pipe-stage--rules { grid-area: rules; }
  .hm-pipeline__col { flex-direction: row; flex-wrap: wrap; gap: 0.65rem; }
  .hm-pipeline__col .pipe-node { flex: 1 1 calc(50% - 0.5rem); min-width: 130px; min-height: auto; }
  .hm-pipeline__svg { opacity: 0.28; }
  .hm-pipeline__rail { flex-wrap: wrap; gap: 0.25rem; }
  .hm-pipeline__rail-line { flex: 1 1 16px; min-width: 16px; }
}

@media (max-width: 560px) {
  .hm-pipeline__canvas {
    grid-template-columns: 1fr;
    grid-template-areas:
      "in"
      "merge"
      "queue"
      "norm"
      "rules"
      "out";
  }
  .hm-pipeline__col .pipe-node { flex: 1 1 100%; }
}

/* Sections */
.section { padding: 4rem 0; border-top: 1px solid var(--line); }
.hm-section__intro { max-width: 36rem; margin-bottom: 2.5rem; }
.hm-section__intro--center { margin-inline: auto; text-align: center; }
.hm-section__num {
  display: block; font-size: 0.72rem; letter-spacing: 0.12em;
  color: var(--dim); margin-bottom: 0.75rem;
}
.hm-section__title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 300; line-height: 1.12; letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.hm-section__lede { color: var(--muted); margin: 0; font-size: 1.02rem; }

.hm-lines { display: grid; gap: 0; border-top: 1px solid var(--line); }
.hm-line {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem;
  padding: 1.75rem 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) {
  .hm-line { grid-template-columns: 4rem 1fr; gap: 2rem; }
}
.hm-line__index { font-size: 0.8rem; color: var(--dim); font-family: "JetBrains Mono", monospace; }
.hm-line h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem; font-weight: 400; margin: 0 0 0.35rem;
}
.hm-line p { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 40ch; }

.hm-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0; border-top: 1px solid var(--line);
}
@media (min-width: 768px) { .hm-steps { grid-template-columns: repeat(3, 1fr); } }
.hm-steps li {
  padding: 1.75rem 1.25rem 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .hm-steps li { border-bottom: none; border-right: 1px solid var(--line); padding-right: 1.5rem; }
  .hm-steps li:last-child { border-right: none; }
}
.hm-steps li span {
  display: block; font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem; margin-bottom: 0.5rem;
}
.hm-steps li p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.hm-prooflist { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
@media (min-width: 768px) { .hm-prooflist { grid-template-columns: repeat(3, 1fr); } }
.hm-proofitem {
  padding: 1.5rem; background: var(--bg);
}
.hm-proofitem > span {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim);
}
.hm-proofitem h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem; font-weight: 400; margin: 0.5rem 0 0.35rem;
}
.hm-proofitem p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* Contact */
.section--contact {
  padding: 5.5rem 0 6rem;
  background: linear-gradient(180deg, transparent 0%, var(--bg-elevated) 35%, var(--bg-elevated) 100%);
}

.hm-contact {
  display: grid;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 900px) {
  .hm-contact {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    gap: clamp(3rem, 6vw, 5rem);
  }
}

.hm-contact__copy .hm-section__num { margin-bottom: 1rem; }
.hm-contact__copy .hm-section__title {
  max-width: 14ch;
  margin: 0 0 1.35rem;
}
.hm-contact__copy .hm-section__lede {
  max-width: 42ch;
  margin: 0 0 0.25rem;
  line-height: 1.6;
}

.hm-contact__steps {
  list-style: none;
  padding: 0;
  margin: 2.75rem 0 0;
  display: grid;
  gap: 0;
  max-width: 36rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}
.hm-contact__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  align-items: start;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.hm-contact__steps li:last-child { border-bottom: none; }
.hm-contact__step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
}
.hm-contact__steps strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.hm-contact__steps p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.hm-contact__aside {
  width: 100%;
  max-width: 400px;
}
@media (min-width: 900px) {
  .hm-contact__aside {
    justify-self: end;
    position: sticky;
    top: 6rem;
  }
}
@media (max-width: 899px) {
  .hm-contact__aside { max-width: none; }
}

.booking-card {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.35rem 1.25rem;
  box-shadow: 0 16px 48px rgba(26, 24, 20, 0.08);
}
[data-theme="dark"] .booking-card {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.booking-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text);
}
.lead-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--dim);
  margin-bottom: 0.75rem;
}
.lead-form input,
.lead-form textarea {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.lead-form textarea { resize: vertical; min-height: 4.5rem; }
.lead-form button {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 999px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.lead-form button:hover { opacity: 0.88; }
.lead-form button:active { transform: scale(0.99); }
.booking-fallback {
  font-size: 0.75rem;
  color: var(--dim);
  margin: 0.85rem 0 0;
  line-height: 1.5;
  max-width: 36ch;
}
.booking-fallback a { color: var(--muted); }
.booking-fallback a:hover { color: var(--accent); }
.form-status { font-size: 0.85rem; margin-top: 0.5rem; min-height: 1.2rem; }
.form-status.is-ok { color: #0d7a4e; }
.form-status.is-error { color: #c0392b; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* Footer */
.foot {
  max-width: 1120px; margin: 0 auto; padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
}
.foot__top { margin-bottom: 1.5rem; }
.foot__brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--text); margin-bottom: 0.5rem;
}
.foot__brand svg { width: 24px; height: 24px; }
.foot__initials {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.foot__essence { color: var(--muted); font-size: 0.9rem; margin: 0; }
.foot__bottom {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  font-size: 0.78rem; color: var(--dim);
}
.foot__bottom a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .home-intro { display: none; }
  .hm-flow, .hm-packet animateMotion, .hm-pipeline__dot { animation: none; }
  .pipe-node, .pipe-stage, .pipe-hub, .pipe-gateway { opacity: 1 !important; transform: none !important; }
}
