:root {
  --paper: #f7f4ee;
  --paper-soft: #f1ede6;
  --ink: #121212;
  --ink-soft: #3f3a35;
  --muted: #7b7268;
  --line: #d7d0c6;
  --line-strong: rgba(18, 18, 18, 0.18);
  --accent: #e86f2d;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(248, 244, 238, 0.94);
  --display: "Lora", Georgia, serif;
  --body: Inter, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 30px 90px -70px rgba(0, 0, 0, 0.45);
  --container: 1440px;
  --sidebar-w: 250px;
  --topbar-h: 62px;
}

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

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: calc(var(--topbar-h) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 16%, rgba(232, 111, 45, 0.08), transparent 16%),
    radial-gradient(circle at 10% 28%, rgba(0, 0, 0, 0.03), transparent 18%),
    var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 122px;
  height: auto;
}

.topbar-note {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cta-link {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shell {
  width: min(100%, var(--container));
  margin: 0 auto;
  min-height: calc(100vh - var(--topbar-h));
}

.sidebar {
  position: fixed;
  top: var(--topbar-h);
  left: max(0px, calc((100vw - var(--container)) / 2));
  width: var(--sidebar-w);
  height: calc(100vh - var(--topbar-h));
  padding: 18px 18px 30px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
  overflow-y: auto;
}

.side-label,
.section-label,
.kicker,
.card-index,
.process-card span,
.note-label,
.family-meta p,
.family-meta span {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.side-label {
  padding-top: 10px;
}

.side-label,
.section-label,
.kicker,
.note-label,
.family-meta p {
  color: var(--muted);
}

.sidebar-nav {
  margin-top: 10px;
}

.sidebar-nav a {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--ink-soft);
  transition: background 0.18s ease, color 0.18s ease;
}

.sidebar-nav a:hover {
  background: rgba(18, 18, 18, 0.05);
  color: var(--ink);
}

.sidebar-nav span {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.06);
  font-size: 10px;
  font-weight: 700;
}

.sidebar-nav strong {
  font-size: 14px;
  font-weight: 600;
}

.sidebar-note {
  margin-top: 26px;
  padding: 16px 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.sidebar-note p {
  margin: 0 0 12px;
}

.main {
  margin-left: var(--sidebar-w);
  padding: clamp(26px, 4.4vw, 58px);
  min-width: 0;
}

.hero {
  max-width: 1080px;
  min-width: 0;
}

.kicker {
  color: var(--accent);
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 13ch;
  margin-top: 10px;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.94;
}

.intro {
  max-width: 760px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.78;
}

.intro-secondary {
  margin-top: 16px;
}

.intro a,
.intro span {
  color: var(--ink);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.button.secondary {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.hero-ledger {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hero-ledger article,
.service-card,
.family-entry,
.process-card,
.method-note,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-ledger article {
  padding: 18px;
}

.hero-ledger span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-ledger strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 400;
}

.hero-ledger p,
.statement p,
.service-card p,
.family-body p,
.process-card p,
.method-note li,
.form-note,
.form-status {
  color: var(--ink-soft);
}

.statement {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.statement-rule {
  height: 1px;
  margin-top: 12px;
  background: var(--line-strong);
}

.statement p {
  max-width: 820px;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  line-height: 1.45;
}

.statement p + p {
  margin-top: 10px;
}

.section {
  margin-top: 52px;
  min-width: 0;
}

.section-head {
  max-width: 800px;
  min-width: 0;
}

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(2.1rem, 4.2vw, 4.1rem);
  line-height: 0.98;
}

.section-copy,
.ecosystem-note {
  max-width: 800px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.72;
}

.narrow {
  max-width: 700px;
}

.service-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.service-card {
  padding: 22px;
}

.card-index {
  color: var(--accent);
}

.service-card h3,
.family-body h3,
.process-card h3 {
  margin-top: 10px;
  font-size: 2rem;
  line-height: 1.02;
}

.service-card p {
  margin-top: 14px;
  line-height: 1.72;
}

.family-board {
  margin-top: 26px;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.ecosystem-note {
  max-width: 900px;
  margin-top: 18px;
}

.family-entry {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  background: var(--panel-strong);
}

.family-entry.highlight {
  border-color: rgba(232, 111, 45, 0.28);
  box-shadow: 0 30px 90px -72px rgba(232, 111, 45, 0.45);
}

.family-meta span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent);
}

.family-body p {
  margin-top: 10px;
  line-height: 1.72;
}

.family-body h3 a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.family-body h3 a:hover {
  color: var(--accent);
  border-color: rgba(232, 111, 45, 0.4);
}

.split-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.process-stack {
  display: grid;
  gap: 14px;
}

.process-card {
  padding: 20px;
}

.process-card span {
  color: var(--accent);
}

.process-card p {
  margin-top: 12px;
  line-height: 1.72;
}

.method-note {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(240, 235, 226, 0.9));
}

.method-note ul {
  margin: 16px 0 0;
  padding-left: 18px;
}

.method-note li + li {
  margin-top: 10px;
}

.proof-strip {
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}

.proof-strip h2 {
  max-width: 920px;
  margin-top: 10px;
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  line-height: 1;
}

.contact-card {
  margin-top: 24px;
  padding: 24px;
  min-width: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.58);
  padding: 14px 15px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  text-transform: none;
  letter-spacing: normal;
}

textarea {
  resize: vertical;
  min-height: 160px;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(232, 111, 45, 0.16);
  border-color: rgba(232, 111, 45, 0.36);
}

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

.contact-actions {
  margin-top: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.form-note,
.form-status {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  text-transform: none;
  letter-spacing: normal;
}

.form-status {
  min-height: 1.3em;
  margin-top: 4px;
}

@media (max-width: 1100px) {
  .sidebar {
    position: static;
    left: auto;
    width: auto;
    height: auto;
    padding: 18px 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    overflow: visible;
  }

  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sidebar-nav a {
    width: auto;
    margin: 0;
    min-width: 0;
  }

  .sidebar-note {
    display: none;
  }

  .main {
    margin-left: 0;
    padding-top: 26px;
  }

  .hero-ledger,
  .service-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .family-entry {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }

  .brand img {
    width: 98px;
  }

  .topbar-note {
    display: none;
  }

  .cta-link {
    width: 100%;
    margin-left: 0;
    padding-top: 2px;
    font-size: 10px;
  }

  .sidebar {
    padding: 14px 16px 0;
  }

  .main {
    padding: 20px 16px 42px;
    overflow-x: clip;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(1.9rem, 9.8vw, 2.9rem);
    line-height: 0.98;
  }

  .intro {
    font-size: 16px;
    line-height: 1.7;
  }

  .section-copy,
  .ecosystem-note {
    font-size: 15px;
    line-height: 1.68;
  }

  .statement {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .statement-rule {
    width: 84px;
  }

  .section {
    margin-top: 38px;
  }

  .section-head h2,
  .proof-strip h2 {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .service-card h3,
  .family-body h3,
  .process-card h3 {
    font-size: 1.55rem;
  }

  .form-grid,
  .contact-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .contact-actions .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .sidebar-nav {
    gap: 6px;
  }

  .sidebar-nav a {
    padding: 10px;
  }

  .sidebar-nav strong {
    font-size: 13px;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(1.72rem, 9.2vw, 2.45rem);
  }

  .intro {
    font-size: 15px;
  }
}
