:root {
  color-scheme: dark;
  --bg: #090d10;
  --bg-2: #0e1317;
  --panel: #12181d;
  --panel-2: #171e23;
  --line: rgba(243, 239, 230, 0.12);
  --line-strong: rgba(215, 168, 79, 0.38);
  --text: #f3efe6;
  --muted: #a7adb0;
  --soft: #737c82;
  --accent: #d7a84f;
  --accent-2: #f0cf86;
  --steel: #8fa3aa;
  --sidebar: 292px;
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, #090d10 0%, #10161a 48%, #090d10 100%);
  color: var(--text);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 12%, rgba(215, 168, 79, 0.08), transparent 24rem),
    linear-gradient(180deg, rgba(143, 163, 170, 0.06), transparent 30rem);
  opacity: 0.85;
}

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

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: rgba(215, 168, 79, 0.35);
  color: var(--text);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-140%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: var(--panel);
  color: var(--text);
  transition: transform 160ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.mobile-header {
  display: none;
}

.site-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: var(--sidebar);
  border-right: 1px solid var(--line);
  background: rgba(11, 15, 18, 0.92);
  backdrop-filter: blur(18px);
}

.sidebar-inner {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 36px;
  padding: 30px 24px;
}

.brand-lockup,
.mobile-brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: min(232px, 100%);
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: grid;
  gap: 4px;
}

.site-nav a {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--muted);
  font-size: 14px;
  transition: border-color 180ms var(--ease), color 180ms var(--ease), background 180ms var(--ease);
}

.site-nav a::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.5;
}

.site-nav a:hover,
.site-nav a.is-active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.site-nav a.is-active::before {
  border-color: var(--accent);
  background: var(--accent);
  opacity: 1;
}

.sidebar-bottom {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.language-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px;
}

.language-switch a {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 5px;
  color: var(--soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.language-switch a:hover,
.language-switch a.is-active {
  background: rgba(215, 168, 79, 0.12);
  color: var(--accent-2);
}

.sidebar-cta,
.btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sidebar-cta {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--accent-2);
  font-size: 14px;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.sidebar-cta:hover {
  background: rgba(215, 168, 79, 0.09);
  transform: translateY(-1px);
}

svg {
  width: 1.08em;
  height: 1.08em;
  flex: 0 0 auto;
}

.site-main,
.site-footer {
  position: relative;
  z-index: 1;
  margin-left: var(--sidebar);
}

.site-main {
  overflow: hidden;
}

.hero {
  display: grid;
  min-height: min(860px, 92vh);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 4vw, 48px);
  padding: 78px clamp(34px, 6vw, 96px) 46px;
}

.hero-compact {
  min-height: auto;
  padding-top: 96px;
  padding-bottom: 58px;
}

.hero-copy {
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 940px;
  margin-bottom: 24px;
  font-size: clamp(44px, 6vw, 96px);
  font-weight: 720;
  line-height: 0.97;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 680;
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 16px;
}

.lead {
  max-width: 740px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.6;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  min-height: 48px;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 650;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.btn-primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #12100b;
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

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

.btn-secondary:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

.text-link {
  color: var(--accent-2);
  font-weight: 650;
}

.text-link svg {
  transition: transform 180ms var(--ease);
}

.text-link:hover svg {
  transform: translateX(3px);
}

.control-graphic {
  width: 100%;
  margin: 0;
  filter: drop-shadow(var(--shadow));
}

.control-graphic svg {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.proof-strip,
.operator-grid,
.deliverable-grid,
.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0 clamp(24px, 6vw, 96px) 88px;
}

.metric,
.operator-card,
.deliverable,
.article-card,
.contact-panel,
.blueprint-price,
.owner-marker,
.principles,
.final-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 24, 29, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.035) inset;
}

.metric {
  min-height: 172px;
  padding: 24px;
}

.metric strong {
  display: block;
  margin-bottom: 14px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 0.95;
}

.metric span {
  display: block;
  color: var(--text);
  font-weight: 650;
}

.metric small {
  display: block;
  margin-top: 8px;
  color: var(--soft);
  line-height: 1.5;
}

.pathways,
.split-band,
.problem-band,
.process-list,
.deliverables,
.article-list,
.article-detail,
.case-stack {
  padding: 0 clamp(24px, 6vw, 96px) 96px;
}

.pathway {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 38px 0;
}

.pathway-index,
.process-item > span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.pathway h2,
.pathway p {
  max-width: 860px;
}

.section-intro {
  max-width: 840px;
  margin-bottom: 34px;
}

.operator-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.operator-card,
.deliverable {
  min-height: 230px;
  padding: 24px;
}

.operator-card svg,
.deliverable svg,
.problem-item svg {
  width: 30px;
  height: 30px;
  margin-bottom: 28px;
  color: var(--accent);
}

.operator-card h2 {
  font-size: 24px;
}

.split-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.split-band article {
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.owner-marker {
  margin: 0 clamp(24px, 6vw, 96px) 96px;
  padding: 26px;
}

.owner-marker ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.owner-marker li,
.principles p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  color: var(--muted);
}

.owner-marker svg,
.principles svg {
  margin-top: 4px;
  color: var(--accent);
}

.problem-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.problem-item {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 255, 255, 0.028);
}

.process-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 760px);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.process-item h2 {
  font-size: clamp(25px, 3vw, 38px);
}

.principles {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: 28px;
  margin: 0 clamp(24px, 6vw, 96px) 96px;
  padding: 28px;
}

.principles > div {
  display: grid;
  gap: 14px;
}

.case-study {
  border-top: 1px solid var(--line);
  padding: 48px 0 64px;
}

.case-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}

.case-header aside {
  border-left: 1px solid var(--line-strong);
  padding-left: 18px;
  color: var(--accent-2);
  line-height: 1.6;
}

.case-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.case-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
}

.case-after {
  max-width: 920px;
  margin-top: 24px;
}

.blueprint-price {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) 1fr;
  gap: 24px;
  align-items: center;
  margin: 0 clamp(24px, 6vw, 96px) 92px;
  padding: 34px;
}

.blueprint-price strong {
  display: block;
  color: var(--accent-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1;
}

.deliverable-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
}

.article-list {
  max-width: 980px;
}

.article-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.badge {
  display: inline-flex;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--accent-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.article-detail {
  max-width: 940px;
  padding-top: 96px;
}

.article-hero {
  margin-bottom: 54px;
}

.article-hero h1 {
  font-size: clamp(46px, 7vw, 88px);
}

.article-block {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 40px;
  margin: 0 clamp(24px, 6vw, 96px) 96px;
  padding: 34px;
}

.contact-panel dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.contact-panel dl div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.contact-panel dt {
  color: var(--soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-panel dd {
  margin: 6px 0 0;
  color: var(--text);
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 clamp(24px, 6vw, 96px) 96px;
  padding: 30px;
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.44fr);
  gap: 32px;
  border-top: 1px solid var(--line);
  padding: 34px clamp(24px, 6vw, 96px) 44px;
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
}

.site-footer p,
.site-footer small {
  margin: 0;
  color: var(--soft);
}

.site-footer span {
  display: block;
  margin-bottom: 8px;
  color: var(--soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-2);
}

.mobile-whatsapp {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

.reveal {
  transform: translateY(14px);
  opacity: 0;
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 1180px) {
  :root {
    --sidebar: 260px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .control-graphic {
    max-width: 680px;
  }

  .operator-grid,
  .problem-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body {
    padding-top: 72px;
  }

  .mobile-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 120;
    display: flex;
    height: 72px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 0 16px;
    background: rgba(9, 13, 16, 0.9);
    backdrop-filter: blur(18px);
  }

  .mobile-brand {
    max-width: min(52vw, 210px);
  }

  .brand-logo-mobile {
    width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
    background: transparent;
    color: var(--text);
  }

  .menu-toggle i,
  .menu-toggle i::before,
  .menu-toggle i::after {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
  }

  .menu-toggle i {
    position: relative;
  }

  .menu-toggle i::before,
  .menu-toggle i::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .menu-toggle i::before {
    top: -6px;
  }

  .menu-toggle i::after {
    top: 6px;
  }

  .site-sidebar {
    inset: 72px auto 0 0;
    height: calc(100dvh - 72px);
    width: min(86vw, 340px);
    overflow-y: auto;
    transform: translateX(-104%);
    transition: transform 240ms var(--ease);
  }

  .site-sidebar .brand-logo {
    width: min(250px, 100%);
  }

  .menu-open .site-sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    border: 0;
    background: rgba(0, 0, 0, 0.48);
  }

  .menu-open .sidebar-backdrop {
    display: block;
  }

  .site-main,
  .site-footer {
    margin-left: 0;
  }

  .hero,
  .hero-compact {
    padding: 58px 20px 52px;
  }

  .hero .control-graphic {
    display: none;
  }

  h1 {
    font-size: clamp(42px, 13vw, 66px);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(27px, 8vw, 42px);
  }

  .lead {
    font-size: 18px;
  }

  .proof-strip,
  .operator-grid,
  .deliverable-grid,
  .case-metrics,
  .problem-list,
  .split-band,
  .case-body,
  .contact-panel,
  .blueprint-price,
  .site-footer,
  .article-card,
  .final-cta,
  .principles,
  .case-header {
    grid-template-columns: 1fr;
  }

  .proof-strip,
  .operator-grid,
  .pathways,
  .split-band,
  .problem-band,
  .process-list,
  .deliverables,
  .article-list,
  .article-detail,
  .case-stack {
    padding-right: 20px;
    padding-left: 20px;
  }

  .owner-marker,
  .principles,
  .blueprint-price,
  .contact-panel,
  .final-cta {
    margin-right: 20px;
    margin-left: 20px;
  }

  .pathway,
  .process-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .operator-card,
  .deliverable,
  .problem-item {
    min-height: auto;
  }

  .final-cta {
    align-items: flex-start;
  }

  .mobile-whatsapp {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    padding: 0 15px;
    background: var(--accent);
    color: #12100b;
    font-weight: 700;
    box-shadow: var(--shadow);
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .btn {
    width: 100%;
  }

  .btn {
    justify-content: center;
  }

  .metric {
    min-height: 146px;
  }

  .metric strong {
    font-size: 36px;
  }

  .contact-panel,
  .blueprint-price,
  .owner-marker,
  .final-cta {
    padding: 22px;
  }
}
