.hero {
  color:var(--white);
  background:var(--ink);
}

.hero-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.02fr);
  align-items:center;
  column-gap:clamp(12px,2vw,36px);
  padding-top:clamp(44px,3.5vw,65px);
  padding-bottom:clamp(44px,3.5vw,65px);
}

.hero-copy {
  position:relative;
  z-index:1;
}

.hero .eyebrow {
  margin-bottom:22px;
}

.hero h1 {
  font-size:clamp(64px,6.9vw,108px);
  letter-spacing:-.055em;
  line-height:.996;
}

.hero h1 span,.hero h1 em {
  display:block;
}

.hero h1 em {
  color:var(--orange);
  font-style:normal;
}

.hero-lead {
  color:#bec5ce;
  font-size:clamp(17px,1.38vw,21px);
  line-height:1.55;
  max-width:49ch;
  margin-top:25px;
}

.hero-actions {
  display:flex;
  gap:23px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:31px;
}

.hero-explore {
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  font-size:15px;
  font-weight:600;
  color:#eef0f4;
}

.hero-explore:hover {
  color:var(--orange);
}

.play-sign {
  width:19px;
  height:19px;
  display:grid;
  place-items:center;
  border:1px solid #afb5bf;
  border-radius:50%;
}

.play-sign:before {
  content:"";
  border-style:solid;
  border-width:3px 0 3px 5px;
  border-color:transparent transparent transparent currentColor;
  margin-left:2px;
}

.hero-rail {
  border-top:1px solid #ffffff26;
  background:#151a22;
}

.hero-rail-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-block:19px;
}

.rail-title {
  font:500 10.5px var(--mono);
  text-transform:uppercase;
  letter-spacing:.1em;
  color:#acb3bf;
}

.hero-rail a {
  display:flex;
  align-items:center;
  gap:11px;
  color:#e5e7eb;
  font-size:15px;
}

.hero-rail a svg:first-child {
  color:#dd9a6b;
}

.hero-rail a svg:last-child {
  color:#9da4af;
}

.hero-rail a:hover {
  color:var(--orange);
}

.split-head {
  display:grid;
  grid-template-columns:1.2fr .75fr;
  gap:clamp(30px,6.8vw,125px);
  align-items:end;
}

.split-head>p {
  color:var(--muted);
  font-size:clamp(17px,1.45vw,21px);
  max-width:48ch;
}

.section-pad .eyebrow,.foundation .eyebrow,.closing .eyebrow {
  margin-bottom:19px;
}

.problem,.applications,.method,.faq {
  background:var(--paper);
}

.records {
  margin-top:clamp(30px,4vw,64px);
  border-top:1px solid #aaaead;
}

.records-account {
  display:flex;
  align-items:center;
  gap:9px;
  padding:16px 0;
  border-bottom:1px solid var(--line);
  font-weight:600;
}

.records-account svg {
  color:var(--copper);
}

.records-account span {
  margin-left:auto;
  color:var(--muted);
  font:12px/1.4 var(--mono);
}

.records-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-bottom:1px solid var(--line);
}

.records-grid article {
  padding:27px clamp(18px,2.5vw,44px) 32px 0;
}

.records-grid article+article {
  padding-left:clamp(18px,2.5vw,44px);
  border-left:1px solid var(--line);
}

.record-area {
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:22px;
  font-size:14px;
  color:var(--muted);
}

.record-area svg {
  color:var(--copper);
}

.records h3 {
  font-size:clamp(21px,2vw,30px);
  line-height:1.2;
  letter-spacing:-.04em;
}

.records p {
  color:var(--muted);
  font-size:16px;
  margin-top:10px;
  max-width:36ch;
}

.architecture {
  background:var(--ink);
  color:var(--white);
}

.architecture .split-head>p,.arch-grid p {
  color:#bdc4ce;
}

.arch-grid {
  padding:0;
  list-style:none;
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:19px;
  margin:52px 0 30px;
}

.arch-grid li {
  min-width:0;
  position:relative;
}

.arch-icon {
  width:53px;
  height:53px;
  border:1px solid #73533e;
  display:grid;
  place-items:center;
  color:var(--orange);
  background:#231f1c;
  border-radius:5px;
}

.arch-grid li:not(:last-child):after {
  content:"";
  border-top:1px dashed #626367;
  position:absolute;
  left:60px;
  right:-12px;
  top:26px;
}

.arch-grid h3 {
  font-size:clamp(16px,1.45vw,22px);
  letter-spacing:-.035em;
  margin:18px 0 8px;
}

.arch-grid p {
  font-size:15px;
  line-height:1.5;
}

.controls-band {
  display:flex;
  gap:clamp(18px,3.8vw,75px);
  flex-wrap:wrap;
  align-items:center;
  border-block:1px solid #ffffff26;
  padding-block:15px;
  color:#c6cbd2;
  font-size:14px;
}

.controls-band strong {
  color:var(--white);
}

.controls-band span:before {
  content:"";
  width:6px;
  height:6px;
  border:1px solid #ce9165;
  display:inline-block;
  margin-right:7px;
}

.architecture .text-link {
  margin-top:24px;
}

.app-list {
  border-top:1px solid #abb0ae;
  margin-top:42px;
}

.app-list details,.faq details {
  border-bottom:1px solid var(--line);
}

.app-list summary,.faq summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.app-list summary {
  padding:24px 0;
  font:800 clamp(21px,2.2vw,32px)/1.2 var(--display);
  letter-spacing:-.038em;
}

.app-list summary>span:first-child {
  display:flex;
  align-items:center;
  gap:16px;
}

.app-list summary svg {
  color:var(--copper);
}

.plus {
  width:16px;
  height:16px;
  position:relative;
  flex:none;
}

.plus:before,.plus:after {
  content:"";
  position:absolute;
  top:7px;
  left:0;
  width:16px;
  height:2px;
  background:currentColor;
}

.plus:after {
  transform:rotate(90deg);
}

details[open]>summary .plus:after {
  transform:rotate(0deg);
}

.app-content {
  display:grid;
  grid-template-columns:.8fr 1.15fr;
  align-items:start;
  gap:clamp(24px,6vw,92px);
  padding:12px 0 34px 38px;
}

.app-question {
  padding:17px 20px;
  border-left:2px solid var(--orange);
  background:#efece7;
}

.app-question p {
  font:11px/1.5 var(--mono);
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--copper);
  margin-bottom:9px;
}

.app-question h3 {
  font-size:clamp(20px,2vw,29px);
  letter-spacing:-.045em;
  line-height:1.22;
}

.app-content dl {
  margin:0;
}

.app-content dl>div {
  display:grid;
  grid-template-columns:118px 1fr;
  gap:10px;
  border-top:1px solid var(--line);
  padding:9px 0;
  line-height:1.48;
}

.app-content dt {
  color:var(--copper);
  font-size:14px;
}

.app-content dd {
  margin:0;
  font-size:16px;
}

.foundation {
  background:#e9eae5;
  padding-block:clamp(56px,5.2vw,92px);
}

.foundation-grid,.method-grid,.faq-grid {
  display:grid;
  grid-template-columns:.85fr 1fr;
  gap:clamp(35px,8vw,150px);
}

.foundation-grid>.section-title,.foundation-grid .section-title {
  max-width:12ch;
}

.foundation-grid>div>p:not(.eyebrow),.method-grid>div>p:not(.eyebrow) {
  color:var(--muted);
  max-width:48ch;
  margin-top:20px;
}

.foundation-links {
  border-top:1px solid #bfc3be;
  align-self:center;
}

.foundation-links a {
  display:flex;
  align-items:flex-start;
  gap:17px;
  padding:22px 0;
  border-bottom:1px solid #bfc3be;
}

.foundation-links svg:first-child {
  color:var(--copper);
  margin-top:4px;
}

.foundation-links svg:last-child {
  margin-left:auto;
}

.foundation-links h3 {
  font-size:24px;
  line-height:1.25;
  letter-spacing:-.04em;
}

.foundation-links p {
  margin-top:6px;
  max-width:46ch;
  color:var(--muted);
  font-size:16px;
}

.foundation-links a:hover h3 {
  text-decoration:underline;
  text-underline-offset:4px;
}

.method-grid ol {
  padding:0;
  margin:0;
  list-style:none;
  border-top:1px solid #b5b9b7;
}

.method-grid li {
  display:flex;
  gap:20px;
  padding:15px 0;
  border-bottom:1px solid var(--line);
}

.method-grid li>span {
  color:var(--copper);
  font:13px var(--mono);
  margin-top:4px;
}

.method-grid li h3 {
  font-size:21px;
  letter-spacing:-.035em;
}

.method-grid li p {
  margin-top:4px;
  color:var(--muted);
  font-size:16px;
}

.faq {
  padding:0 0 clamp(64px,7vw,110px);
}

.faq-grid {
  border-top:1px solid var(--line);
  padding-top:48px;
}

.faq summary {
  padding:17px 0;
  font-size:18px;
  font-weight:bold;
}

.faq details:first-child {
  border-top:1px solid var(--line);
}

.faq details p {
  color:var(--muted);
  padding:0 0 20px;
  max-width:62ch;
}

.closing {
  background:var(--ink);
  color:var(--white);
}

.closing-content {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:40px;
  padding-block:clamp(54px,6vw,100px);
}

.closing h2 {
  font-size:clamp(35px,4.1vw,65px);
  line-height:1.06;
  letter-spacing:-.055em;
  max-width:20ch;
}

.closing .cta {
  flex:none;
}

@media(min-width:1660px) {
  .hero-grid {
    padding-block:85px;
  }
  .hero h1 {
    font-size:114px;
  }
}

@media(max-width:1050px) {
  .hero h1 {
    font-size:clamp(60px,7.9vw,84px);
  }
  .hero-actions {
    gap:8px 18px;
  }
  .hero-rail-inner {
    gap:12px;
  }
  .hero-rail a {
    gap:7px;
  }
  .split-head {
    gap:28px;
  }
  .arch-grid {
    grid-template-columns:repeat(3,1fr);
    gap:27px;
  }
  .arch-grid li:nth-child(3):after {
    display:none;
  }
  .arch-grid li:not(:last-child):after {
    right:-19px;
  }
  .app-content {
    gap:24px;
  }
  .wide-break {
    display:none;
  }
}

@media(max-width:760px) {
  .hero-grid {
    grid-template-columns:1fr;
    gap:24px;
    padding-top:45px;
    padding-bottom:27px;
  }
  .hero h1 {
    font-size:clamp(58px,10.8vw,81px);
  }
  .hero .eyebrow {
    margin-bottom:16px;
  }
  .hero-lead {
    margin-top:19px;
    max-width:46ch;
    font-size:17px;
  }
  .hero-actions {
    margin-top:21px;
    gap:10px 18px;
  }
  .hero .sync-scene {
    max-width:540px;
    justify-self:center;
  }
  .hero-rail-inner {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:start;
    gap:12px;
    padding-block:15px;
  }
  .rail-title {
    grid-column:1/-1;
  }
  .hero-rail a {
    font-size:13px;
    line-height:1.35;
    align-items:center;
  }
  .hero-rail a svg:last-child {
    display:none;
  }
  .hero-rail a svg:first-child {
    width:17px;
  }
  .split-head,.foundation-grid,.method-grid,.faq-grid {
    grid-template-columns:1fr;
    gap:22px;
  }
  .split-head>p {
    max-width:55ch;
  }
  .records-grid {
    grid-template-columns:1fr;
  }
  .records-grid article,.records-grid article+article {
    padding:15px 0 20px;
    border-left:0;
  }
  .records-grid article+article {
    border-top:1px solid var(--line);
  }
  .record-area {
    margin-bottom:8px;
  }
  .records p {
    max-width:52ch;
  }
  .records-account {
    font-size:15px;
  }
  .records-account span {
    font-size:10px;
  }
  .arch-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:25px 17px;
    margin:32px 0 24px;
  }
  .arch-grid li:not(:last-child):after {
    right:-11px;
  }
  .arch-grid li:nth-child(3):after {
    display:block;
  }
  .arch-grid li:nth-child(2n):after {
    display:none;
  }
  .controls-band {
    gap:10px 20px;
  }
  .controls-band strong {
    width:100%;
  }
  .app-content {
    grid-template-columns:1fr;
    padding:0 0 22px;
  }
  .app-content dl>div {
    grid-template-columns:102px 1fr;
  }
  .app-list summary>span:first-child {
    gap:10px;
  }
  .app-list summary {
    padding:20px 0;
  }
  .app-list {
    margin-top:24px;
  }
  .closing-content {
    align-items:start;
    flex-direction:column;
    gap:23px;
  }
  .method-grid ol,.foundation-links {
    margin-top:8px;
  }
  .faq-grid {
    padding-top:35px;
  }
  .faq h2 br {
    display:none;
  }
  .faq-grid h2 {
    letter-spacing:-.055em;
  }
  .faq-grid h2 br:after {
    content:" ";
  }
}

@media(max-width:450px) {
  .hero-rail-inner {
    column-gap:8px;
  }
  .hero-rail a {
    font-size:12px;
    gap:5px;
  }
  .hero-rail a span {
    max-width:12ch;
  }
  .hero-actions {
    flex-direction:column;
    align-items:flex-start;
    gap:3px;
  }
  .hero-explore {
    min-height:39px;
  }
  .hero-grid {
    gap:7px;
  }
  .arch-grid h3 {
    font-size:18px;
  }
  .app-list summary>span:first-child svg {
    width:18px;
  }
  .app-content dt {
    font-size:13px;
  }
  .faq summary {
    font-size:16px;
  }
}

.hero-copy:lang(en) {
  container-type: inline-size;
}

.hero h1:lang(en) {
  font-size: clamp(40px, 14.6cqw, 108px);
}

.sync-scene {
  --sc-ink: #f6f7fc;
  --sc-accent: #ff9c59;
  width: 100%;
  min-width: 0;
  max-width: 680px;
  margin: 0 auto;
  color: var(--sc-ink);
  align-self: center;
}
.sc-art {
  width: 100%;
  height: auto;
  display: block;
}
.sc-note { fill: #e7e7e7; }
.sc-note path { stroke: #a7aaad; stroke-width: .9; }
.sc-note circle { fill: #ffb27b; stroke: #1a2229; stroke-width: 1; }
.sc-note text {
  font: 500 14px/1 "DM Sans", Arial, sans-serif;
  letter-spacing: .015em;
}
.sc-core, .sc-model, .sc-operation, .sc-base { transition: transform .8s ease; }
.sc-channel { fill: none; stroke: #c1b8b0; stroke-width: 1; stroke-dasharray: 2 3; }
.sc-signal {
  fill: none;
  stroke: var(--sc-accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 12 68;
  opacity: .65;
}
.sc-ready[data-stage="0"] .sc-model { transform: translateY(-5px); }
.sc-ready[data-stage="0"] .sc-operation { transform: translateY(-10px); }
.sc-relations { transition: opacity .75s ease; }
.sc-ready[data-stage="0"] .sc-relations { opacity: .32; }
.sc-ready[data-stage="0"] .sc-label-source text,
.sc-ready[data-stage="1"] .sc-label-model text,
.sc-ready[data-stage="2"] .sc-label-operation text { fill: #ffbd90; }
.sc-ready[data-stage="0"] .sc-label-source path,
.sc-ready[data-stage="1"] .sc-label-model path,
.sc-ready[data-stage="2"] .sc-label-operation path { stroke: #ffac71; }
.sc-ready[data-stage="0"] .sc-bridges-context { opacity: .3; }
.sc-ready[data-stage="2"] .sc-bridges-source { opacity: .5; }
.sc-ready[data-stage="2"] .sc-core { transform: translateY(-9px); }
.sc-ready[data-running="true"]:is([data-stage="0"], [data-stage="1"]) .sc-bridges-source .sc-signal,
.sc-ready[data-running="true"]:is([data-stage="1"], [data-stage="2"]) .sc-bridges-context .sc-signal {
  animation: sc-data-travel 2.7s linear infinite;
}
@keyframes sc-data-travel { to { stroke-dashoffset: -80; } }
.sc-caption {
  width: min(92%, 480px);
  margin: 3px auto 0;
  text-align: left;
}
.sc-ready .sc-caption { display: grid; }
.sc-controls {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(200,207,213,.23);
}
.sc-controls[hidden] { display: none; }
.sc-steps, .sc-playback { display: flex; align-items: center; }
.sc-steps { gap: clamp(10px, 1.6vw, 22px); }
.sc-steps button,
.sc-playback button {
  appearance: none;
  box-sizing: border-box;
  background: transparent;
  color: #c4c8ce;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font: inherit;
  margin: 0;
}
.sc-steps button {
  position: relative;
  font-size: 13px;
  line-height: 1.3;
  min-height: 36px;
  padding: 0 1px;
}
.sc-steps button[aria-pressed="true"] { color: #ffb780; }
.sc-steps button[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  inset: auto 0 -6px;
  height: 2px;
  background: var(--sc-accent);
}
.sc-playback { gap: 3px; }
.sc-playback button { display: grid; place-items: center; width: 32px; height: 32px; }
.sc-playback svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sc-steps button:hover, .sc-playback button:hover { color: #fff; }
.sc-playback button:hover { background: rgba(190,196,205,.09); }
.sc-steps button:focus-visible, .sc-playback button:focus-visible { outline: 2px solid #82e9f0; outline-offset: 2px; }
.sc-play-ico, [data-paused="true"] .sc-pause-ico { display: none; }
[data-paused="true"] .sc-play-ico { display: block; }
.sync-scene .sc-step-detail {
  color: #c4c8ce;
  font: 400 14px/1.45 "DM Sans", Arial, sans-serif;
  margin: 9px 0 0;
}
.sc-ready .sc-step-detail { grid-area: 2/1; visibility: hidden; }
.sc-ready[data-stage="0"] [data-sc-caption="0"],
.sc-ready[data-stage="1"] [data-sc-caption="1"],
.sc-ready[data-stage="2"] [data-sc-caption="2"] { visibility: visible; }
@media (min-width: 601px) and (max-width: 1050px) {
  .sc-note text { font-size: 20px; }
}
@media (max-width: 600px) {
  .sc-note text { font-size: 21px; }
  .sc-caption { width: 100%; }
  .sc-steps button { min-height: 44px; }
  .sc-steps { gap: clamp(10px,3.3vw,18px); }
  .sc-playback button { width: 36px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .sync-scene *, .sync-scene *::after { animation: none !important; transition: none !important; }
}

.ydemo {
  --yd-ink: #1c222b;
  --yd-muted: #535b64;
  --yd-line: #d5d4ce;
  --yd-copper: #874423;
  --yd-orange: #ff9c59;
  --yd-paper: #f5f4ef;
  color: var(--yd-ink);
  background: var(--yd-paper);
  padding: clamp(68px, 8vw, 120px) 0;
}
.ydemo [hidden] { display: none !important; }
.ydemo, .ydemo * { box-sizing: border-box; }
.yd-wrap { width: min(1240px, calc(100% - 2 * clamp(20px, 5vw, 84px))); margin: 0 auto; }
.yd-intro { display: grid; grid-template-columns: 1.05fr .7fr; gap: 9%; align-items: end; margin-bottom: 38px; }
.yd-overline, .yd-meta, .yd-graph-head > span, .yd-entity-category, .yd-node-code {
  font: 500 11px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .045em;
}
.yd-overline, .yd-meta { display: block; text-transform: uppercase; }
.yd-overline { color: var(--yd-copper); letter-spacing: .09em; }
.yd-intro h2 {
  margin: 12px 0 0; max-width: 14em; font: 800 clamp(37px, 4.6vw, 69px)/1.04 Manrope, sans-serif;
  letter-spacing: -.065em; text-wrap: balance;
}
.yd-intro > p, .yd-question p { margin: 0; color: var(--yd-muted); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; }
.yd-shell { overflow: clip; border: 1px solid #c7c7c0; border-radius: 8px; background: #fffefa; }
.yd-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 17px clamp(16px, 3vw, 34px); background: #20252d; color: #fff; }
.yd-toolbar-title, .yd-demo-label, .yd-entity-category, .yd-graph-legend, .yd-state { display: flex; align-items: center; gap: 10px; }
.yd-toolbar-title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.yd-toolbar-title svg { width: 24px; height: 24px; color: var(--yd-orange); }
.yd-demo-label {
  border: 1px solid #68605b; border-radius: 4px; padding: 4px 8px; background: #2a2828;
  color: #ffbc8d; font: 500 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.yd-explorer { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); border-bottom: 1px solid var(--yd-line); }
.yd-graph {
  display: flex; flex-direction: column; min-width: 0; padding: clamp(18px, 2.5vw, 32px);
  background-color: #f5f4ef; background-image: radial-gradient(#9a9a932e .85px, transparent .85px); background-size: 14px 14px;
}
.yd-graph-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.yd-graph-head h3 { font-size: 16px; line-height: 1.25; margin: 0; letter-spacing: -.025em; }
.yd-graph-head > span, .yd-entity-category, .yd-meta { color: var(--yd-muted); }
.yd-map { position: relative; flex: 1; min-height: 250px; max-height: 370px; margin: auto 0; }
.yd-edges { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.yd-edges path { stroke: #b9bab5; stroke-width: 1.5px; }
.yd-edges .yd-related { stroke: var(--yd-copper); stroke-width: 2px; }
.yd-node {
  position: absolute; transform: translate(-50%, -50%); width: 28%; max-width: 146px; min-height: 76px;
  display: grid; grid-template-columns: 25px minmax(0, 1fr); align-content: center; column-gap: 8px; row-gap: 4px;
  padding: 11px 9px; border: 1px solid #b8b9b4; border-radius: 5px; background: #fffefa; color: var(--yd-ink);
  text-decoration: none; box-shadow: 0 2px 3px #18233808; transition: border-color .15s, background .15s;
}
.yd-node--cliente, .yd-node--responsable { left: 16.67%; }
.yd-node--contrato, .yd-node--factura { left: 50%; }
.yd-node--servicio, .yd-node--solicitud { left: 83.33%; }
.yd-node--cliente, .yd-node--contrato, .yd-node--servicio { top: 30%; }
.yd-node--responsable, .yd-node--factura, .yd-node--solicitud { top: 70%; }
.yd-node-icon { grid-row: 1 / 3; align-self: center; display: grid; place-items: center; }
.yd-node-icon svg { width: 23px; height: 23px; }
.yd-node-type { font-weight: 700; line-height: 1.2; font-size: 14px; letter-spacing: -.02em; }
.yd-node-code { color: var(--yd-muted); font-size: 10px; }
.yd-node[aria-current="true"] { background: #fff1e5; border-color: var(--yd-copper); box-shadow: inset 0 0 0 1px var(--yd-copper); }
.yd-node[aria-current="true"] .yd-node-icon, .yd-node[aria-current="true"] .yd-node-code { color: var(--yd-copper); }
.yd-node:hover, .yd-relation:hover { border-color: var(--yd-copper); background: #fbf2e9; color: var(--yd-ink); }
.yd-graph-legend { margin: 8px 0 0; color: var(--yd-muted); font-size: 12px; }
.yd-graph-legend span { width: 21px; height: 2px; background: var(--yd-copper); }
.yd-inspector { border-left: 1px solid var(--yd-line); min-width: 0; }
.yd-detail { padding: clamp(20px, 2.5vw, 32px); scroll-margin-top: 90px; }
.yd-detail + .yd-detail { border-top: 1px solid var(--yd-line); }
.ydemo[data-mode="interactive"] .yd-detail { border-top: 0; }
.yd-entity-category { text-transform: uppercase; gap: 7px; color: var(--yd-copper); }
.yd-entity-category svg { width: 16px; height: 16px; }
.yd-detail h4, .yd-result h4 { margin: 9px 0; font: 800 clamp(23px, 2vw, 31px)/1.14 Manrope, sans-serif; letter-spacing: -.045em; }
.yd-fact, .yd-detail dd, .yd-result p, .yd-evidence, .yd-fallback { font-size: 15px; line-height: 1.48; }
.yd-fact { margin: 0; color: var(--yd-muted); }
.yd-detail dl { margin: 16px 0 0; border-top: 1px solid var(--yd-line); }
.yd-detail dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 8px; }
.yd-detail dt { color: var(--yd-muted); font-size: 13px; }
.yd-detail dd { margin: 0; text-align: right; font-size: 14px; }
.yd-detail .yd-permission { display: block; }
.yd-detail .yd-permission dd { margin-top: 3px; text-align: left; }
.yd-relations { margin-top: 15px; }
.yd-relations .yd-meta { margin-bottom: 4px; }
.yd-relation { display: block; padding: 5px 0; font-size: 13px; line-height: 1.35; color: var(--yd-copper); text-decoration: none; }
.yd-relation > span:first-child { color: var(--yd-muted); }
.yd-offline-note, .yd-policy { padding-left: 10px; border-left: 2px solid var(--yd-copper); color: var(--yd-copper); font-size: 14px; }
.yd-workflow {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(225px, .6fr); align-items: start; column-gap: 40px; row-gap: 20px;
  padding: clamp(22px, 3vw, 42px); background: #fffefa;
}
.yd-question h3 { margin: 7px 0 10px; max-width: 25em; font: 800 clamp(24px, 2.75vw, 39px)/1.12 Manrope, sans-serif; letter-spacing: -.05em; }
.yd-question p { font-size: 15px; }
.yd-controls { align-self: center; min-width: 0; }
.yd-controls label { display: block; font-size: 13px; color: var(--yd-muted); margin-bottom: 6px; }
.yd-controls select {
  width: 100%; min-height: 44px; margin: 0; border: 1px solid #a5a59f; border-radius: 4px; padding: 7px 30px 7px 12px;
  font: inherit; font-size: 14px; color: var(--yd-ink); background-color: #fffefa; cursor: pointer;
}
.yd-result { grid-column: 1 / -1; border-top: 1px solid var(--yd-line); padding-top: 15px; }
.yd-result p, .yd-fallback p { margin: 7px 0 0; }
.yd-result [data-stage] { max-width: 58em; }
.yd-result .yd-state { margin: 0 0 8px; color: var(--yd-copper); font: 600 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.yd-state > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.yd-meter { display: flex; gap: 4px; margin: 12px 0; max-width: 160px; }
.yd-meter i { height: 3px; background: var(--yd-line); flex: 1; }
.yd-meter .yd-filled { background: var(--yd-copper); }
.yd-evidence { margin-top: 16px; }
.yd-evidence h5 { margin: 0; font: inherit; font-weight: 700; }
.yd-evidence ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yd-evidence li { padding: 10px 15px 0 0; }
.yd-evidence li + li { border-left: 1px solid var(--yd-line); padding-left: 15px; }
.yd-evidence li b, .yd-evidence li span, .yd-receipt b, .yd-receipt span { display: block; }
.yd-evidence li span { color: var(--yd-muted); margin-top: 4px; }
.yd-receipt { display: grid; gap: 4px; margin-top: 15px; padding: 12px 15px; border-left: 3px solid #995326; background: #f8f0e7; font-size: 14px; }
.yd-actions { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.yd-actions button { font: inherit; font-size: 14px; cursor: pointer; }
.yd-primary { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; padding: 9px 14px; background: #20252d; border: 1px solid #20252d; color: white; border-radius: 4px; }
.yd-primary svg { width: 18px; height: 18px; color: var(--yd-orange); }
.yd-primary:hover { background: #343a44; }
.yd-reset { border: 0; background: transparent; color: var(--yd-ink); min-height: 44px; padding: 8px; text-decoration: underline; text-underline-offset: 3px; }
.ydemo :is(a,button,select,.yd-detail):focus-visible { outline: 3px solid #146373; outline-offset: 3px; }
.yd-fallback { grid-column: 1/-1; color: var(--yd-muted); }
.ydemo[data-mode="interactive"] .yd-fallback { display: none; }
@media (min-width: 761px) and (max-width: 1050px) {
  .yd-explorer { grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr); }
  .yd-node { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; }
  .yd-node-icon svg { width: 20px; height: 20px; }
  .yd-node-type { font-size: 13px; }
}
@media (max-width: 760px) {
  .yd-intro { grid-template-columns: 1fr; gap: 16px; margin-bottom: 25px; }
  .yd-explorer { grid-template-columns: 1fr; }
  .yd-inspector { border-left: 0; border-top: 1px solid var(--yd-line); }
  .yd-map { flex: none; height: 240px; min-height: 0; }
  .yd-workflow { grid-template-columns: 1fr; gap: 16px; }
  .yd-controls { max-width: 300px; }
}
@media (max-width: 500px) {
  .yd-toolbar { gap: 8px; padding: 13px 14px; }
  .yd-toolbar-title { font-size: 13px; gap: 6px; }
  .yd-toolbar-title svg { width: 18px; }
  .yd-demo-label { font-size: 9px; padding: 4px 5px; }
  .yd-graph { padding: 16px; }
  .yd-graph-head { margin-bottom: 16px; }
  .yd-map { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; height: auto; margin: 0; }
  .yd-edges, .yd-graph-legend { display: none; }
  .yd-node { position: static; transform: none; min-width: 0; width: auto; max-width: none; min-height: 55px; padding: 7px; gap: 4px; grid-template-columns: 22px minmax(0,1fr); }
  .yd-node-icon svg { width: 19px; height: 19px; }
  .yd-node-type { font-size: 13px; }
  .yd-node-code { font-size: 10px; }
  .yd-detail, .yd-workflow { padding: 18px 16px; }
  .yd-evidence ul { grid-template-columns: 1fr; }
  .yd-evidence li + li { border-left: 0; border-top: 1px solid var(--yd-line); margin-top: 9px; padding-left: 0; }
  .yd-relation { padding: 7px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ydemo * { transition: none !important; animation: none !important; }
}


/* Keep the result footprint stable while the asynchronous illustration runs. */
.yd-stage-stack { display: grid; }
.yd-stage-stack > [data-stage] { grid-area: 1 / 1; align-self: start; }
.yd-workflow[data-state="querying"][data-scenario="complete"] [data-stage="available"][hidden],
.yd-workflow[data-state="querying"][data-scenario="offline"] [data-stage="blocked"][hidden] {
  display: block !important;
  visibility: hidden;
}
.yd-workflow[data-state="querying"] .yd-evidence li { position: relative; }
.yd-workflow[data-state="querying"] .yd-evidence li span { visibility: hidden; }
.yd-workflow[data-state="querying"] .yd-evidence li::after {
  content: attr(data-pending);
  display: block;
  position: absolute;
  font-size: 14px;
  color: var(--yd-muted);
  top: 36px;
}
