:root {
  --paper: #f6f7f1;
  --ink: #15372e;
  --muted: #50665d;
  --green: #25704f;
  --pale: #e5f1e4;
  --blue: #196580;
  --water: #e6f3f6;
  --gold: #d89827;
  --line: #d4dfd4;
  --white: #fffefa;
}
* {
  box-sizing: border-box;
}
/*body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}
main {
  max-width: 1192px;
  margin: auto;
  padding: 32px 40px 26px;
}*/
.infografia p,
.infografia h1,
.infografia h2,
.infografia h3,
.infografia figure {
  margin: 0;
}
.infografia button,
.infografia a {
  -webkit-tap-highlight-color: transparent;
}
.infografia button {
  font: inherit;
}
.infografia a {
  color: inherit;
  text-underline-offset: 3px;
}
.infografia button:focus-visible,
.infografia a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px;
}
.seed {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}
.motion {
  border: 1px solid #b9c9bc;
  background: transparent;
  border-radius: 30px;
  padding: 9px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  min-height: 40px;
}
.motion:hover {
  background: var(--pale);
}
.motion-icon {
  font-size: 14px;
  line-height: 1;
}
.motion[disabled] {
  cursor: default;
  color: var(--muted);
}
.infografia header {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 30px;
  align-items: center;
  padding: 36px 0 28px;
}
.infografia h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5.8vw, 68px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.045em;
  max-width: 760px;
}
.infografia h1 em {
  font-style: normal;
  color: var(--green);
}
.intro {
  color: var(--muted);
  font-size: 17px;
  max-width: 580px;
  margin-top: 18px;
}
.landscape {
  width: 100%;
  max-width: 300px;
  justify-self: end;
  overflow: visible;
}
.inputs {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}
.input {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.input-icon {
  width: 52px;
  height: 52px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.input-icon svg {
  width: 26px;
  height: 26px;
}
.input h2 {
  font-size: 16px;
  font-weight: 650;
}
.input p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.operator {
  font-size: 24px;
  color: #63776b;
  text-align: center;
}
.input:last-child .input-icon {
  background: var(--green);
  color: white;
  border: 0;
}
.device {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px 28px 26px;
  position: relative;
}
.device-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.device-head h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.badge {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--pale);
  padding: 5px 10px;
  border-radius: 30px;
  white-space: nowrap;
  color: var(--green);
}
.circuit {
  height: 94px;
  position: relative;
  margin: 14px 14% 0;
}
.wire {
  position: absolute;
  left: 0;
  right: 0;
  top: 38px;
  height: 56px;
  border: 2px solid var(--gold);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
}
.power {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  padding: 7px 13px;
  background: #faefcf;
  border: 1px solid #e4c278;
  border-radius: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #6b4c15;
  z-index: 1;
  white-space: nowrap;
}
.power svg {
  width: 20px;
  height: 20px;
}
.circuit-label {
  position: absolute;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.electron {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffdc85;
  color: #654a15;
  top: 27px;
  left: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  animation: electron 5s linear infinite;
}
.electron.second {
  animation-delay: -2.5s;
}
.cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr);
  align-items: stretch;
}
.chamber {
  border-radius: 18px;
  padding: 20px 22px 22px;
  min-width: 0;
}
.anode {
  background: var(--water);
  color: var(--blue);
}
.cathode {
  background: var(--pale);
  color: var(--green);
}
.chamber-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.chamber-heading h3 {
  font-size: 18px;
  font-weight: 650;
}
.polarity {
  font-size: 23px;
  line-height: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
.chamber-svg {
  display: block;
  width: 100%;
  height: 165px;
  margin: 12px 0 15px;
  overflow: hidden;
}
.chamber-svg .bubble {
  animation: rise 5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.chamber-svg .b2 {
  animation-delay: -1.6s;
}
.chamber-svg .b3 {
  animation-delay: -3.3s;
}
.molecule {
  animation: float 6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.chamber-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}
.step {
  font-size: 11px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.chamber p {
  font-size: 14px;
  color: #355b64;
  max-width: 340px;
}
.cathode p {
  color: #365f47;
}
.reaction {
  font-size: 16px;
  margin-top: 14px;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.membrane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 18px 8px;
  color: var(--green);
  position: relative;
}
.membrane:before {
  content: "";
  position: absolute;
  inset: 45px 52px;
  border-radius: 8px;
  background: repeating-linear-gradient(
    90deg,
    #dce4d8 0px,
    #dce4d8 2px,
    #f3f5ee 2px,
    #f3f5ee 5px
  );
  z-index: 0;
}
.membrane > * {
  position: relative;
}
.membrane h3 {
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  color: var(--ink);
  background: var(--white);
  padding: 4px 2px;
  line-height: 1.4;
}
.proton-track {
  height: 26px;
  width: 105px;
  position: relative;
}
.proton-track:before {
  content: "";
  position: absolute;
  left: 10px;
  right: 4px;
  top: 12px;
  height: 2px;
  background: #80ad7d;
}
.proton-track:after {
  content: "";
  position: absolute;
  right: 2px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #80ad7d;
  border-top: 2px solid #80ad7d;
  transform: rotate(45deg);
}
.proton {
  width: 27px;
  height: 27px;
  background: #cbe7ab;
  border: 1px solid #82ac61;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  animation: proton 4s ease-in-out infinite;
}
.proton-track:nth-of-type(2) .proton {
  animation-delay: -1.3s;
}
.proton-track:nth-of-type(3) .proton {
  animation-delay: -2.6s;
}
.membrane p {
  font-size: 11px;
  text-align: center;
  max-width: 110px;
  color: var(--muted);
  background: var(--white);
  padding: 3px 1px;
}
.outputs {
  display: grid;
  grid-template-columns: 1fr 132px 1fr;
  margin-top: 14px;
  gap: 0;
}
.output {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
}
.output:first-child {
  color: var(--blue);
}
.output:last-child {
  color: var(--green);
  grid-column: 3;
}
.out-arrow {
  font-size: 29px;
}
.output strong {
  font-size: 14px;
  display: block;
}
.output span {
  font-size: 12px;
  color: var(--muted);
  display: block;
}
.formula {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 19px;
  font-size: 18px;
  letter-spacing: -0.025em;
}
.formula-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-right: 8px;
}
.formula .blue {
  color: var(--blue);
}
.formula .green {
  color: var(--green);
}
.why {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin: 30px 4px 24px;
}
.why article {
  padding-left: 16px;
  border-left: 2px solid var(--line);
}
.why h2 {
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 6px;
}
.why p {
  font-size: 13px;
  color: var(--muted);
}
.why article:first-child {
  border-color: var(--green);
}
.infografia footer {
  display: flex;
  gap: 25px;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 11px;
  color: var(--muted);
}
.infografia footer p:first-child {
  max-width: 750px;
}
.infografia footer a {
  white-space: nowrap;
}
.paused * {
  animation-play-state: paused !important;
}
@keyframes electron {
  0% {
    left: 0;
  }
  100% {
    left: calc(100% - 24px);
  }
}
@keyframes proton {
  0%,
  10% {
    transform: translateX(0);
  }
  80%,
  100% {
    transform: translateX(74px);
  }
}
@keyframes rise {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  20% {
    opacity: 0.7;
  }
  80% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-55px);
    opacity: 0;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.rotor {
  transform-origin: 198px 69px;
  animation: spin 18s linear infinite;
}
@media (min-width: 1450px) {
  main {
    padding-top: 40px;
  }
}
@media (max-width: 760px) {
  main {
    padding: 22px 24px;
  }
  .infografia header {
    grid-template-columns: 1fr 0.45fr;
    gap: 12px;
  }
  .infografia h1 {
    font-size: 46px;
  }
  .intro {
    font-size: 15px;
  }
  .inputs {
    grid-template-columns: 1fr 20px 1fr;
    gap: 9px;
  }
  .input:last-child {
    grid-column: 1 / -1;
    margin-top: 5px;
    justify-content: center;
  }
  .operator:nth-of-type(4) {
    display: none;
  }
  .input-icon {
    width: 43px;
    height: 43px;
  }
  .input {
    gap: 9px;
  }
  .input h2 {
    font-size: 14px;
  }
  .input p {
    font-size: 12px;
  }
  .device {
    padding: 20px 18px;
  }
  .cell {
    grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
  }
  .chamber {
    padding: 15px 14px;
  }
  .membrane {
    padding: 12px 3px;
  }
  .membrane:before {
    left: 39px;
    right: 39px;
  }
  .proton-track {
    width: 88px;
  }
  @keyframes proton {
    0%,
    10% {
      transform: translateX(0);
    }
    80%,
    100% {
      transform: translateX(58px);
    }
  }
  .reaction {
    font-size: 13px;
  }
  .chamber-heading h3 {
    font-size: 16px;
  }
  .outputs {
    grid-template-columns: 1fr 100px 1fr;
  }
  .why {
    gap: 20px;
  }
  .why article {
    padding-left: 12px;
  }
}
@media (max-width: 580px) {
  main {
    padding: 18px 16px 24px;
  }
  .topline {
    gap: 8px;
    padding-bottom: 15px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .motion {
    padding: 8px 10px;
    font-size: 11px;
    min-height: 38px;
  }
  .infografia header {
    grid-template-columns: 1fr;
    padding: 28px 0 24px;
    position: relative;
  }
  .infografia h1 {
    font-size: clamp(39px, 10.5vw, 58px);
    max-width: 450px;
  }
  .intro {
    max-width: 430px;
    font-size: 15px;
  }
  .landscape {
    display: none;
  }
  .inputs {
    gap: 12px 6px;
    margin-bottom: 22px;
  }
  .input {
    align-items: flex-start;
  }
  .input-icon {
    width: 36px;
    height: 36px;
  }
  .input-icon svg {
    width: 21px;
    height: 21px;
  }
  .input h2 {
    font-size: 13px;
  }
  .input p {
    font-size: 11px;
  }
  .operator {
    font-size: 20px;
  }
  .input:last-child {
    justify-content: flex-start;
    background: #e7eee2;
    border-radius: 12px;
    padding: 11px 12px;
  }
  .input:last-child .input-icon {
    width: 34px;
    height: 34px;
  }
  .device {
    border-radius: 20px;
    padding: 20px 14px;
  }
  .device-head {
    align-items: flex-start;
  }
  .device-head h2 {
    font-size: 18px;
  }
  .badge {
    font-size: 10px;
    padding: 4px 7px;
  }
  .circuit {
    margin: 14px 14px 0;
    height: 92px;
  }
  .power {
    font-size: 11px;
  }
  .circuit-label {
    font-size: 11px;
  }
  .cell {
    grid-template-columns: 1fr;
  }
  .chamber {
    padding: 18px 20px;
  }
  .chamber-heading h3 {
    font-size: 18px;
  }
  .chamber-svg {
    height: 135px;
    margin: 8px 0 10px;
  }
  .chamber p {
    max-width: none;
    font-size: 14px;
  }
  .reaction {
    font-size: 16px;
  }
  .membrane {
    min-height: 160px;
    gap: 7px;
    padding: 14px 20px;
  }
  .membrane:before {
    inset: 70px 35px 65px;
    background: repeating-linear-gradient(
      0deg,
      #dce4d8 0px,
      #dce4d8 2px,
      #f3f5ee 2px,
      #f3f5ee 5px
    );
  }
  .membrane h3 {
    font-size: 13px;
  }
  .membrane h3 br {
    display: none;
  }
  .proton-track {
    height: 58px;
    width: 28px;
  }
  .proton-track:before {
    left: 13px;
    right: auto;
    top: 0;
    width: 2px;
    height: 54px;
  }
  .proton-track:after {
    top: 49px;
    right: 9px;
    transform: rotate(135deg);
  }
  .proton {
    animation-name: proton-down;
  }
  .proton-track:nth-of-type(2),
  .proton-track:nth-of-type(3) {
    display: none;
  }
  .membrane p {
    font-size: 12px;
    max-width: none;
  }
  .outputs {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
  }
  .output:last-child {
    grid-column: auto;
  }
  .output {
    padding: 0 6px;
  }
  .output strong {
    font-size: 14px;
  }
  .out-arrow {
    transform: rotate(90deg);
    font-size: 25px;
  }
  .formula {
    gap: 7px;
    font-size: 16px;
  }
  .formula-label {
    width: 100%;
    text-align: center;
    margin: 0;
  }
  .why {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 26px 4px;
  }
  .why h2 {
    font-size: 16px;
  }
  .why p {
    font-size: 14px;
  }
  .infografia footer {
    display: block;
    font-size: 11px;
  }
  .infografia footer a {
    display: inline-block;
    margin-top: 10px;
  }
  @keyframes proton-down {
    0%,
    10% {
      transform: translateY(0);
    }
    80%,
    100% {
      transform: translateY(29px);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
  .bubble {
    opacity: 0.55;
  }
  .electron.second {
    left: calc(100% - 24px);
  }
  .proton {
    transform: none;
  }
}
@media print {
  body {
    background: white;
  }
  main {
    padding: 0;
    max-width: 100%;
  }
  .motion {
    display: none;
  }
  * {
    animation: none !important;
  }
  .device {
    break-inside: avoid;
  }
  .why {
    break-inside: avoid;
  }
  footer {
    font-size: 9px;
  }
}


