:root {
  --ink: #11110f;
  --paper: #f6f5ef;
  --white: #fff;
  --muted: #66645e;
  --line: #d5d2c9;
  --soft: #ebe9e1;
  --coral: #e8462f;
  --coral-dark: #c93421;
  --blue: #2756d8;
  --green: #77b900;
  --yellow: #f3c84b;
  --success: #247347;
  --max: 1320px;
  --section: clamp(72px, 9vw, 128px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, blockquote, ul { margin: 0; }
img { display: block; max-width: 100%; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.mono, .eyebrow, .section-index, .metric small, .tag, .crumbs, .stack,
.case-label, .data-label, .footer-status, .service-no {
  font-family: "IBM Plex Mono", Consolas, monospace;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 14px;
  border: 1px solid var(--ink);
  background: var(--white);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(17, 17, 15, .16);
  background: rgba(246, 245, 239, .94);
  backdrop-filter: blur(14px);
}
.nav-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: baseline; gap: 9px; font-weight: 700; }
.brand-name { font-size: 1.35rem; line-height: 1; }
.brand-tag { color: var(--coral); font: 500 .67rem/1 "IBM Plex Mono", monospace; }
.nav .brand-tag { color: #a92e1e; }
.nav-links { display: none; justify-content: center; align-items: center; gap: 26px; }
.nav-links a { color: #3e3d38; font-size: .88rem; font-weight: 500; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: var(--coral); }
.nav-action { display: none !important; }
.menu-toggle {
  width: 42px;
  height: 42px;
  justify-self: end;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
}
.menu-toggle span { width: 18px; height: 1px; background: var(--ink); transition: transform 160ms ease; }
.nav-open .menu-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-open .menu-toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mobile-menu {
  position: fixed;
  inset: 68px 0 0;
  z-index: 45;
  padding: 20px;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease;
}
.nav-open .mobile-menu { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.25rem; font-weight: 600; }

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  font-size: .88rem;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn::after { content: "↗"; font-size: 1.05rem; }
button.btn::after { content: "→"; }
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--white); }
.btn-coral { border-color: var(--coral); background: var(--coral); color: var(--white); }
.btn-coral:hover, .btn-coral:focus-visible { border-color: var(--coral-dark); background: var(--coral-dark); }
.btn-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-light:hover { border-color: var(--white); background: var(--white); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero {
  min-height: 660px;
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  padding: 124px 0 34px;
  background: var(--ink);
  color: var(--white);
}
.hero .container { position: relative; }
.hero-content { position: relative; z-index: 2; width: min(800px, 100%); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--coral);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
h1 {
  max-width: 880px;
  margin-top: 20px;
  font-size: clamp(3.15rem, 6vw, 4.55rem);
  line-height: .96;
  font-weight: 600;
  letter-spacing: 0;
  text-wrap: balance;
}
.hero-copy { max-width: 740px; margin-top: 24px; color: #d1cec6; font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.58; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 30px; padding-top: 18px; border-top: 1px solid #484640; }
.metric { min-width: 120px; }
.metric strong { display: block; font-size: 1.6rem; font-weight: 600; }
.metric small { display: block; margin-top: 5px; color: #96928a; font-size: .63rem; text-transform: uppercase; }

.hero-capabilities { position: absolute; right: 0; bottom: 0; display: grid; width: 250px; border-top: 1px solid #45443f; }
.hero-capabilities span { padding: 10px 0; border-bottom: 1px solid #45443f; color: #8f8c85; font: .62rem/1.2 "IBM Plex Mono", monospace; text-transform: uppercase; }

.proof-strip { border-bottom: 1px solid var(--line); background: var(--white); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-item { min-height: 112px; padding: 24px 0; border-right: 1px solid var(--line); }
.proof-item + .proof-item { padding-left: 24px; }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 600; }
.proof-item span { display: block; margin-top: 7px; color: var(--muted); font-size: .82rem; }

.section { padding: var(--section) 0; border-bottom: 1px solid var(--line); }
.section.white { background: var(--white); }
.section.dark { border-bottom-color: #2e2f2d; background: var(--ink); color: var(--white); }
.section.blue { border-bottom: 0; background: var(--blue); color: var(--white); }
.section-heading { display: grid; gap: 24px; margin-bottom: clamp(46px, 7vw, 80px); }
.section-index { color: var(--coral); font-size: .7rem; }
h2 { max-width: 950px; font-size: clamp(2.35rem, 5.3vw, 5rem); line-height: 1.01; font-weight: 600; letter-spacing: 0; text-wrap: balance; }
.section-lead { max-width: 690px; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.dark .section-lead { color: #aaa79f; }

.service-matrix { border-top: 1px solid var(--ink); }
.service-row {
  display: grid;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 180ms ease, color 180ms ease;
}
.service-row:hover { padding-left: 10px; }
.service-no { color: var(--coral); font-size: .68rem; }
.service-row h3 { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 500; }
.service-row p { max-width: 620px; color: var(--muted); line-height: 1.65; }
.service-link { align-self: end; color: var(--coral); font-weight: 600; }
.service-link::after { content: " ↗"; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag { padding: 6px 8px; border: 1px solid var(--line); border-radius: 2px; color: #4d4b46; font-size: .62rem; text-transform: uppercase; }

.ropero-feature { overflow: hidden; background: #e8f3d0; }
.ropero-layout { display: grid; gap: 44px; align-items: center; }
.ropero-copy .eyebrow { color: #4d7e00; }
.ropero-mark { width: 72px; height: 72px; margin-bottom: 26px; overflow: hidden; border-radius: 14px; }
.ropero-copy h2 { max-width: 700px; }
.ropero-copy p { max-width: 610px; margin-top: 22px; color: #40502c; font-size: 1.08rem; line-height: 1.65; }
.case-metrics { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(59,86,25,.24); }
.case-metrics strong { display: block; font-size: 1.65rem; }
.case-metrics small { color: #557039; font: .64rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.ropero-gallery { position: relative; min-height: 560px; }
.ropero-shot { position: absolute; width: 230px; overflow: hidden; border: 1px solid rgba(17,17,15,.15); border-radius: 18px; background: #fff; box-shadow: 0 28px 65px rgba(57,80,25,.2); }
.ropero-shot img { width: 100%; }
.ropero-shot.one { left: 2%; top: 8%; transform: rotate(-6deg); }
.ropero-shot.two { left: 32%; top: 0; z-index: 2; }
.ropero-shot.three { right: 2%; top: 11%; transform: rotate(6deg); }

.cases-section { background: var(--white); }
.case-ledger { border-top: 1px solid var(--ink); }
.case-entry { display: grid; gap: 36px; min-width: 0; padding: clamp(38px,6vw,74px) 0; border-bottom: 1px solid var(--line); align-items: center; }
.case-entry-copy { min-width: 0; }
.case-number { display: block; margin-bottom: 26px; color: var(--coral); font: .66rem/1 "IBM Plex Mono", monospace; }
.case-entry-copy .ropero-mark { width: 54px; height: 54px; margin: 0 0 18px; border-radius: 10px; }
.case-entry h3 { max-width: 620px; font-size: clamp(2.15rem,4.8vw,4.5rem); line-height: 1; font-weight: 600; }
.case-entry-copy p { max-width: 570px; margin-top: 20px; color: var(--muted); font-size: 1.04rem; line-height: 1.65; }
.text-link { display: inline-block; margin-top: 24px; color: var(--coral); font-weight: 600; }
.text-link::after { content: " ↗"; }
.case-phone-frame { width: 200px; aspect-ratio: 9 / 19.5; overflow: hidden; border-radius: 24px; }
.case-phone-pair { position: relative; height: 500px; overflow: hidden; background: #ddecbb; }
.case-phone-pair figure { position: absolute; top: 36px; margin: 0; border: 7px solid #fff; box-shadow: 0 24px 54px rgba(44,70,18,.2); }
.case-phone-pair figure:first-child { left: 14%; transform: rotate(-5deg); }
.case-phone-pair figure:last-child { right: 14%; top: 18px; transform: rotate(4deg); }
.case-phone-pair img { display: block; width: 100%; height: 100%; object-fit: cover; }
.quien-wordmark { width: max-content; margin-bottom: 22px; padding: 10px 13px; color: #191919; border-left: 7px solid #f6aa1c; background: #ffd66a; font: 600 1.15rem/1.02 "IBM Plex Mono", monospace; }
.quien-phone-pair { background: #fff0c5; }
.quien-phone-pair figure { border-color: #fff; box-shadow: 0 24px 54px rgba(117,75,0,.2); }
.firma-wordmark { margin-bottom: 24px; color: #10213a; font-size: 1.55rem; font-weight: 700; }
.firma-wordmark small { display: block; margin-top: 3px; color: #278b6b; font: .55rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.firma-mockup { height: 500px; position: relative; display: flex; align-items: center; justify-content: center; gap: 24px; overflow: hidden; padding: 30px; background: #0d2438; }
.firma-phone { flex: 0 0 auto; border: 7px solid #eef2f5; background: #f7f8fa; box-shadow: 0 28px 68px rgba(0,0,0,.32); }
.firma-phone-start { transform: rotate(-3deg); }
.firma-phone-sign { transform: rotate(3deg); }
.firma-top { padding: 22px 24px; background: #10213a; color: white; }
.firma-top strong { display: block; font-size: 1.15rem; }
.firma-top small { display: block; margin-top: 5px; color: #88e2c0; font: .55rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.firma-screen { padding: 26px 22px 24px; }
.firma-step { color: #087f55; font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.firma-screen h4 { margin-top: 14px; font-size: 1.48rem; line-height: 1.08; }
.firma-document { margin-top: 24px; padding: 18px; border: 1px solid #d9dfe5; background: white; }
.firma-document i { display: block; height: 7px; margin-top: 8px; background: #dde3e8; }
.firma-document i:first-child { width: 70%; margin-top: 0; background: #92a0aa; }
.firma-document i:last-child { width: 55%; }
.firma-identity { margin-top: 24px; padding: 16px; border: 1px solid #d9dfe5; background: white; }
.firma-identity span { display: block; color: #596872; font-size: .62rem; font-weight: 600; }
.firma-identity i { display: block; width: 100%; height: 22px; margin: 6px 0 13px; border: 1px solid #dce2e7; background: #f4f6f8; }
.firma-progress { display: flex; justify-content: space-between; margin: 24px 0; }
.firma-progress span { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #c8d0d6; border-radius: 50%; color: #68747d; font-size: .7rem; }
.firma-progress .done { border-color: #087f55; background: #087f55; color: white; }
.firma-progress .active { border-color: #10213a; background: #10213a; color: white; }
.firma-screen b { display: block; padding: 13px; background: #087f55; color: white; text-align: center; }
.concept-label { position: absolute; right: 12px; bottom: 10px; color: rgba(255,255,255,.58); font: .52rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.ops-mockup { position: relative; min-height: 500px; overflow: hidden; border: 1px solid #cfd6e4; background: #eef3fa; }
.ops-bar { height: 52px; display: flex; align-items: center; gap: 22px; padding: 0 18px; background: #19336f; color: white; }
.ops-bar strong { margin-right: auto; font-size: .72rem; }
.ops-bar span { font-size: .58rem; text-transform: uppercase; }
.ops-layout { display: grid; grid-template-columns: 185px 1fr; height: 448px; }
.ops-list { padding: 12px; border-right: 1px solid #ced6e4; background: #f8fafc; }
.ops-list div { position: relative; margin-bottom: 10px; padding: 15px 10px 15px 25px; border: 1px solid #dce2ec; background: white; }
.ops-list i { position: absolute; left: 9px; top: 18px; width: 8px; height: 8px; border-radius: 50%; }
.ops-list .green { background: #12804c; }.ops-list .yellow { background: #e9a700; }.ops-list .red { background: #e5452e; }
.ops-list strong,.ops-list small { display: block; }.ops-list strong { font-size: .65rem; }.ops-list small { margin-top: 6px; color: #667188; font-size: .54rem; }
.ops-map { position: relative; overflow: hidden; background-color: #dcebf0; background-image: linear-gradient(rgba(70,112,130,.1) 1px,transparent 1px),linear-gradient(90deg,rgba(70,112,130,.1) 1px,transparent 1px); background-size: 48px 48px; }
.map-label { position: absolute; color: #7a8d92; font: .55rem/1 "IBM Plex Mono",monospace; }.map-label.one { left: 20%; top: 22%; }.map-label.two { right: 18%; bottom: 24%; }
.map-road,.route-line { position: absolute; display: block; height: 8px; border-radius: 8px; transform-origin: left center; }
.map-road { background: #f7f1df; border: 1px solid #cfc7b3; }.map-road.a { width: 520px; left: -30px; top: 65%; transform: rotate(-26deg); }.map-road.b { width: 400px; left: 24%; top: 4%; transform: rotate(66deg); }
.route-line { z-index: 2; height: 3px; background: #2756d8; }.route-line.a { width: 390px; left: 4%; top: 61%; transform: rotate(-25deg); }.route-line.b { width: 280px; left: 43%; top: 17%; transform: rotate(66deg); background: #11a579; }
.vehicle { position: absolute; z-index: 3; width: 13px; height: 13px; border: 3px solid white; border-radius: 50%; background: #2756d8; box-shadow: 0 2px 7px rgba(0,0,0,.25); }.vehicle.v1 { left: 24%; top: 50%; }.vehicle.v2 { left: 55%; top: 32%; background: #11a579; }.vehicle.v3 { right: 18%; bottom: 23%; background: #e5452e; }
.ops-alert { position: absolute; z-index: 4; right: 16px; top: 18px; width: 180px; padding: 14px; border-left: 3px solid #e5452e; background: white; box-shadow: 0 12px 28px rgba(46,64,78,.16); font-size: .7rem; font-weight: 700; }.ops-alert small { display: block; margin-top: 5px; color: #78838a; font-size: .55rem; font-weight: 400; }
.ops-mockup .concept-label { color: #68747d; }

.process-grid { display: grid; border-top: 1px solid #4b4944; }
.process-step { padding: 28px 0; border-bottom: 1px solid #343532; }
.process-step .service-no { display: block; margin-bottom: 38px; }
.process-step h3 { font-size: 1.65rem; font-weight: 500; }
.process-step p { margin-top: 12px; color: #aaa79f; line-height: 1.65; }
.stack { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 42px; color: #bebbb4; font-size: .69rem; text-transform: uppercase; }

.specialty { background: var(--soft); }
.specialty-layout { display: grid; gap: 36px; }
.specialty-copy h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.specialty-copy p { max-width: 620px; margin-top: 20px; color: var(--muted); line-height: 1.65; }
.integration-signal { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.integration-signal strong { flex: 0 0 auto; color: var(--ink); font-size: 2rem; }
.integration-signal span { max-width: 350px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.integration-wall { min-width: 0; }
.integration-wall-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 0 0 13px; }
.integration-wall-head span { color: var(--ink); font-size: .68rem; font-weight: 600; text-transform: uppercase; }
.integration-wall-head small { color: var(--muted); font-size: .62rem; }
.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--white); }
.logo-item { position: relative; min-height: 90px; display: grid; place-items: center; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); outline: 0; }
.logo-item img { width: 100%; height: 38px; max-width: 105px; object-fit: contain; filter: grayscale(1); opacity: .72; }
.logo-item::before,
.logo-item::after { position: absolute; left: 50%; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 160ms ease, transform 160ms ease; }
.logo-item::before { content: attr(data-tooltip); bottom: calc(100% - 8px); max-width: calc(100vw - 32px); padding: 7px 9px; color: var(--white); background: var(--ink); font-size: .7rem; font-weight: 600; line-height: 1; white-space: nowrap; transform: translate(-50%, 4px); }
.logo-item::after { content: ""; bottom: calc(100% - 14px); width: 9px; height: 9px; background: var(--ink); transform: translate(-50%, 4px) rotate(45deg); }
.logo-item:hover::before,
.logo-item:hover::after,
.logo-item:focus-visible::before,
.logo-item:focus-visible::after { opacity: 1; }
.logo-item:hover::before,
.logo-item:focus-visible::before { transform: translate(-50%, 0); }
.logo-item:hover::after,
.logo-item:focus-visible::after { transform: translate(-50%, 0) rotate(45deg); }
.logo-item:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }

.faq-grid { border-top: 1px solid var(--ink); }
details { border-bottom: 1px solid var(--line); }
summary { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; font-size: 1.06rem; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: 0 0 auto; color: var(--coral); font: 1.4rem/1 "IBM Plex Mono", monospace; }
details[open] summary::after { content: "−"; }
details p { max-width: 780px; padding: 0 0 26px; color: var(--muted); line-height: 1.65; }

.cta-layout { display: grid; gap: 36px; }
.blue .section-index { color: #b9d0ff; }
.blue p { max-width: 600px; color: #dce5ff; font-size: 1.08rem; line-height: 1.65; }
.blue .btn { border-color: var(--white); background: var(--white); color: var(--ink); }
.blue .btn:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }

.footer { padding: 48px 0 28px; background: var(--ink); color: var(--white); }
.footer-main { display: grid; gap: 42px; }
.footer-copy { max-width: 480px; margin-top: 18px; color: #aaa79f; line-height: 1.6; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 28px; }
.footer-links a { color: #c7c4bd; font-size: .88rem; }
.footer-links a:hover { color: var(--coral); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 52px; padding-top: 20px; border-top: 1px solid #343532; color: #89867f; font-size: .74rem; }
.footer-status { color: var(--coral); font-size: .62rem; text-transform: uppercase; }

.page-hero {
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding: 118px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-hero.dark { background: var(--ink); color: var(--white); }
.page-hero.coral { background: var(--coral); color: var(--white); }
.page-hero.green { background: #cbe58d; }
.page-hero.blue { background: var(--blue); color: var(--white); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .hero-copy { max-width: 720px; }
.page-hero:not(.dark):not(.blue):not(.coral) .hero-copy { color: #4b4a44; }
.page-hero.blue .eyebrow, .page-hero.coral .eyebrow { color: #fff; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: currentColor; opacity: .66; font-size: .65rem; text-transform: uppercase; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.page-art { position: absolute; inset: 68px 0 0 52%; opacity: .92; }
.page-art .art-block { position: absolute; border: 1px solid currentColor; opacity: .28; }
.page-art .art-block:nth-child(1) { width: 310px; height: 430px; right: 10%; top: 7%; transform: rotate(8deg); }
.page-art .art-block:nth-child(2) { width: 440px; height: 260px; left: 4%; bottom: 8%; transform: rotate(-4deg); }
.page-art .art-block:nth-child(3) { width: 120px; height: 120px; left: 28%; top: 12%; background: currentColor; opacity: .12; }

.content-grid { display: grid; gap: 46px; }
.content-aside { color: var(--muted); font-size: .82rem; line-height: 1.55; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 70px; font-size: clamp(2rem, 4vw, 3.7rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 34px; font-size: 1.35rem; }
.prose p { margin-top: 18px; color: var(--muted); font-size: 1.03rem; line-height: 1.75; }
.prose ul { display: grid; gap: 12px; margin-top: 22px; padding-left: 20px; color: var(--muted); line-height: 1.6; }
.outcome-grid { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--ink); }
.outcome { padding: 24px 0; border-bottom: 1px solid var(--line); }
.outcome h3 { margin: 0; font-size: 1.2rem; }
.outcome p { margin-top: 9px; font-size: .95rem; }
.related-grid { display: grid; gap: 16px; }
.related-link { min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border: 1px solid var(--line); background: var(--white); }
.related-link span { color: var(--coral); font: .66rem/1 "IBM Plex Mono", monospace; text-transform: uppercase; }
.related-link strong { max-width: 300px; font-size: 1.45rem; font-weight: 500; }
.related-link:hover { border-color: var(--ink); }

.case-hero { background: #ddecbb; }
.case-hero-layout { display: grid; gap: 42px; align-items: center; }
.case-hero-media { position: relative; min-height: 430px; }
.case-hero-media img { position: absolute; width: 205px; border-radius: 16px; box-shadow: 0 25px 60px rgba(56,82,21,.2); }
.case-hero-media img:first-child { left: 5%; top: 8%; transform: rotate(-5deg); }
.case-hero-media img:nth-child(2) { left: 34%; top: 0; z-index: 2; }
.case-hero-media img:nth-child(3) { right: 2%; top: 10%; transform: rotate(5deg); }
.quien-hero { background: #fff0c5; }
.quien-hero .eyebrow { color: #8a5700; }
.quien-hero .case-hero-media img { border: 1px solid rgba(58,39,0,.16); box-shadow: 0 25px 60px rgba(117,75,0,.2); }
.case-gallery-four { grid-template-columns: repeat(2,minmax(0,1fr)); }
.press-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.case-facts { display: grid; border-top: 1px solid var(--ink); }
.case-fact { padding: 24px 0; border-bottom: 1px solid rgba(17,17,15,.2); }
.case-label { display: block; color: #55732f; font-size: .63rem; text-transform: uppercase; }
.case-fact strong { display: block; margin-top: 10px; font-size: 1.25rem; font-weight: 500; }
.case-gallery { display: grid; gap: 18px; }
.case-gallery figure { margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.case-gallery img { width: 100%; }
.case-gallery figcaption { padding: 14px 16px; color: var(--muted); font-size: .74rem; }

.contact-modal {
  width: min(720px, calc(100% - 24px));
  max-height: calc(100svh - 24px);
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 90px rgba(0,0,0,.32);
}
.contact-modal::backdrop { background: rgba(17,17,15,.72); backdrop-filter: blur(4px); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 26px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin-top: 12px; font-size: clamp(2.2rem, 6vw, 3.8rem); }
.modal-close { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--ink); border-radius: 2px; background: transparent; font-size: 1.5rem; }
.contact-form { padding: 26px; }
.contact-intro { color: var(--muted); line-height: 1.55; }
.contact-email { text-decoration: underline; text-underline-offset: 3px; }
.form-grid { display: grid; gap: 18px; margin-top: 22px; }
.field { display: grid; gap: 8px; margin-top: 17px; }
.form-grid .field { margin-top: 0; }
.field label { font-size: .82rem; font-weight: 600; }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #aaa79f; border-radius: 2px; outline: none; background: var(--white); }
.field input { min-height: 48px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 2px rgba(232,70,47,.16); }
.field-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .71rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.form-status { min-height: 22px; margin-top: 16px; font-size: .85rem; font-weight: 600; }
.form-status.is-error { color: #b12518; }
.form-status.is-success { color: var(--success); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.modal-actions .btn:disabled { opacity: .55; cursor: wait; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 560ms ease, transform 560ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 720px) {
  .container { width: min(calc(100% - 64px), var(--max)); }
  .section-heading { grid-template-columns: 120px minmax(0,1fr); }
  .section-heading .section-lead { grid-column: 2; }
  .service-row { grid-template-columns: 64px minmax(220px,.7fr) minmax(300px,1.15fr) 110px; align-items: start; }
  .ropero-layout { grid-template-columns: minmax(0,.85fr) minmax(500px,1.15fr); }
  .process-grid { grid-template-columns: repeat(3,1fr); }
  .process-step { padding: 28px; border-right: 1px solid #343532; }
  .process-step:first-child { padding-left: 0; }
  .process-step:last-child { border-right: 0; padding-right: 0; }
  .specialty-layout { grid-template-columns: minmax(0,.8fr) minmax(420px,1.2fr); align-items: end; }
  .logo-grid { grid-template-columns: repeat(4,1fr); }
  .faq-grid { display: grid; grid-template-columns: repeat(2,1fr); column-gap: 44px; }
  .cta-layout { grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); align-items: end; }
  .footer-main { grid-template-columns: 1.3fr .7fr; }
  .form-grid { grid-template-columns: repeat(2,1fr); }
  .content-grid { grid-template-columns: 170px minmax(0,1fr); }
  .content-aside { position: sticky; top: 100px; align-self: start; }
  .outcome-grid { grid-template-columns: repeat(2,1fr); }
  .outcome { padding: 24px; border-right: 1px solid var(--line); }
  .outcome:nth-child(odd) { padding-left: 0; }
  .outcome:nth-child(even) { border-right: 0; }
  .related-grid { grid-template-columns: repeat(3,1fr); }
  .case-hero-layout { grid-template-columns: minmax(0,.9fr) minmax(520px,1.1fr); }
  .case-facts { grid-template-columns: repeat(3,1fr); }
  .case-fact { padding: 24px; border-right: 1px solid rgba(17,17,15,.2); }
  .case-fact:first-child { padding-left: 0; }
  .case-fact:last-child { border-right: 0; }
  .case-gallery { grid-template-columns: repeat(3,1fr); }
  .case-entry { grid-template-columns: minmax(260px,.72fr) minmax(440px,1.28fr); }
  .firma-entry { grid-template-columns: minmax(440px,1.28fr) minmax(260px,.72fr); }
  .firma-entry .firma-mockup { grid-column: 1; grid-row: 1; }
  .firma-entry .case-entry-copy { grid-column: 2; grid-row: 1; }
  .quien-entry { grid-template-columns: minmax(440px,1.28fr) minmax(260px,.72fr); }
  .quien-entry .quien-phone-pair { grid-column: 1; grid-row: 1; }
  .quien-entry .case-entry-copy { grid-column: 2; grid-row: 1; }
}

@media (min-width: 1040px) {
  .nav-links, .nav-action { display: flex !important; }
  .menu-toggle { display: none; }
  .logo-grid { grid-template-columns: repeat(5,1fr); }
}

@media (min-width: 720px) and (max-width: 899px) {
  .case-phone-frame { width: 170px; }
  .firma-mockup { gap: 12px; padding: 18px; }
}

@media (max-width: 719px) {
  .hero { min-height: 0; padding: 112px 0 34px; }
  h1 { font-size: 2.75rem; }
  .hero-capabilities { display: none; }
  .hero-proof { gap: 18px; }
  .proof-item { min-height: 96px; padding: 20px 10px 20px 0; }
  .proof-item + .proof-item { padding-left: 10px; }
  .proof-item strong { font-size: 1.3rem; }
  .proof-item span { font-size: .68rem; }
  .ropero-gallery { min-height: 430px; }
  .ropero-shot { width: 170px; }
  .ropero-shot.one { left: -8%; }
  .ropero-shot.two { left: 27%; }
  .ropero-shot.three { right: -9%; }
  .case-phone-frame { width: 140px; }
  .case-phone-pair { height: 390px; }
  .case-phone-pair figure:first-child { left: 4%; }
  .case-phone-pair figure:last-child { right: 4%; }
  .firma-mockup { height: 390px; gap: 12px; padding: 24px 14px; }
  .firma-phone { border-width: 5px; border-radius: 18px; }
  .firma-top { padding: 16px 14px; }
  .firma-screen { padding: 18px 12px; }
  .firma-screen h4 { font-size: 1.05rem; }
  .firma-document,.firma-identity { margin-top: 16px; padding: 11px; }
  .firma-progress { margin: 17px 0; }
  .firma-progress span { width: 22px; height: 22px; font-size: .6rem; }
  .ops-mockup { min-height: 430px; }
  .ops-bar span { display: none; }
  .ops-layout { grid-template-columns: 112px 1fr; height: 378px; }
  .ops-list { padding: 8px; }
  .ops-list div { padding: 12px 6px 12px 18px; }
  .ops-list i { left: 6px; top: 15px; width: 6px; height: 6px; }
  .ops-alert { width: 145px; right: 10px; }
  .page-hero { min-height: 520px; }
  .page-art { inset: 68px -25% 0 30%; opacity: .38; }
  .case-hero-media { min-height: 360px; }
  .case-hero-media img { width: 170px; }
  .case-hero-media img:first-child { left: -8%; }
  .case-hero-media img:nth-child(2) { left: 25%; }
  .case-hero-media img:nth-child(3) { right: -8%; }
  .case-gallery-four { grid-template-columns: 1fr; }
  .contact-form, .modal-head { padding: 22px; }
  .field-meta { display: grid; gap: 4px; }
}

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