/* A single illustrated canvas; labels and directional circuits remain live text. */
#architecture {
  --circuit: #64dfeb;
  --circuit-line: #64dfeb50;
  background: #080d10;
}
#architecture > .texture { opacity: .18; background-size: 80px 80px; }
#architecture .shell { position: relative; }
#architecture .head { max-width: 860px; }
#architecture .eyebrow { color: #8eb8c0; }
#architecture .lede { color: #a3b3b9; }
#architecture .loops {
  position: relative; isolation: isolate; display: grid; gap: 0;
  margin-top: 44px; padding: 30px 36px 34px;
  border: 1px solid #26363e; border-radius: 24px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #11212880, transparent 65%), #080d10;
}
#architecture .loops::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent 24.95%, #a4dbef05 25%, transparent 25.05%, transparent 74.95%, #a4dbef05 75%, transparent 75.05%);
}
#architecture .loop, #architecture .loop--offline {
  position: relative; z-index: 2; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none;
}
#architecture .loop-tag, #architecture .loop--offline .loop-tag {
  display: inline-flex; gap: 11px; align-items: center; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: #e4f8fb; font-size: 16px; letter-spacing: -.02em;
}
#architecture .loop-tag::before {
  content: '01'; color: var(--circuit); font: 10px var(--mono); letter-spacing: .06em;
  padding: 7px 8px; border: 1px solid var(--circuit-line); border-radius: 4px;
}
#architecture .loop-note { color: #8eabb3; margin-left: 20px; font-size: 11px; }
#architecture .chain {
  position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 23px; gap: 20px; padding: 0 0 25px; overflow: visible;
  counter-reset: stage;
}
#architecture .chain::before {
  content: ''; position: absolute; left: 7.2%; right: 7.2%; bottom: 0; height: 15px;
  border: 1px solid var(--circuit-line); border-top: 0; border-radius: 0 0 16px 16px;
}
#architecture .chain::after {
  content: ''; position: absolute; left: calc(7.2% - 3px); bottom: 12px;
  width: 6px; height: 6px; border-top: 1px solid var(--circuit); border-left: 1px solid var(--circuit); transform: rotate(45deg);
}
#architecture .chain-step { position: relative; min-width: 0; padding: 0; text-align: center; counter-increment: stage; }
#architecture .chain-step + .chain-step::before {
  content: '→'; position: absolute; top: 17px; left: -26px; width: 32px; height: auto;
  color: var(--circuit); opacity: .65; background: transparent; font-size: 20px; line-height: 1;
}
#architecture .chain-box, #architecture .loop--offline .chain-box {
  display: flex; flex-direction: column; align-items: center; gap: 11px;
  position: relative; padding: 0; border: 0; border-radius: 0;
  color: #e9f7fa; background: transparent; font-size: 14px; line-height: 1.4; font-weight: 500;
}
#architecture .chain-box::before {
  content: ''; display: block; width: 48px; height: 48px;
  background: var(--circuit);
  -webkit-mask: var(--node-icon) center / 26px 26px no-repeat;
  mask: var(--node-icon) center / 26px 26px no-repeat;
}
#architecture .chain-box::after {
  content: counter(stage, decimal-leading-zero); position: absolute; top: 0; left: calc(50% + 24px);
  color: #718d98; font: 8px var(--mono);
}
#architecture .chain-sub { margin-top: 5px; min-height: 30px; padding: 0; color: #91a8b3; font-size: 10px; line-height: 1.6; }
#architecture .loop-core {
  position: relative; width: 100%; max-width: none; height: 360px;
  margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none;
  background: transparent; color: #e7f8fc; font-weight: 400;
}
#architecture .arch-core-art {
  position: absolute; width: min(780px, 100%); height: 100%; inset: 0; margin: auto;
  object-fit: cover; object-position: center 40%; pointer-events: none;
  mask-image: radial-gradient(ellipse 64% 62% at center, #000 40%, transparent 80%);
}
#architecture .core-copy {
  position: absolute; z-index: 1; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: min(100%, 480px); padding: 13px 22px 0; text-align: center;
  background: linear-gradient(transparent, #080d10 46%);
}
#architecture #coreName { color: #e4fbff; font-size: 20px; font-weight: 500; opacity: 1; line-height: 1.5; letter-spacing: -.025em; }
#architecture #coreSub { color: #91b3c0; font-size: 11px; font-weight: 400; opacity: 1; margin-top: 5px; line-height: 1.6; }
#architecture .loop-core::before, #architecture .loop-core::after {
  content: ''; position: absolute; z-index: 1; left: 50%; width: 1px; height: 31px;
  background: linear-gradient(var(--circuit-line), transparent);
}
#architecture .loop-core::before { top: 0; }
#architecture .loop-core::after { bottom: 0; height: 12px; display: none; }
#architecture .loop--offline { --circuit: #afccea; --circuit-line: #afccea45; padding-top: 20px; }
#architecture .loop--offline .loop-tag::before { content: '02'; }

@media (max-width: 900px) {
  #architecture .loops { padding: 26px; }
  #architecture .loop-note { display: block; margin: 10px 0 0 42px; }
  #architecture .chain { gap: 14px; }
  #architecture .chain-box { font-size: 12px; }
  #architecture .chain-step + .chain-step::before { left: -22px; }
  #architecture .chain-sub { font-size: 10px; }
  #architecture .loop-core { height: 310px; }
}
@media (max-width: 640px) {
  #architecture .loops { margin-top: 28px; padding: 22px 18px; border-radius: 18px; }
  #architecture .loop-tag { font-size: 15px; }
  #architecture .loop-note { font-size: 11px; line-height: 1.7; }
  #architecture .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; padding: 0; margin-top: 24px; }
  #architecture .chain-step { min-height: 112px; }
  #architecture .chain-step:nth-child(3) { grid-column: 2; grid-row: 2; }
  #architecture .chain-step:nth-child(4) { grid-column: 1; grid-row: 2; }
  #architecture .chain-step:nth-child(5) { grid-column: 1; grid-row: 3; }
  #architecture .chain-step:nth-child(6) { grid-column: 2; grid-row: 3; }
  #architecture .chain-box, #architecture .loop--offline .chain-box { font-size: 14px; gap: 8px; }
  #architecture .chain-box::before { height: 36px; width: 36px; mask-size: 26px 26px; -webkit-mask-size: 26px 26px; }
  #architecture .chain-box::after { left: calc(50% + 21px); }
  #architecture .chain-sub { font-size: 11px; min-height: 0; }
  #architecture .chain-step + .chain-step::before { top: 9px; left: -29px; }
  #architecture .chain-step:nth-child(3)::before, #architecture .chain-step:nth-child(5)::before { content: '↓'; top: -25px; left: calc(50% - 16px); }
  #architecture .chain-step:nth-child(4)::before { content: '←'; left: auto; right: -29px; }
  #architecture .chain::before, #architecture .chain::after { display: none; }
  #architecture .loop-core { height: 270px; margin-top: 10px; }
  #architecture .arch-core-art { width: calc(100% + 36px); max-width: none; left: -18px; object-fit: cover; }
  #architecture .core-copy { width: calc(100% + 20px); padding-inline: 0; bottom: 2px; }
  #architecture #coreName { font-size: 18px; }
  #architecture #coreSub { font-size: 11px; }
  #architecture .loop--offline { padding-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  #architecture .rv { opacity: 1; transform: none; transition: none; }
}
#architecture #chainOn .chain-step:nth-child(1) { --node-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='15' height='14' rx='3'/%3E%3Cpath d='m18 12 7-4v12l-7-4'/%3E%3Ccircle cx='8' cy='12' r='1'/%3E%3C/svg%3E"); }
#architecture #chainOn .chain-step:nth-child(2) { --node-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M2 14s4-8 12-8 12 8 12 8-4 8-12 8S2 14 2 14Z'/%3E%3Ccircle cx='14' cy='14' r='4'/%3E%3C/svg%3E"); }
#architecture #chainOn .chain-step:nth-child(3) { --node-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='m8 8 12 0M7 10v8m14-8v8M9 20l10 0M9 9l10 10'/%3E%3Ccircle cx='7' cy='7' r='3'/%3E%3Ccircle cx='21' cy='7' r='3'/%3E%3Ccircle cx='7' cy='21' r='3'/%3E%3Ccircle cx='21' cy='21' r='3'/%3E%3C/svg%3E"); }
#architecture #chainOn .chain-step:nth-child(4) { --node-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'%3E%3Crect x='10' y='3' width='8' height='7' rx='2'/%3E%3Crect x='2' y='19' width='8' height='6' rx='2'/%3E%3Crect x='18' y='19' width='8' height='6' rx='2'/%3E%3Cpath d='M14 10v5H6v4m8-4h8v4'/%3E%3C/svg%3E"); }
#architecture #chainOn .chain-step:nth-child(5) { --node-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M16 2 5 16h8l-1 10 11-15h-8l1-9Z'/%3E%3C/svg%3E"); }
#architecture #chainOn .chain-step:nth-child(6) { --node-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 9a9 9 0 1 1-1 11M7 9H2m5 0V4'/%3E%3Cpath d='m10 14 3 3 6-6'/%3E%3C/svg%3E"); }
#architecture #chainOff .chain-step:nth-child(1) { --node-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h16a3 3 0 0 1 3 3v11a3 3 0 0 1-3 3H11l-6 4v-4a3 3 0 0 1-2-3V7a3 3 0 0 1 3-3Z'/%3E%3Cpath d='M8 10h12M8 15h8'/%3E%3C/svg%3E"); }
#architecture #chainOff .chain-step:nth-child(2) { --node-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14 2 10 4v8c0 6-10 12-10 12S4 20 4 14V6l10-4Z'/%3E%3Cpath d='m9 13 4 4 6-7'/%3E%3C/svg%3E"); }
#architecture #chainOff .chain-step:nth-child(3) { --node-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 12 9-5 9 5-9 5-9-5Zm0 6 9 5 9-5m0-15v7m-3-3h6'/%3E%3C/svg%3E"); }
#architecture #chainOff .chain-step:nth-child(4) { --node-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M5 24V4m0 20h19M10 18v-5m6 5V8m6 10v-8'/%3E%3Cpath d='m10 8 5-5 6 3'/%3E%3C/svg%3E"); }
#architecture #chainOff .chain-step:nth-child(5) { --node-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14 2 11 6v12l-11 6-11-6V8l11-6Zm0 12 11-6M3 8l11 6v12M8 5l11 6v5'/%3E%3C/svg%3E"); }
#architecture #chainOff .chain-step:nth-child(6) { --node-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='22' height='17' rx='3'/%3E%3Cpath d='M14 7v9m-4-4 4 4 4-4M9 25h10m-5-5v5'/%3E%3C/svg%3E"); }
